mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 20:55:07 +00:00
LibGfx/JPEG: Replace C-style array by Array
This commit is contained in:
parent
df12e70541
commit
261d36351d
1 changed files with 2 additions and 4 deletions
|
@ -247,7 +247,7 @@ struct JPEGLoadingContext {
|
||||||
u16 dc_restart_interval { 0 };
|
u16 dc_restart_interval { 0 };
|
||||||
HashMap<u8, HuffmanTableSpec> dc_tables;
|
HashMap<u8, HuffmanTableSpec> dc_tables;
|
||||||
HashMap<u8, HuffmanTableSpec> ac_tables;
|
HashMap<u8, HuffmanTableSpec> ac_tables;
|
||||||
i32 previous_dc_values[3] = { 0 };
|
Array<i32, 3> previous_dc_values {};
|
||||||
MacroblockMeta mblock_meta;
|
MacroblockMeta mblock_meta;
|
||||||
OwnPtr<FixedMemoryStream> stream;
|
OwnPtr<FixedMemoryStream> stream;
|
||||||
|
|
||||||
|
@ -579,9 +579,7 @@ static void reset_decoder(JPEGLoadingContext& context)
|
||||||
|
|
||||||
// E.2.4 Control procedure for decoding a restart interval
|
// E.2.4 Control procedure for decoding a restart interval
|
||||||
if (is_dct_based(context.frame.type)) {
|
if (is_dct_based(context.frame.type)) {
|
||||||
context.previous_dc_values[0] = 0;
|
context.previous_dc_values = {};
|
||||||
context.previous_dc_values[1] = 0;
|
|
||||||
context.previous_dc_values[2] = 0;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue