-
-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize Animation Encoders #2842
Conversation
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 11 out of 26 changed files in this pull request and generated 1 suggestion.
Files not reviewed (15)
- tests/Directory.Build.targets: Language not supported
- tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj: Language not supported
- src/ImageSharp/Formats/QuantizingImageEncoder.cs: Evaluated as low risk
- src/ImageSharp/Formats/Webp/WebpEncoder.cs: Evaluated as low risk
- tests/ImageSharp.Benchmarks/Codecs/Webp/DecodeWebp.cs: Evaluated as low risk
- tests/ImageSharp.Benchmarks/Codecs/Tga/DecodeTga.cs: Evaluated as low risk
- src/ImageSharp/Formats/Webp/WebpFrameMetadata.cs: Evaluated as low risk
- src/ImageSharp/Formats/Webp/WebpEncoderCore.cs: Evaluated as low risk
- src/ImageSharp/Formats/FormatConnectingMetadata.cs: Evaluated as low risk
- src/ImageSharp/Formats/Webp/Lossy/Vp8Encoder.cs: Evaluated as low risk
- src/ImageSharp/Formats/Gif/GifEncoder.cs: Evaluated as low risk
- src/ImageSharp/Formats/Png/PngEncoder.cs: Evaluated as low risk
- src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs: Evaluated as low risk
- src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs: Evaluated as low risk
- src/ImageSharp/Formats/Png/PngEncoderCore.cs: Evaluated as low risk
@@ -126,7 +127,7 @@ public Task ForEachImageParallelAsync(Func<string, Task> action) | |||
: Environment.ProcessorCount; | |||
int partitionSize = (int)Math.Ceiling((double)this.Images.Length / maxDegreeOfParallelism); | |||
|
|||
List<Task> tasks = new(); | |||
List<Task> tasks = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initialization of the tasks list is incorrect. It should be 'List tasks = new List();'.
List<Task> tasks = []; | |
List<Task> tasks = new List<Task>(); |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prerequisites
Description
Adds a couple of new interfaces and base classes to normalize configuration of encoders for formats that produce animation sequences.
Also