diff --git a/src/ImageSharp.Formats.Jpeg/Components/Block8x8F.cs b/src/ImageSharp.Formats.Jpeg/Components/Block8x8F.cs index ec0feaf45b..5ba7599570 100644 --- a/src/ImageSharp.Formats.Jpeg/Components/Block8x8F.cs +++ b/src/ImageSharp.Formats.Jpeg/Components/Block8x8F.cs @@ -326,30 +326,6 @@ namespace ImageSharp.Formats.Jpg } } - /// - /// Unzig the elements of src into dest, while dividing them by elements of qt and rounding the values. - /// Sore the result to the memory area pointed by dest. - /// - /// Source block - /// Destination block of integers - /// Quantization table - /// Pointer to elements - // [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static unsafe void UnZigDivRound(Block8x8F* src, int* dest, Block8x8F* qt, int* unzigPtr) - { - float* s = (float*)src; - float* q = (float*)qt; - - for (int zig = 0; zig < ScalarCount; zig++) - { - int a = (int)s[unzigPtr[zig]]; - int b = (int)q[zig]; - - int val = DivideRound(a, b); - dest[zig] = val; - } - } - /// /// Unzig the elements of block into dest, while dividing them by elements of qt and "pre-rounding" the values. /// To finish the rounding it's enough to (int)-cast these values.