From ca3a62a6bbaada5fe682f0d180fb1df31955dd18 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 16 Apr 2024 08:11:35 -0400 Subject: [PATCH] LibGfx: Add a comment to QMArithmeticDecoder.h --- .../Libraries/LibGfx/ImageFormats/QMArithmeticDecoder.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Userland/Libraries/LibGfx/ImageFormats/QMArithmeticDecoder.h b/Userland/Libraries/LibGfx/ImageFormats/QMArithmeticDecoder.h index 0111fe84522..c84d09896c7 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/QMArithmeticDecoder.h +++ b/Userland/Libraries/LibGfx/ImageFormats/QMArithmeticDecoder.h @@ -10,6 +10,12 @@ namespace Gfx { +// This is the arithmetic decoder described in Annex E of the JBIG2 spec. +// See JBIG2Loader.cpp for the JBIG2 spec link. +// +// It's also used in JPEG2000 and also described in Annex C of the JPEG2000 spec. +// See JPEG2000Loader.cpp for the JPEG2000 spec link. + // E.3 Arithmetic decoding procedure, but with the changes described in // Annex G Arithmetic decoding procedure (software conventions). // Exposed for testing.