From d2cccf169f19d8130dc75afa83c7817b72190e46 Mon Sep 17 00:00:00 2001 From: MPCoreDeveloper Date: Sun, 15 Nov 2026 12:53:12 +0100 Subject: [PATCH] Correct the JPEG decoder's summary --- src/SharpCorePDF.Infrastructure/Pdf/JpegDecoder.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SharpCorePDF.Infrastructure/Pdf/JpegDecoder.cs b/src/SharpCorePDF.Infrastructure/Pdf/JpegDecoder.cs index 0563c3d..2619fd8 100644 --- a/src/SharpCorePDF.Infrastructure/Pdf/JpegDecoder.cs +++ b/src/SharpCorePDF.Infrastructure/Pdf/JpegDecoder.cs @@ -1,13 +1,14 @@ namespace SharpCorePDF.Infrastructure.Pdf; /// -/// Decodes a baseline (SOF0) or extended sequential (SOF1) JPEG to its samples. +/// Decodes a JPEG — baseline, extended sequential or progressive — to its samples. /// /// /// -/// The decoder is a baseline one: one scan, canonical Huffman coding, an 8 x 8 inverse DCT, and the three -/// component layouts a PDF image states — Gray, RGB/YCbCr and CMYK/YCCK. Progressive (SOF2) is refused -/// for now; ADR-005 records it as the next variant. +/// The decoder reads the sequential form (SOF0/SOF1) and the progressive form (SOF2): a sequential scan +/// is decoded in one pass, while a progressive file's scans accumulate quantised coefficients that the +/// inverse DCT reconstructs once at the end. Both forms cover canonical Huffman coding, restart markers, +/// an 8 x 8 inverse DCT and the component layouts a PDF image states — Gray, RGB/YCbCr and CMYK/YCCK. /// /// /// The samples are the values the JPEG stores, interleaved, one byte per component: Gray8 for one