mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibGfx/JBIG2: Tweak decode_immediate_generic_region()
Set context only for non-MMR. No behavior change.
This commit is contained in:
committed by
Andreas Kling
parent
de6507ef94
commit
825b4d4e94
Notes:
sideshowbarker
2024-07-17 01:10:58 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/825b4d4e94 Pull-request: https://github.com/SerenityOS/serenity/pull/23864
@@ -2096,9 +2096,11 @@ static ErrorOr<void> decode_immediate_generic_region(JBIG2LoadingContext& contex
|
||||
// 7.4.6.4 Decoding a generic region segment
|
||||
// "1) Interpret its header, as described in 7.4.6.1"
|
||||
// Done above.
|
||||
|
||||
// "2) As described in E.3.7, reset all the arithmetic coding statistics to zero."
|
||||
Vector<JBIG2::ArithmeticDecoder::Context> contexts;
|
||||
contexts.resize(1 << number_of_context_bits_for_template(arithmetic_coding_template));
|
||||
if (!uses_mmr)
|
||||
contexts.resize(1 << number_of_context_bits_for_template(arithmetic_coding_template));
|
||||
|
||||
// "3) Invoke the generic region decoding procedure described in 6.2, with the parameters to the generic region decoding procedure set as shown in Table 37."
|
||||
GenericRegionDecodingInputParameters inputs;
|
||||
|
||||
Reference in New Issue
Block a user