mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibGfx/JBIG2: Expand a comment
This commit is contained in:
parent
21c54839e6
commit
5dc9ead1c5
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/nico
Commit: 5dc9ead1c5
Pull-request: https://github.com/SerenityOS/serenity/pull/23594
1 changed files with 1 additions and 1 deletions
|
@ -795,7 +795,7 @@ static ErrorOr<void> decode_immediate_generic_region(JBIG2LoadingContext& contex
|
|||
u8 flags = data[0];
|
||||
bool uses_mmr = (flags & 1) != 0;
|
||||
u8 arithmetic_coding_template = (flags >> 1) & 3; // "GBTEMPLATE"
|
||||
bool typical_prediction_generic_decoding_on = (flags >> 3) & 1; // "TPGDON"
|
||||
bool typical_prediction_generic_decoding_on = (flags >> 3) & 1; // "TPGDON"; "TPGD" is short for "Typical Prediction for Generic Direct coding"
|
||||
bool uses_extended_reference_template = (flags >> 4) & 1; // "EXTTEMPLATE"
|
||||
if (flags & 0b1110'0000)
|
||||
return Error::from_string_literal("JBIG2ImageDecoderPlugin: Invalid flags");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue