From 2edb1a8bb96627a57f23588ab564dd04432c4c53 Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Mon, 7 Jun 2021 07:39:44 +0300 Subject: [PATCH] Removed obsolete code --- .../YCbCrForwardConverter444{TPixel}.cs | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter444{TPixel}.cs b/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter444{TPixel}.cs index d611aaf9e1..91e56cab29 100644 --- a/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter444{TPixel}.cs +++ b/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter444{TPixel}.cs @@ -88,27 +88,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder } } - public static YCbCrForwardConverter444 Create() - { - var result = default(YCbCrForwardConverter444); - - // creating rgb pixel bufferr - // TODO: this is subject to discuss - // converter.Convert comments for +8 padding - result.rgbSpan = MemoryMarshal.Cast(new byte[RgbSpanByteSize + 8].AsSpan()); - - // TODO: this is subject to discuss - result.pixelSpan = new TPixel[PixelsPerSample].AsSpan(); - - // Avoid creating lookup tables, when vectorized converter is supported - if (!RgbToYCbCrConverterVectorized.IsSupported) - { - result.colorTables = RgbToYCbCrConverterLut.Create(); - } - - return result; - } - /// /// Converts a 8x8 image area inside 'pixels' at position (x,y) placing the result members of the structure (, , ) ///