mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 23:42:52 +00:00
LibGfx/JPEG: Replace C-style array by Array
This commit is contained in:
parent
df12e70541
commit
261d36351d
Notes:
sideshowbarker
2024-07-16 22:58:46 +09:00
Author: https://github.com/LucasChollet
Commit: 261d36351d
Pull-request: https://github.com/SerenityOS/serenity/pull/17786
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/nico ✅
1 changed files with 2 additions and 4 deletions
|
@ -247,7 +247,7 @@ struct JPEGLoadingContext {
|
|||
u16 dc_restart_interval { 0 };
|
||||
HashMap<u8, HuffmanTableSpec> dc_tables;
|
||||
HashMap<u8, HuffmanTableSpec> ac_tables;
|
||||
i32 previous_dc_values[3] = { 0 };
|
||||
Array<i32, 3> previous_dc_values {};
|
||||
MacroblockMeta mblock_meta;
|
||||
OwnPtr<FixedMemoryStream> stream;
|
||||
|
||||
|
@ -579,9 +579,7 @@ static void reset_decoder(JPEGLoadingContext& context)
|
|||
|
||||
// E.2.4 Control procedure for decoding a restart interval
|
||||
if (is_dct_based(context.frame.type)) {
|
||||
context.previous_dc_values[0] = 0;
|
||||
context.previous_dc_values[1] = 0;
|
||||
context.previous_dc_values[2] = 0;
|
||||
context.previous_dc_values = {};
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue