diff --git a/src/ImageSharp/Common/Helpers/Shuffle/IComponentShuffle.cs b/src/ImageSharp/Common/Helpers/Shuffle/IComponentShuffle.cs index 6b80845ed..b1d545ed8 100644 --- a/src/ImageSharp/Common/Helpers/Shuffle/IComponentShuffle.cs +++ b/src/ImageSharp/Common/Helpers/Shuffle/IComponentShuffle.cs @@ -15,12 +15,12 @@ internal interface IComponentShuffle /// /// The source components, with the first component in the least-significant byte. /// The reordered packed components. - static abstract uint Invoke(uint source); + public static abstract uint Invoke(uint source); /// /// Reorders the packed pixels in a 128-bit vector. /// /// The source pixels. /// The reordered pixels. - static abstract Vector128 Invoke(Vector128 source); + public static abstract Vector128 Invoke(Vector128 source); } diff --git a/src/ImageSharp/Common/Helpers/Shuffle/IShuffle4.cs b/src/ImageSharp/Common/Helpers/Shuffle/IShuffle4.cs index 56ea59df5..2a5a6668f 100644 --- a/src/ImageSharp/Common/Helpers/Shuffle/IShuffle4.cs +++ b/src/ImageSharp/Common/Helpers/Shuffle/IShuffle4.cs @@ -19,14 +19,14 @@ internal interface IShuffle4 : IComponentShuffle /// /// The source pixels. /// The reordered pixels. - static abstract Vector256 Invoke(Vector256 source); + public static abstract Vector256 Invoke(Vector256 source); /// /// Reorders the packed pixels in a 512-bit vector. /// /// The source pixels. /// The reordered pixels. - static abstract Vector512 Invoke(Vector512 source); + public static abstract Vector512 Invoke(Vector512 source); } /// diff --git a/src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverter.Operator.cs b/src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverter.Operator.cs index be9cedcb0..86851a9d6 100644 --- a/src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverter.Operator.cs +++ b/src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverter.Operator.cs @@ -23,12 +23,12 @@ internal abstract partial class JpegColorConverterBase /// /// Gets the JPEG color space handled by the operator. /// - static abstract JpegColorSpace ColorSpace { get; } + public static abstract JpegColorSpace ColorSpace { get; } /// /// Gets the number of component planes used by the color space. /// - static abstract int ComponentCount { get; } + public static abstract int ComponentCount { get; } /// /// Converts one JPEG sample to normalized RGB. @@ -40,7 +40,7 @@ internal abstract partial class JpegColorConverterBase /// The maximum component value for the configured precision. /// The midpoint component value for the configured precision. /// The reciprocal of . - static abstract void ConvertToRgb( + public static abstract void ConvertToRgb( ref float c0, ref float c1, ref float c2, @@ -59,7 +59,7 @@ internal abstract partial class JpegColorConverterBase /// The maximum component value for the configured precision. /// The midpoint component value for the configured precision. /// The reciprocal of in every lane. - static abstract void ConvertToRgb( + public static abstract void ConvertToRgb( ref Vector128 c0, ref Vector128 c1, ref Vector128 c2, @@ -78,7 +78,7 @@ internal abstract partial class JpegColorConverterBase /// The maximum component value for the configured precision. /// The midpoint component value for the configured precision. /// The reciprocal of in every lane. - static abstract void ConvertToRgb( + public static abstract void ConvertToRgb( ref Vector256 c0, ref Vector256 c1, ref Vector256 c2, @@ -97,7 +97,7 @@ internal abstract partial class JpegColorConverterBase /// The maximum component value for the configured precision. /// The midpoint component value for the configured precision. /// The reciprocal of in every lane. - static abstract void ConvertToRgb( + public static abstract void ConvertToRgb( ref Vector512 c0, ref Vector512 c1, ref Vector512 c2, @@ -119,7 +119,7 @@ internal abstract partial class JpegColorConverterBase /// The second converted component. /// The third converted component. /// The fourth converted component, if used. - static abstract void ConvertFromRgb( + public static abstract void ConvertFromRgb( float r, float g, float b, @@ -144,7 +144,7 @@ internal abstract partial class JpegColorConverterBase /// The second converted component lanes. /// The third converted component lanes. /// The fourth converted component lanes, if used. - static abstract void ConvertFromRgb( + public static abstract void ConvertFromRgb( Vector128 r, Vector128 g, Vector128 b, @@ -169,7 +169,7 @@ internal abstract partial class JpegColorConverterBase /// The second converted component lanes. /// The third converted component lanes. /// The fourth converted component lanes, if used. - static abstract void ConvertFromRgb( + public static abstract void ConvertFromRgb( Vector256 r, Vector256 g, Vector256 b, @@ -194,7 +194,7 @@ internal abstract partial class JpegColorConverterBase /// The second converted component lanes. /// The third converted component lanes. /// The fourth converted component lanes, if used. - static abstract void ConvertFromRgb( + public static abstract void ConvertFromRgb( Vector512 r, Vector512 g, Vector512 b, @@ -213,7 +213,7 @@ internal abstract partial class JpegColorConverterBase /// The source ICC profile. /// The component values to convert. /// The maximum component value for the configured precision. - static abstract void ConvertToRgbInPlaceWithIcc( + public static abstract void ConvertToRgbInPlaceWithIcc( Configuration configuration, IccProfile profile, in ComponentValues values, diff --git a/src/ImageSharp/Formats/Png/Filters/IPngFilterOperator.cs b/src/ImageSharp/Formats/Png/Filters/IPngFilterOperator.cs index 1113a5df6..9fcec7b78 100644 --- a/src/ImageSharp/Formats/Png/Filters/IPngFilterOperator.cs +++ b/src/ImageSharp/Formats/Png/Filters/IPngFilterOperator.cs @@ -16,22 +16,22 @@ internal interface IPngFilterOperator /// /// Gets the filter type written to the leading result byte. /// - static abstract FilterType Type { get; } + public static abstract FilterType Type { get; } /// /// Gets a value indicating whether the predictor reads the left component. /// - static abstract bool UsesLeft { get; } + public static abstract bool UsesLeft { get; } /// /// Gets a value indicating whether the predictor reads the above component. /// - static abstract bool UsesAbove { get; } + public static abstract bool UsesAbove { get; } /// /// Gets a value indicating whether the predictor reads the upper-left component. /// - static abstract bool UsesUpperLeft { get; } + public static abstract bool UsesUpperLeft { get; } /// /// Filters one byte from its PNG neighborhood. @@ -41,7 +41,7 @@ internal interface IPngFilterOperator /// The corresponding component in the preceding scanline. /// The preceding component in the preceding scanline. /// The filtered residual. - static abstract byte Invoke(byte scan, byte left, byte above, byte upperLeft); + public static abstract byte Invoke(byte scan, byte left, byte above, byte upperLeft); /// /// Filters sixteen byte lanes from their PNG neighborhoods. @@ -51,7 +51,7 @@ internal interface IPngFilterOperator /// The corresponding components in the preceding scanline. /// The preceding components in the preceding scanline. /// The filtered residuals. - static abstract Vector128 Invoke( + public static abstract Vector128 Invoke( Vector128 scan, Vector128 left, Vector128 above, @@ -65,7 +65,7 @@ internal interface IPngFilterOperator /// The corresponding components in the preceding scanline. /// The preceding components in the preceding scanline. /// The filtered residuals. - static abstract Vector256 Invoke( + public static abstract Vector256 Invoke( Vector256 scan, Vector256 left, Vector256 above, @@ -79,7 +79,7 @@ internal interface IPngFilterOperator /// The corresponding components in the preceding scanline. /// The preceding components in the preceding scanline. /// The filtered residuals. - static abstract Vector512 Invoke( + public static abstract Vector512 Invoke( Vector512 scan, Vector512 left, Vector512 above, diff --git a/src/ImageSharp/PixelFormats/PixelBlenders/IPixelBlenderOperator.cs b/src/ImageSharp/PixelFormats/PixelBlenders/IPixelBlenderOperator.cs index bdb43e7be..902ba9e25 100644 --- a/src/ImageSharp/PixelFormats/PixelBlenders/IPixelBlenderOperator.cs +++ b/src/ImageSharp/PixelFormats/PixelBlenders/IPixelBlenderOperator.cs @@ -18,7 +18,7 @@ internal interface IPixelBlenderOperator /// The source RGBA lanes. /// The source opacity in the range 0 through 1. /// The blended RGBA lanes. - static abstract Vector4 Invoke(Vector4 background, Vector4 source, float amount); + public static abstract Vector4 Invoke(Vector4 background, Vector4 source, float amount); /// /// Blends two pixels represented by two consecutive groups of four RGBA lanes. @@ -27,7 +27,7 @@ internal interface IPixelBlenderOperator /// The source RGBA lanes. /// The source opacity repeated across each pixel's four lanes. /// The blended RGBA lanes. - static abstract Vector256 Invoke( + public static abstract Vector256 Invoke( Vector256 background, Vector256 source, Vector256 amount); @@ -39,7 +39,7 @@ internal interface IPixelBlenderOperator /// The source RGBA lanes. /// The source opacity repeated across each pixel's four lanes. /// The blended RGBA lanes. - static abstract Vector512 Invoke( + public static abstract Vector512 Invoke( Vector512 background, Vector512 source, Vector512 amount); diff --git a/src/ImageSharp/PixelFormats/Utils/Vector4Converters.Affine.cs b/src/ImageSharp/PixelFormats/Utils/Vector4Converters.Affine.cs index fba3b8fcd..0aef79148 100644 --- a/src/ImageSharp/PixelFormats/Utils/Vector4Converters.Affine.cs +++ b/src/ImageSharp/PixelFormats/Utils/Vector4Converters.Affine.cs @@ -16,7 +16,7 @@ internal static partial class Vector4Converters /// The vectors to transform in place. /// The component-wise multiplier. /// The component-wise offset applied after multiplication. - internal static void MultiplyThenAdd(Span vectors, Vector4 multiplier, Vector4 offset) + public static void MultiplyThenAdd(Span vectors, Vector4 multiplier, Vector4 offset) => Apply(vectors, new MultiplyThenAddOperator(multiplier, offset)); /// @@ -25,7 +25,7 @@ internal static partial class Vector4Converters /// The vectors to transform in place. /// The component-wise offset applied before division. /// The component-wise divisor. - internal static void AddThenDivide(Span vectors, Vector4 offset, Vector4 divisor) + public static void AddThenDivide(Span vectors, Vector4 offset, Vector4 divisor) => Apply(vectors, new AddThenDivideOperator(offset, divisor)); /// diff --git a/src/ImageSharp/PixelFormats/Utils/Vector4Converters.AffineOperators.cs b/src/ImageSharp/PixelFormats/Utils/Vector4Converters.AffineOperators.cs index f5e57f765..0b08061bc 100644 --- a/src/ImageSharp/PixelFormats/Utils/Vector4Converters.AffineOperators.cs +++ b/src/ImageSharp/PixelFormats/Utils/Vector4Converters.AffineOperators.cs @@ -19,28 +19,28 @@ internal static partial class Vector4Converters /// /// The source components. /// The transformed components. - Vector4 Invoke(Vector4 source); + public Vector4 Invoke(Vector4 source); /// /// Transforms one pixel represented by the four single-precision lanes in a 128-bit register. /// /// The source components. /// The transformed components. - Vector128 Invoke(Vector128 source); + public Vector128 Invoke(Vector128 source); /// /// Transforms two pixels represented by the eight single-precision lanes in a 256-bit register. /// /// The source components. /// The transformed components. - Vector256 Invoke(Vector256 source); + public Vector256 Invoke(Vector256 source); /// /// Transforms four pixels represented by the sixteen single-precision lanes in a 512-bit register. /// /// The source components. /// The transformed components. - Vector512 Invoke(Vector512 source); + public Vector512 Invoke(Vector512 source); } ///