mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibGfx/GIFLoader: Add debug logging for image descriptors
This commit is contained in:
parent
27242c6be6
commit
437fd9ae2b
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/nico
Commit: 437fd9ae2b
Pull-request: https://github.com/SerenityOS/serenity/pull/24288
1 changed files with 2 additions and 0 deletions
|
@ -337,6 +337,8 @@ static ErrorOr<void> load_gif_frame_descriptors(GIFLoadingContext& context)
|
|||
image->use_global_color_map = !(packed_fields & 0x80);
|
||||
image->interlaced = (packed_fields & 0x40) != 0;
|
||||
|
||||
dbgln_if(GIF_DEBUG, "Image descriptor: x={}, y={}, width={}, height={}, use_global_color_map={}, local_map_size_exponent={}, interlaced={}", image->x, image->y, image->width, image->height, image->use_global_color_map, (packed_fields & 7) + 1, image->interlaced);
|
||||
|
||||
if (!image->use_global_color_map) {
|
||||
size_t local_color_table_size = AK::exp2<size_t>((packed_fields & 7) + 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue