Browse Source

Removed obsolete code

pull/1632/head
Dmitry Pentin 5 years ago
parent
commit
2edb1a8bb9
  1. 21
      src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter444{TPixel}.cs

21
src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter444{TPixel}.cs

@ -88,27 +88,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder
} }
} }
public static YCbCrForwardConverter444<TPixel> Create()
{
var result = default(YCbCrForwardConverter444<TPixel>);
// creating rgb pixel bufferr
// TODO: this is subject to discuss
// converter.Convert comments for +8 padding
result.rgbSpan = MemoryMarshal.Cast<byte, Rgb24>(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;
}
/// <summary> /// <summary>
/// Converts a 8x8 image area inside 'pixels' at position (x,y) placing the result members of the structure (<see cref="Y"/>, <see cref="Cb"/>, <see cref="Cr"/>) /// Converts a 8x8 image area inside 'pixels' at position (x,y) placing the result members of the structure (<see cref="Y"/>, <see cref="Cb"/>, <see cref="Cr"/>)
/// </summary> /// </summary>

Loading…
Cancel
Save