Explorar o código

LibGfx/JBIG2: Add a dbgln_if(JBIG2_DEBUG) for non-MMR generic regions

Nico Weber hai 1 ano
pai
achega
596b06333f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp

+ 2 - 0
Userland/Libraries/LibGfx/ImageFormats/JBIG2Loader.cpp

@@ -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");