mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
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.
This commit is contained in:
parent
2099ca48a1
commit
93fcb529cf
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/93fcb529cf Pull-request: https://github.com/SerenityOS/serenity/pull/23661 Reviewed-by: https://github.com/trflynn89
1 changed files with 5 additions and 5 deletions
|
@ -345,11 +345,6 @@ struct SegmentHeader {
|
|||
Optional<u32> data_length;
|
||||
};
|
||||
|
||||
struct SegmentData {
|
||||
SegmentHeader header;
|
||||
ReadonlyBytes data;
|
||||
};
|
||||
|
||||
class BitBuffer {
|
||||
public:
|
||||
static ErrorOr<NonnullOwnPtr<BitBuffer>> 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,
|
||||
|
|
Loading…
Reference in a new issue