From 93fcb529cfd9f499028623261805475cb18e271d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 20 Mar 2024 21:27:11 -0400 Subject: [PATCH] LibGfx/JBIG2: Move SegmentData down a bit Symbol segments will store decoded symbols, and for that SegmentData needs to come after BitBuffer. No behavior change. --- Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp b/Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp index c7ad66db66f..04fb3d7af50 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp @@ -345,11 +345,6 @@ struct SegmentHeader { Optional data_length; }; -struct SegmentData { - SegmentHeader header; - ReadonlyBytes data; -}; - class BitBuffer { public: static ErrorOr> create(size_t width, size_t height); @@ -434,6 +429,11 @@ BitBuffer::BitBuffer(ByteBuffer bits, size_t width, size_t height, size_t pitch) { } +struct SegmentData { + SegmentHeader header; + ReadonlyBytes data; +}; + // 7.4.8.5 Page segment flags enum class CombinationOperator { Or = 0,