-
-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f52a0d
commit 682218a
Showing
5 changed files
with
71 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
// Licensed under the Six Labors Split License. | ||
|
||
using System.Buffers.Binary; | ||
using System.Drawing; | ||
using System.Runtime.InteropServices; | ||
using SixLabors.ImageSharp.Metadata.Profiles.Exif; | ||
using SixLabors.ImageSharp.Metadata.Profiles.Xmp; | ||
|
@@ -181,7 +180,7 @@ protected void WriteAnimationParameter(Stream stream, uint background, ushort lo | |
/// <param name="stream">The stream to write to.</param> | ||
/// <param name="animation">Animation frame data.</param> | ||
/// <param name="data">Frame data.</param> | ||
protected void WriteAnimationFrame(Stream stream, AnimationFrameData animation, byte[] data) | ||
protected void WriteAnimationFrame(Stream stream, AnimationFrameData animation, Span<byte> data) | ||
{ | ||
uint size = AnimationFrameData.HeaderSize + (uint)data.Length; | ||
Span<byte> buf = this.scratchBuffer.Span[..4]; | ||
|
@@ -260,6 +259,12 @@ protected void WriteVp8XHeader(Stream stream, ExifProfile? exifProfile, XmpProfi | |
flags |= 8; | ||
} | ||
|
||
// if (isAnimated) | ||
// { | ||
// // Set animated flag. | ||
// flags |= 2; | ||
// } | ||
Check failure on line 266 in src/ImageSharp/Formats/Webp/BitWriter/BitWriterBase.cs GitHub Actions / Build (false, ubuntu-latest, net7.0, 7.0.x, true, -x64, false)
Check failure on line 266 in src/ImageSharp/Formats/Webp/BitWriter/BitWriterBase.cs GitHub Actions / Build (false, ubuntu-latest, net7.0, 7.0.x, true, -x64, false)
Check failure on line 266 in src/ImageSharp/Formats/Webp/BitWriter/BitWriterBase.cs GitHub Actions / Build (false, ubuntu-latest, net6.0, 6.0.x, -x64, false)
Check failure on line 266 in src/ImageSharp/Formats/Webp/BitWriter/BitWriterBase.cs GitHub Actions / Build (false, ubuntu-latest, net6.0, 6.0.x, -x64, false)
|
||
|
||
if (xmpProfile != null) | ||
{ | ||
// Set xmp bit. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters