mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
LibGfx: Log spectral information
This commit is contained in:
parent
3719f94c63
commit
d3231ca323
Notes:
sideshowbarker
2024-07-16 23:41:41 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/d3231ca323 Pull-request: https://github.com/SerenityOS/serenity/pull/17627 Reviewed-by: https://github.com/nico ✅
|
@ -595,6 +595,11 @@ static ErrorOr<void> read_start_of_scan(AK::SeekableStream& stream, JPEGLoadingC
|
|||
current_scan.spectral_selection_end = TRY(stream.read_value<u8>());
|
||||
current_scan.successive_approximation = TRY(stream.read_value<u8>());
|
||||
|
||||
dbgln_if(JPEG_DEBUG, "Start of Selection: {}, End of Selection: {}, Successive Approximation: {}",
|
||||
current_scan.spectral_selection_start,
|
||||
current_scan.spectral_selection_end,
|
||||
current_scan.successive_approximation);
|
||||
|
||||
// The three values should be fixed for baseline JPEGs utilizing sequential DCT.
|
||||
if (current_scan.spectral_selection_start != 0 || current_scan.spectral_selection_end != 63 || current_scan.successive_approximation != 0) {
|
||||
dbgln_if(JPEG_DEBUG, "{}: ERROR! Start of Selection: {}, End of Selection: {}, Successive Approximation: {}!",
|
||||
|
|
Loading…
Reference in a new issue