From 06014b07769e8eb78a179e0d0e9603a98718d3bc Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Tue, 19 Oct 2021 09:57:30 +0200 Subject: [PATCH] Make some webp classes internal --- src/ImageSharp/Formats/WebP/AlphaDecoder.cs | 4 ++-- src/ImageSharp/Formats/WebP/Lossless/HuffIndex.cs | 2 +- src/ImageSharp/Formats/WebP/Lossless/Vp8LTransformType.cs | 4 ++-- src/ImageSharp/Formats/WebP/WebpChunkType.cs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ImageSharp/Formats/WebP/AlphaDecoder.cs b/src/ImageSharp/Formats/WebP/AlphaDecoder.cs index e49e252721..a305bda28b 100644 --- a/src/ImageSharp/Formats/WebP/AlphaDecoder.cs +++ b/src/ImageSharp/Formats/WebP/AlphaDecoder.cs @@ -66,7 +66,7 @@ namespace SixLabors.ImageSharp.Formats.Webp } /// - /// Gets the the width of the image. + /// Gets the width of the image. /// public int Width { get; } @@ -145,7 +145,7 @@ namespace SixLabors.ImageSharp.Formats.Webp Span deltas = dataSpan; Span dst = alphaSpan; - Span prev = null; + Span prev = default; for (int y = 0; y < this.Height; ++y) { switch (this.AlphaFilterType) diff --git a/src/ImageSharp/Formats/WebP/Lossless/HuffIndex.cs b/src/ImageSharp/Formats/WebP/Lossless/HuffIndex.cs index f451df80b4..c5b6aaec77 100644 --- a/src/ImageSharp/Formats/WebP/Lossless/HuffIndex.cs +++ b/src/ImageSharp/Formats/WebP/Lossless/HuffIndex.cs @@ -6,7 +6,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless /// /// Five Huffman codes are used at each meta code. /// - public static class HuffIndex + internal static class HuffIndex { /// /// Green + length prefix codes + color cache codes. diff --git a/src/ImageSharp/Formats/WebP/Lossless/Vp8LTransformType.cs b/src/ImageSharp/Formats/WebP/Lossless/Vp8LTransformType.cs index d6a069da28..bde2e52e9c 100644 --- a/src/ImageSharp/Formats/WebP/Lossless/Vp8LTransformType.cs +++ b/src/ImageSharp/Formats/WebP/Lossless/Vp8LTransformType.cs @@ -8,7 +8,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless /// that can reduce the remaining symbolic entropy by modeling spatial and color correlations. /// Transformations can make the final compression more dense. /// - public enum Vp8LTransformType : uint + internal enum Vp8LTransformType : uint { /// /// The predictor transform can be used to reduce entropy by exploiting the fact that neighboring pixels are often correlated. @@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless PredictorTransform = 0, /// - /// The goal of the color transform is to decorrelate the R, G and B values of each pixel. + /// The goal of the color transform is to de-correlate the R, G and B values of each pixel. /// Color transform keeps the green (G) value as it is, transforms red (R) based on green and transforms blue (B) based on green and then based on red. /// CrossColorTransform = 1, diff --git a/src/ImageSharp/Formats/WebP/WebpChunkType.cs b/src/ImageSharp/Formats/WebP/WebpChunkType.cs index 1b2a422bc4..add40f302f 100644 --- a/src/ImageSharp/Formats/WebP/WebpChunkType.cs +++ b/src/ImageSharp/Formats/WebP/WebpChunkType.cs @@ -7,7 +7,7 @@ namespace SixLabors.ImageSharp.Formats.Webp /// Contains a list of different webp chunk types. /// /// See WebP Container Specification for more details: https://developers.google.com/speed/webp/docs/riff_container - public enum WebpChunkType : uint + internal enum WebpChunkType : uint { /// /// Header signaling the use of the VP8 format.