Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder...
commit736a61b10b3ae1acea1d876b232ee64daf705f2b
authorDale Curtis <dalecurtis@chromium.org>
Thu, 1 Apr 2021 16:43:04 +0000 (1 16:43 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 2 Apr 2021 09:15:32 +0000 (2 09:15 +0000)
tree3601c59c68b3a51074ef216a1f314c1823bb17ff
parent949b14f26a77b935376ac8c4b15c721446886c75
Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder., a=testonly

Automatic update from web-platform-tests
Implement support for decoding to YUV for ImageDecoder.

As titled, we can now decode images to I420, I422, and I444. So add the
necessary pixel formats and machinery behind a new ImageDecodeOption
called 'preferYuv'.

Bug: 1182435
Test: New tests.

Change-Id: I3bd314d0f322a1f386c541810b701c381957f619
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2785972
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Dan Sanders <sandersd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#867424}

--

wpt-commits: 3915d57093e8ded13a4472994ac882009f9ed7b1
wpt-pr: 28259
testing/web-platform/tests/webcodecs/README.md
testing/web-platform/tests/webcodecs/four-colors-limited-range-420-8bpc.avif [new file with mode: 0644]
testing/web-platform/tests/webcodecs/four-colors-limited-range-420-8bpc.jpg [new file with mode: 0644]
testing/web-platform/tests/webcodecs/four-colors-limited-range-420-8bpc.webp [new file with mode: 0644]
testing/web-platform/tests/webcodecs/four-colors-limited-range-422-8bpc.avif [new file with mode: 0644]
testing/web-platform/tests/webcodecs/four-colors-limited-range-444-8bpc.avif [new file with mode: 0644]
testing/web-platform/tests/webcodecs/image-decoder.any.js