From d3231ca323f52de6de5a88772de9aa09697cf989 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Wed, 22 Feb 2023 23:55:32 -0500 Subject: [PATCH] LibGfx: Log spectral information --- Userland/Libraries/LibGfx/JPEGLoader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibGfx/JPEGLoader.cpp b/Userland/Libraries/LibGfx/JPEGLoader.cpp index 6bfb394154..a9088ac2ff 100644 --- a/Userland/Libraries/LibGfx/JPEGLoader.cpp +++ b/Userland/Libraries/LibGfx/JPEGLoader.cpp @@ -595,6 +595,11 @@ static ErrorOr read_start_of_scan(AK::SeekableStream& stream, JPEGLoadingC current_scan.spectral_selection_end = TRY(stream.read_value()); current_scan.successive_approximation = TRY(stream.read_value()); + 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: {}!",