LibGfx/JPEG: Log components present in a scan

This commit is contained in:
Lucas CHOLLET 2023-03-01 19:43:08 -05:00 committed by Jelle Raaijmakers
parent e18c87c60c
commit 3d7888f309
Notes: sideshowbarker 2024-07-17 03:03:37 +09:00

View file

@ -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>());