mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibGfx/JBIG2: Add a dbgln_if(JBIG2_DEBUG) for non-MMR generic regions
This commit is contained in:
parent
77850f06dc
commit
596b06333f
Notes:
sideshowbarker
2024-07-17 04:03:27 +09:00
Author: https://github.com/nico
Commit: 596b06333f
Pull-request: https://github.com/SerenityOS/serenity/pull/23583
Reviewed-by: https://github.com/LucasChollet ✅
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