mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:35:07 +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
|
// 7.4.6.3 Generic region segment AT flags
|
||||||
GenericRegionDecodingInputParameters::AdaptiveTemplatePixel adaptive_template_pixels[12];
|
GenericRegionDecodingInputParameters::AdaptiveTemplatePixel adaptive_template_pixels[12];
|
||||||
if (!uses_mmr) {
|
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 (arithmetic_coding_template == 0 && !uses_extended_reference_template) {
|
||||||
if (data.size() < 8)
|
if (data.size() < 8)
|
||||||
return Error::from_string_literal("JBIG2ImageDecoderPlugin: No adaptive template data");
|
return Error::from_string_literal("JBIG2ImageDecoderPlugin: No adaptive template data");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue