mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibGfx/WebPWriter: Add a dbgln_if()
This commit is contained in:
parent
e212c20228
commit
5c990e87f4
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/5c990e87f4 Pull-request: https://github.com/SerenityOS/serenity/pull/24483 Reviewed-by: https://github.com/gmta ✅
@ -201,6 +201,7 @@ static ErrorOr<CanonicalCode> write_normal_code_lengths(LittleEndianOutputBitStr
|
||||
if (alphabet_size == encoded_lengths_count) {
|
||||
TRY(bit_stream.write_bits(0u, 1u)); // max_symbol is alphabet_size
|
||||
} else {
|
||||
dbgln_if(WEBP_DEBUG, "writing max_symbol: {}", encoded_lengths_count);
|
||||
TRY(bit_stream.write_bits(1u, 1u)); // max_symbol is explicitly coded
|
||||
// "int length_nbits = 2 + 2 * ReadBits(3);
|
||||
// int max_symbol = 2 + ReadBits(length_nbits);"
|
||||
|
Loading…
Reference in New Issue
Block a user