From 67b9713ae0385aec88dab9d251e0c7b488512a5f Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Mon, 20 Apr 2026 15:18:05 +1000 Subject: [PATCH] Rename params --- src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs | 6 +++--- src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs b/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs index ab96aeaa52..519b0d536d 100644 --- a/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs +++ b/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs @@ -1470,9 +1470,9 @@ internal sealed class BmpDecoderCore : ImageDecoderCore /// Reads the embedded ICC profile from the BMP V5 info header. /// /// The containing image data. - /// The image metadata. + /// The image metadata. /// The stream position where the info header begins. - private void ReadIccProfile(BufferedReadStream stream, ImageMetadata metadata, long infoHeaderStart) + private void ReadIccProfile(BufferedReadStream stream, ImageMetadata imageMetadata, long infoHeaderStart) { byte[] iccProfileData = new byte[this.infoHeader.ProfileSize]; stream.Position = infoHeaderStart + this.infoHeader.ProfileData; @@ -1485,7 +1485,7 @@ internal sealed class BmpDecoderCore : ImageDecoderCore IccProfile profile = new(iccProfileData); if (profile.CheckIsValid()) { - metadata.IccProfile = profile; + imageMetadata.IccProfile = profile; } else { diff --git a/src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs b/src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs index c8044b9b76..8a8ad823dc 100644 --- a/src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs +++ b/src/ImageSharp/Formats/Webp/WebpAnimationDecoder.cs @@ -375,7 +375,7 @@ internal class WebpAnimationDecoder : IDisposable private void ReadOptionalChunk( BufferedReadStream stream, WebpChunkType chunkType, - ImageMetadata metadata, + ImageMetadata imageMetadata, bool ignoreMetadata) { switch (chunkType) @@ -384,13 +384,13 @@ internal class WebpAnimationDecoder : IDisposable // While ICC profiles are optional, an invalid ICC profile cannot be ignored because it must // precede the frame data, and we cannot safely skip it without successfully reading its size. - WebpChunkParsingUtils.ReadIccProfile(stream, metadata, ignoreMetadata); + WebpChunkParsingUtils.ReadIccProfile(stream, imageMetadata, ignoreMetadata); break; case WebpChunkType.Exif: - this.executeAncillarySegmentAction(() => WebpChunkParsingUtils.ReadExifProfile(stream, metadata, ignoreMetadata)); + this.executeAncillarySegmentAction(() => WebpChunkParsingUtils.ReadExifProfile(stream, imageMetadata, ignoreMetadata)); break; case WebpChunkType.Xmp: - this.executeAncillarySegmentAction(() => WebpChunkParsingUtils.ReadXmpProfile(stream, metadata, ignoreMetadata)); + this.executeAncillarySegmentAction(() => WebpChunkParsingUtils.ReadXmpProfile(stream, imageMetadata, ignoreMetadata)); break; } }