Implement decoding to YUV for AVIF image format
The ReadYUV() function and the StaticAVIFTests.YUV test in avif_image_decoder_test.cc are adapted from the ReadYUV() function and the JPEGImageDecoderTest.yuv test in jpeg_image_decoder_test.cc. Declare ImageDecoder::CanDecodeToYUV() as a const method. Test: 1. blink_platform_unittests --gtest_filter=*AVIF* 2. Run chrome with --enable-features=AVIF and visit https://resources.link-u.co.jp/avif/images.html. Bug: 1087056 Change-Id: I8cd6375cc0824e71ec80622328f288a19c67bc90 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2229840 Commit-Queue: Wan-Teh Chang <wtc@google.com> Reviewed-by:Peter Kasting <pkasting@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#781330}
Showing
Please register or sign in to comment