mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibGfx/JPEG: Log components present in a scan
This commit is contained in:
parent
e18c87c60c
commit
3d7888f309
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/3d7888f309 Pull-request: https://github.com/SerenityOS/serenity/pull/17709 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/kennethmyhra Reviewed-by: https://github.com/nico
1 changed files with 10 additions and 0 deletions
|
@ -650,6 +650,16 @@ static ErrorOr<void> read_start_of_scan(AK::SeekableStream& stream, JPEGLoadingC
|
|||
last_read.clear();
|
||||
}
|
||||
|
||||
if constexpr (JPEG_DEBUG) {
|
||||
StringBuilder builder;
|
||||
TRY(builder.try_append("Components in scan: "sv));
|
||||
for (auto const& scan_component : current_scan.components) {
|
||||
TRY(builder.try_append(TRY(String::number(scan_component.component.id))));
|
||||
TRY(builder.try_append(' '));
|
||||
}
|
||||
dbgln(builder.string_view());
|
||||
}
|
||||
|
||||
current_scan.spectral_selection_start = TRY(stream.read_value<u8>());
|
||||
current_scan.spectral_selection_end = TRY(stream.read_value<u8>());
|
||||
current_scan.successive_approximation = TRY(stream.read_value<u8>());
|
||||
|
|
Loading…
Reference in a new issue