gecko-dev/testing/web-platform/tests/webcodecs
Dale Curtis 93a11ec123 Bug 1706869 [wpt PR 28635] - Change to a non-fatal error for unsatisfiable image decodes., a=testonly
Automatic update from web-platform-tests
Change to a non-fatal error for unsatisfiable image decodes.

In the event of truncated files, the spec has been changed to say
we should throw a non-fatal range error instead of invalidating
the image decoder.

R=chcunningham

Fixed: 1200137
Change-Id: I166069138f40483ca2dfe471dd9d132ae7320d27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2846127
Reviewed-by: Chrome Cunningham <chcunningham@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#875448}

--

wpt-commits: c1f9f678551948177e1274dc3884899a708d9423
wpt-pr: 28635
2021-04-24 15:48:13 +00:00
..
META.yml Bug 1702016 [wpt PR 28301] - [META] Update URL of WebCodecs spec, a=testonly 2021-04-08 10:47:32 +00:00
README.md Bug 1705568 [wpt PR 28530] - Always reinitialize decoders after Flush()., a=testonly 2021-04-24 15:47:14 +00:00
audio-decoder.any.js Bug 1706556 [wpt PR 28613] - [WebCodecs] Fix WPT tests for reset during flush., a=testonly 2021-04-24 15:47:47 +00:00
audio-encoder-config.any.js Bug 1704678 [wpt PR 28451] - webcodecs: Implementation of AudioEncoder.isConfigSupported(), a=testonly 2021-04-15 09:17:41 +00:00
audio-encoder.any.js Bug 1704678 [wpt PR 28451] - webcodecs: Implementation of AudioEncoder.isConfigSupported(), a=testonly 2021-04-15 09:17:41 +00:00
audio-frame-serialization.any.js
four-colors-flip.avif
four-colors-flip.gif
four-colors-full-range-bt2020-pq-444-10bpc.avif
four-colors-limited-range-420-8bpc.avif Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder., a=testonly 2021-04-08 10:47:22 +00:00
four-colors-limited-range-420-8bpc.jpg Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder., a=testonly 2021-04-08 10:47:22 +00:00
four-colors-limited-range-420-8bpc.webp Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder., a=testonly 2021-04-08 10:47:22 +00:00
four-colors-limited-range-422-8bpc.avif Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder., a=testonly 2021-04-08 10:47:22 +00:00
four-colors-limited-range-444-8bpc.avif Bug 1701163 [wpt PR 28259] - Implement support for decoding to YUV for ImageDecoder., a=testonly 2021-04-08 10:47:22 +00:00
four-colors.avif
four-colors.gif
four-colors.jpg
four-colors.mp4
four-colors.png
four-colors.webp
h264.mp4
image-decoder-image-orientation-none.html
image-decoder-utils.js
image-decoder.any.js Bug 1706869 [wpt PR 28635] - Change to a non-fatal error for unsatisfiable image decodes., a=testonly 2021-04-24 15:48:13 +00:00
pattern.png
sfx-opus.ogg Bug 1705568 [wpt PR 28530] - Always reinitialize decoders after Flush()., a=testonly 2021-04-24 15:47:14 +00:00
utils.js Bug 1702811 [wpt PR 28357] - Implement support for alpha preference in WebCodecs., a=testonly 2021-04-15 09:16:57 +00:00
video-decoder.any.js Bug 1706556 [wpt PR 28613] - [WebCodecs] Fix WPT tests for reset during flush., a=testonly 2021-04-24 15:47:47 +00:00
video-encoder-config.any.js Bug 1705224 [wpt PR 28486] - webcodecs: Implementation of VideoEncoder.isConfigSupported(), a=testonly 2021-04-23 22:15:54 +00:00
video-encoder.any.js Bug 1703082 [wpt PR 28373] - Reland "webcodecs: Stop closing frames in Audio|VideoEncoder.encode()", a=testonly 2021-04-15 09:16:56 +00:00
video-frame-serialization.any.js Bug 1694842 [wpt PR 27772] - [webcodecs] Implement transfer semantics for VideoFrame, a=testonly 2021-04-23 22:16:06 +00:00
video-frame.any.js Bug 1704926 [wpt PR 28461] - [webcodecs] Implement regions., a=testonly 2021-04-23 22:15:37 +00:00
videoFrame-canvasImageSource.html
videoFrame-createImageBitmap.any.js
videoFrame-drawImage.any.js Bug 1704926 [wpt PR 28461] - [webcodecs] Implement regions., a=testonly 2021-04-23 22:15:37 +00:00
videoFrame-texImage.any.js Bug 1704926 [wpt PR 28461] - [webcodecs] Implement regions., a=testonly 2021-04-23 22:15:37 +00:00
vp9.mp4
webgl-test-utils.js

README.md

WebCodecs Test Files

[TOC]

Instructions

To add, update or remove a test file, please update the list below.

Please provide full reference and steps to generate the test file so that any people can regenerate or update the file in the future.

List of Test Files

four-colors.png

Generated using MSPaint like a true professional.

four-colors.avif

Lossless encoding must be used to ensure colors are perfect.

avifenc -l four-colors.png -o four-colors.avif

four-colors.webp

Lossless encoding must be used to ensure colors are perfect.

ffmpeg -i four-colors.png -lossless 1 -y four-colors.webp

four-colors-limited-range-420-8bpc.webp

ffmpeg -i four-colors.png -pix_fmt yuv420p four-colors-limited-range-420-8bpc.webp

four-colors.gif

High quality encoding must be used to ensure colors are perfect.

cp four-colors.png four-colors2.png
gifski -o four-colors.gif four-colors*.png

four-colors-flip.gif

High quality encoding must be used to ensure colors are perfect.

ffmpeg -i four-colors.png -vf "rotate=PI" four-colors2.png
gifski -o four-colors-flip.gif four-colors*.png

four-colors-flip.avif

ffmpeg -i four-colors-flip.gif -vcodec libaom-av1 -crf 16 four-colors-flip.mp4
mp4box -add-image ref:primary:tk=1:samp=1 -ab avis -ab avif -ab miaf -brand avis four-colors-flip.mp4 -out four-colors-flip.avif

four-colors-limited-range-(420|422|444)-8bpc.avif

avifenc -r l -d 8 -y 420 -s 0 four-colors.png four-colors-limited-range-420-8bpc.avif
avifenc -r l -d 8 -y 422 -s 0 four-colors.png four-colors-limited-range-422-8bpc.avif
avifenc -r l -d 8 -y 444 -s 0 four-colors.png four-colors-limited-range-444-8bpc.avif

four-colors-full-range-bt2020-pq-444-10bpc.avif

avifenc -r f -d 10 -y 444 -s 0 --nclx 9/16/9 four-colors.png four-colors-full-range-bt2020-pq-444-10bpc.avif

four-colors.jpg

Used Sqoosh.app with MozJPEG compression and RGB channels. exiftool was then used to add an orientation marker.

exiftool -Orientation=1 -n four-colors.jpg

four-colors-limited-range-420-8bpc.jpg

Used Sqoosh.app with MozJPEG compression and YUV channels.

four-colors.mp4

Used a custom tool to convert four-colors.avif into a .mp4 file.

sfx-opus.ogg

sox -n -r 48000 sfx.wav synth 1 sine 480
ffmpeg -i sfx.wav -frames:a 10 -acodec libopus -b:a 96K sfx-opus.ogg