blink: Detect YUV format in non-interleaved JPEGs.
This CL modifies the JPEGImageDecoder to detect the YUV subsampling format correctly when not all the components are in the first scan. Prior to this change, the subsampling calculation was based on the information in the first scan. However, for some JPEGs (non-interleaved), this would produce YUV_UNKNOWN. This change makes the computation based on the information in the SOF which is global for the image and includes the information of all the scans. Bug: 900446 Test: Add a test to cover the non-interleaved case. Change-Id: If1d810f0d921cba3603cf82ac9fba19da02e8982 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1844094Reviewed-by:Leon Scroggins <scroggo@chromium.org> Commit-Queue: Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#703366}
Showing
Please register or sign in to comment