From b1a21269a0d5bdfaf4315559b0803a8f0cd2a15a Mon Sep 17 00:00:00 2001 From: Dmitry Pentin Date: Mon, 7 Jun 2021 07:34:02 +0300 Subject: [PATCH] Added docs --- .../Encoder/YCbCrForwardConverter420{TPixel}.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter420{TPixel}.cs b/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter420{TPixel}.cs index 9288acc7e..987ca6463 100644 --- a/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter420{TPixel}.cs +++ b/src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter420{TPixel}.cs @@ -16,13 +16,19 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder internal ref struct YCbCrForwardConverter420 where TPixel : unmanaged, IPixel { - // TODO: docs + /// + /// Number of pixels processed per single call + /// private const int PixelsPerSample = 16 * 8; - // TODO: docs - private static int RgbSpanByteSize = PixelsPerSample * 3; + /// + /// Total byte size of processed pixels converted from TPixel to + /// + private const int RgbSpanByteSize = PixelsPerSample * 3; - // TODO: docs + /// + /// of sampling area from given frame pixel buffer + /// private static readonly Size SampleSize = new Size(16, 8); ///