Skip to content

Normalize Animation Encoders - #2842

Merged
JimBobSquarePants merged 3 commits into
mainfrom
js/normalize-animation-encoder
Nov 21, 2024
Merged

Normalize Animation Encoders#2842
JimBobSquarePants merged 3 commits into
mainfrom
js/normalize-animation-encoder

Conversation

@JimBobSquarePants

@JimBobSquarePants JimBobSquarePants commented Nov 21, 2024

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Adds a couple of new interfaces and base classes to normalize configuration of encoders for formats that produce animation sequences.

Also

  • Fixes missing cancellation token handling when encoding those sequences.
  • Updates testing references.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

int partitionSize = (int)Math.Ceiling((double)this.Images.Length / maxDegreeOfParallelism);

List<Task> tasks = new();
List<Task> tasks = [];

Copilot AI Nov 21, 2024

Copy link

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();'.

Suggested change
List<Task> tasks = [];
List<Task> tasks = new List<Task>();

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JimBobSquarePants
JimBobSquarePants merged commit c873e91 into main Nov 21, 2024
@JimBobSquarePants
JimBobSquarePants deleted the js/normalize-animation-encoder branch November 21, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants