1
0
Fork 0
firefox/testing/web-platform/mozilla/tests/webgpu/resources
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
cache Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-h264-bt601-hflip.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-h264-bt601-rotate-90.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-h264-bt601-rotate-180.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-h264-bt601-rotate-270.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-h264-bt601-vflip.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-h264-bt601.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-rotate-90-cw.jpg Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-rotate-180-cw.jpg Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-rotate-270-cw.jpg Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp8-bt601.webm Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601-hflip.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601-rotate-90.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601-rotate-180.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601-rotate-270.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601-vflip.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601.mp4 Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt601.webm Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors-vp9-bt709.webm Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.avif Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.bmp Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.gif Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.ico Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.jpg Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.png Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.svg Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
four-colors.webp Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.md Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
webgpu.png Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00

Always use getResourcePath() to get the appropriate path to these resources depending on the context (WPT, standalone, worker, etc.)

The test video files were generated with by ffmpeg cmds below:

// Generate four-colors-vp8-bt601.webm, mimeType: 'video/webm; codecs=vp8'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv four-colors-vp8-bt601.webm

// Generate four-colors-h264-bt601.mp4, mimeType: 'video/mp4; codecs=avc1.4d400c'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libx264 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv four-colors-h264-bt601.mp4

// Generate four-colors-vp9-bt601.webm, mimeType: 'video/webm; codecs=vp9'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv four-colors-vp9-bt601.webm

// Generate four-colors-vp9-bt709.webm, mimeType: 'video/webm; codecs=vp9'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -vf scale=out_color_matrix=bt709:out_range=tv four-colors-vp9-bt709.webm

// Generate  four-colors-vp9-bt601.mp4, mimeType: 'video/mp4; codecs=vp9'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv four-colors-vp9-bt601.mp4

Generate video files to test rotation behaviour. Use ffmepg to rotate video content x degrees in cw direction (by using transpose) and update transform matrix in metadata through display_rotation to x degrees to apply ccw direction rotation.

H264 rotated video files are generated by ffmpeg cmds below:

// Generate four-colors-h264-bt601-rotate-90.mp4, mimeType: 'video/mp4; codecs=avc1.4d400c'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libx264 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv -vf transpose=2 temp.mp4
ffmpeg -display_rotation 270 -i temp.mp4 -c copy four-colors-h264-bt601-rotate-90.mp4
rm temp.mp4

// Generate four-colors-h264-bt601-rotate-180.mp4, mimeType: 'video/mp4; codecs=avc1.4d400c'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libx264 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv -vf transpose=2,transpose=2 temp.mp4
ffmpeg -display_rotation 180 -i temp.mp4 -c copy four-colors-h264-bt601-rotate-180.mp4
rm temp.mp4

// Generate four-colors-h264-bt601-rotate-270.mp4, mimeType: 'video/mp4; codecs=avc1.4d400c'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libx264 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv -vf transpose=1 temp.mp4
ffmpeg -display_rotation 90 -i temp.mp4 -c copy four-colors-h264-bt601-rotate-270.mp4
rm temp.mp4

Vp9 rotated video files are generated by ffmpeg cmds below:

// Generate four-colors-vp9-bt601-rotate-90.mp4, mimeType: 'video/mp4; codecs=vp9'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv -vf transpose=2 temp.mp4
ffmpeg -display_rotation 270 -i temp.mp4 -c copy four-colors-vp9-bt601-rotate-90.mp4
rm temp.mp4

// Generate four-colors-vp9-bt601-rotate-180.mp4, mimeType: 'video/mp4; codecs=vp9'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv -vf transpose=2,transpose=2 temp.mp4
ffmpeg -display_rotation 180 -i temp.mp4 -c copy four-colors-vp9-bt601-rotate-180.mp4
rm temp.mp4

// Generate four-colors-vp9-bt601-rotate-270.mp4, mimeType: 'video/mp4; codecs=vp9'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv -vf transpose=1 temp.mp4
ffmpeg -display_rotation 90 -i temp.mp4 -c copy four-colors-vp9-bt601-rotate-270.mp4
rm temp.mp4

Generate video files to test flip behaviour. Use ffmpeg to flip video content. Using display_hflip to do horizontal flip and display_vflip to do vertical flip.

H264 flip video files are generated by ffmpeg cmds below:

// Generate four-colors-h264-bt601-hflip.mp4, mimeType: 'video/mp4; codecs=avc1.4d400c'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libx264 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv temp.mp4
ffmpeg -display_hflip -i temp.mp4 -c copy four-colors-h264-bt601-hflip.mp4
rm temp.mp4

// Generate four-colors-h264-bt601-vflip.mp4, mimeType: 'video/mp4; codecs=avc1.4d400c'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libx264 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv temp.mp4
ffmpeg -display_vflip -i temp.mp4 -c copy four-colors-h264-bt601-vflip.mp4
rm temp.mp4

Vp9 flip video files are generated by ffmpeg cmds below:

// Generate four-colors-vp9-bt601-hflip.mp4, mimeType: 'video/mp4; codecs=vp09.00.10.08'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv temp.mp4
ffmpeg -display_hflip -i temp.mp4 -c copy four-colors-vp9-bt601-hflip.mp4
rm temp.mp4

// Generate four-colors-vp9-bt601-vflip.mp4, mimeType: 'video/mp4; codecs=vp09.00.10.08'
ffmpeg.exe -loop 1 -i .\four-colors.png -c:v libvpx-vp9 -pix_fmt yuv420p -frames 50 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m -color_range tv temp.mp4
ffmpeg -display_vflip -i temp.mp4 -c copy four-colors-vp9-bt601-vflip.mp4
rm temp.mp4

The test jpg files were generated with by exiftool cmds and other image tools in below steps:

// Generate four-colors.jpg with no orientation metadata
Use a image tool (e.g. "Paint" app on Windows) to create four-colors.jpg from four-colors.png and check with exiftool to ensure no orientation metadata been set.

// Generate jpg picture with 90 cw rotation metadata
Use a image tool (e.g. "Paint" app on Windows) to create four-colors-hard-rotate-90-ccw.jpg and check with exiftool to ensure no orientation metadata been set.
exiftool -Orientation#=6 four-colors-hard-rotate-90-ccw.jpg -o four-colors-rotate-90-cw.jpg
rm four-colors-hard-rotate-90-ccw.jpg

// Generate jpg picture with 180 cw rotation metadata
Use a image tool (e.g. "Paint" app on Windows) to create four-colors-hard-rotate-180-ccw.jpg and check with exiftool to ensure no orientation metadata been set.
exiftool -Orientation#=3 four-colors-hard-rotate-180-ccw.jpg -o four-colors-rotate-180-cw.jpg
rm four-colors-hard-rotate-180-ccw.jpg

// Generate jpg picture with 270 cw rotation metadata
Use a image tool (e.g. "Paint" app on Windows) to create four-colors-hard-rotate-270-ccw.jpg and check with exiftool to ensure no orientation metadata been set.
exiftool -Orientation#=8 four-colors-hard-rotate-270-ccw.jpg -o four-colors-rotate-270-cw.jpg
rm four-colors-hard-rotate-270-ccw.jpg