mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
LibGfx/JBIG2: Add a dbgln_if(JBIG2_DEBUG) for non-MMR generic regions
This commit is contained in:
parent
77850f06dc
commit
596b06333f
1 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,8 @@ static ErrorOr<void> decode_immediate_generic_region(JBIG2LoadingContext& contex
|
|||
// 7.4.6.3 Generic region segment AT flags
|
||||
GenericRegionDecodingInputParameters::AdaptiveTemplatePixel adaptive_template_pixels[12];
|
||||
if (!uses_mmr) {
|
||||
dbgln_if(JBIG2_DEBUG, "Non-MMR generic region, GBTEMPLATE={} TPGDON={} EXTTEMPLATE={}", arithmetic_coding_template, typical_prediction_generic_decoding_on, uses_extended_reference_template);
|
||||
|
||||
if (arithmetic_coding_template == 0 && !uses_extended_reference_template) {
|
||||
if (data.size() < 8)
|
||||
return Error::from_string_literal("JBIG2ImageDecoderPlugin: No adaptive template data");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue