mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00: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: 5c990e87f4
Pull-request: https://github.com/SerenityOS/serenity/pull/24483
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ static ErrorOr<CanonicalCode> write_normal_code_lengths(LittleEndianOutputBitStr
|
||||||
if (alphabet_size == encoded_lengths_count) {
|
if (alphabet_size == encoded_lengths_count) {
|
||||||
TRY(bit_stream.write_bits(0u, 1u)); // max_symbol is alphabet_size
|
TRY(bit_stream.write_bits(0u, 1u)); // max_symbol is alphabet_size
|
||||||
} else {
|
} else {
|
||||||
|
dbgln_if(WEBP_DEBUG, "writing max_symbol: {}", encoded_lengths_count);
|
||||||
TRY(bit_stream.write_bits(1u, 1u)); // max_symbol is explicitly coded
|
TRY(bit_stream.write_bits(1u, 1u)); // max_symbol is explicitly coded
|
||||||
// "int length_nbits = 2 + 2 * ReadBits(3);
|
// "int length_nbits = 2 + 2 * ReadBits(3);
|
||||||
// int max_symbol = 2 + ReadBits(length_nbits);"
|
// int max_symbol = 2 + ReadBits(length_nbits);"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue