serenity/Userland
Nico Weber 6971ba35d5 LibGfx+Tests: Support grayscale jpegs with 2x2 sampling and MCU reset
Non-interleaved files always have an MCU of one data unit.

(A "data unit" is an 8x8 tile of pixels, and an "MCU" is a
"minium coded unit", e.g. 2x2 data units for luminance and
1 data unit each for Cr and Cb for a YCrCb image with
4:2:0 subsampling.)

For the test case, I converted an existing image to a ppm:

    Build/lagom/bin/image -o out.ppm \
        Tests/LibGfx/test-inputs/jpg/12-bit.jpg

Then I converted it to grayscale and saved it as a pgm in Photoshop.
Then I turned it into a weird jpeg like so:

    path/to/cjpeg \
        -outfile Tests/LibGfx/test-inputs/jpg/grayscale_mcu.jpg \
        -sample 2x2 -restart 3 out.pgm

Makes 3 of the 5 jpegs failing to decode at #22780 go.
2024-01-30 05:35:22 +01:00
..
Applets Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
Applications 3DFileViewer: Use ByteString for file paths 2024-01-29 23:14:39 +00:00
BuggieBox checksum: Add support for BLAKE2b 2023-09-17 16:49:35 +03:30
Demos WidgetGallery: Remove quotes around GML boolean values 2024-01-21 08:38:18 -05:00
DevTools LibFileSystemAccessClient+Userland: Return file paths as ByteStrings 2024-01-29 23:14:39 +00:00
DynamicLoader LibC: Separate arch dependent fenv functions 2024-01-22 20:06:09 -07:00
Games AK+Userland: Return String from human_readable_[digital_]time() 2024-01-25 09:07:32 +01:00
Libraries LibGfx+Tests: Support grayscale jpegs with 2x2 sampling and MCU reset 2024-01-30 05:35:22 +01:00
Services LibGUI+WindowServer: Add menu minimum width support 2024-01-29 05:29:41 -07:00
Shell Shell: Use reverse iterators for history events 2024-01-23 01:31:25 +03:30
Utilities mktemp: Make sure to use target directory option argument 2024-01-30 00:12:54 +00:00
CMakeLists.txt