diff options
author | Nico Weber <thakis@chromium.org> | 2023-04-03 19:25:45 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-04-06 00:16:52 +0100 |
commit | 8e6911c8f64bcbdb6fc7036a281236b1d626c131 (patch) | |
tree | 8ed4c9c710279b27e2ab7b31581b489980530b32 /Userland/Libraries/LibGfx | |
parent | cc33a57620574658425f240c715f2107c6d02433 (diff) | |
download | serenity-8e6911c8f64bcbdb6fc7036a281236b1d626c131.zip |
LibGfx: Remove some noisy dbgln_if()s in webp decoder
Pixel decoding mostly works, so there's no need to log all this data.
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r-- | Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp index c623fee9fe..9193e852c1 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/WebPLoader.cpp @@ -550,7 +550,6 @@ static ErrorOr<void> decode_webp_chunk_VP8L(WebPLoadingContext& context, Chunk c while (pixel < end) { auto symbol = TRY(group[0].read_symbol(bit_stream)); - dbgln_if(WEBP_DEBUG, " pixel sym {}", symbol); if (symbol >= 256u + 24u + color_cache_size) return context.error("WebPImageDecoderPlugin: Symbol out of bounds"); @@ -600,8 +599,6 @@ static ErrorOr<void> decode_webp_chunk_VP8L(WebPLoadingContext& context, Chunk c // https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#522_lz77_backward_reference // "Distance codes larger than 120 denote the pixel-distance in scan-line order, offset by 120." // "The smallest distance codes [1..120] are special, and are reserved for a close neighborhood of the current pixel." - dbgln_if(WEBP_DEBUG, " backref L {} D {}", length, distance); - if (distance <= 120) { auto offset = distance_map[distance - 1]; distance = offset.x + offset.y * context.size->width(); @@ -610,7 +607,6 @@ static ErrorOr<void> decode_webp_chunk_VP8L(WebPLoadingContext& context, Chunk c } else { distance = distance - 120; } - dbgln_if(WEBP_DEBUG, " effective distance {}", distance); if (pixel - context.bitmap->begin() < distance) return context.error("WebPImageDecoderPlugin: Backward reference distance out of bounds"); @@ -626,7 +622,6 @@ static ErrorOr<void> decode_webp_chunk_VP8L(WebPLoadingContext& context, Chunk c else { // "a. Use S - (256 + 24) as the index into the color cache." unsigned index = symbol - (256 + 24); - dbgln_if(WEBP_DEBUG, " use color cache {}", index); // "b. Get ARGB color from the color cache at that index." if (index >= color_cache_size) |