зеркало из https://github.com/mozilla/gecko-dev.git
93a11ec123
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 |
||
---|---|---|
.. | ||
META.yml | ||
README.md | ||
audio-decoder.any.js | ||
audio-encoder-config.any.js | ||
audio-encoder.any.js | ||
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 | ||
four-colors-limited-range-420-8bpc.jpg | ||
four-colors-limited-range-420-8bpc.webp | ||
four-colors-limited-range-422-8bpc.avif | ||
four-colors-limited-range-444-8bpc.avif | ||
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 | ||
pattern.png | ||
sfx-opus.ogg | ||
utils.js | ||
video-decoder.any.js | ||
video-encoder-config.any.js | ||
video-encoder.any.js | ||
video-frame-serialization.any.js | ||
video-frame.any.js | ||
videoFrame-canvasImageSource.html | ||
videoFrame-createImageBitmap.any.js | ||
videoFrame-drawImage.any.js | ||
videoFrame-texImage.any.js | ||
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