mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibGfx/JPEG: Log components present in a scan
This commit is contained in:
parent
e18c87c60c
commit
3d7888f309
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…
Add table
Add a link
Reference in a new issue