From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- dom/media/test/reftest/av1hdr2020.mp4 | Bin 0 -> 109327 bytes dom/media/test/reftest/av1hdr2020.png | Bin 0 -> 4162799 bytes .../bipbop_300_215kbps.mp4.lastframe-ref.html | 4 + .../reftest/bipbop_300_215kbps.mp4.lastframe.html | 19 ++ dom/media/test/reftest/color_quads/720p.png | Bin 0 -> 8722 bytes .../720p.png.bt709.bt709.pc.gbrp.av1.mp4 | Bin 0 -> 968 bytes .../720p.png.bt709.bt709.pc.gbrp.av1.webm | Bin 0 -> 669 bytes .../720p.png.bt709.bt709.pc.gbrp.h264.mp4 | Bin 0 -> 1874 bytes .../720p.png.bt709.bt709.pc.gbrp.vp9.mp4 | Bin 0 -> 1102 bytes .../720p.png.bt709.bt709.pc.gbrp.vp9.webm | Bin 0 -> 808 bytes .../720p.png.bt709.bt709.pc.yuv420p.av1.mp4 | Bin 0 -> 1016 bytes .../720p.png.bt709.bt709.pc.yuv420p.av1.webm | Bin 0 -> 717 bytes .../720p.png.bt709.bt709.pc.yuv420p.h264.mp4 | Bin 0 -> 1951 bytes .../720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 | Bin 0 -> 1116 bytes .../720p.png.bt709.bt709.pc.yuv420p.vp9.webm | Bin 0 -> 822 bytes .../720p.png.bt709.bt709.pc.yuv420p10.av1.mp4 | Bin 0 -> 1031 bytes .../720p.png.bt709.bt709.pc.yuv420p10.av1.webm | Bin 0 -> 732 bytes .../720p.png.bt709.bt709.pc.yuv420p10.h264.mp4 | Bin 0 -> 1990 bytes .../720p.png.bt709.bt709.pc.yuv420p10.vp9.mp4 | Bin 0 -> 1153 bytes .../720p.png.bt709.bt709.pc.yuv420p10.vp9.webm | Bin 0 -> 859 bytes .../720p.png.bt709.bt709.tv.gbrp.av1.mp4 | Bin 0 -> 968 bytes .../720p.png.bt709.bt709.tv.gbrp.av1.webm | Bin 0 -> 669 bytes .../720p.png.bt709.bt709.tv.gbrp.h264.mp4 | Bin 0 -> 1873 bytes .../720p.png.bt709.bt709.tv.gbrp.vp9.mp4 | Bin 0 -> 1102 bytes .../720p.png.bt709.bt709.tv.gbrp.vp9.webm | Bin 0 -> 808 bytes .../720p.png.bt709.bt709.tv.yuv420p.av1.mp4 | Bin 0 -> 1012 bytes .../720p.png.bt709.bt709.tv.yuv420p.av1.webm | Bin 0 -> 713 bytes .../720p.png.bt709.bt709.tv.yuv420p.h264.mp4 | Bin 0 -> 1946 bytes .../720p.png.bt709.bt709.tv.yuv420p.vp9.mp4 | Bin 0 -> 1111 bytes .../720p.png.bt709.bt709.tv.yuv420p.vp9.webm | Bin 0 -> 817 bytes .../720p.png.bt709.bt709.tv.yuv420p10.av1.mp4 | Bin 0 -> 1036 bytes .../720p.png.bt709.bt709.tv.yuv420p10.av1.webm | Bin 0 -> 737 bytes .../720p.png.bt709.bt709.tv.yuv420p10.h264.mp4 | Bin 0 -> 1989 bytes .../720p.png.bt709.bt709.tv.yuv420p10.vp9.mp4 | Bin 0 -> 1148 bytes .../720p.png.bt709.bt709.tv.yuv420p10.vp9.webm | Bin 0 -> 854 bytes dom/media/test/reftest/color_quads/reftest.list | 69 ++++++ dom/media/test/reftest/frame_order.mp4 | Bin 0 -> 7971 bytes dom/media/test/reftest/frame_order_mp4-ref.html | 13 ++ dom/media/test/reftest/frame_order_mp4.html | 37 +++ dom/media/test/reftest/gen_combos.py | 257 +++++++++++++++++++++ dom/media/test/reftest/generateREF.html | 104 +++++++++ .../test/reftest/gizmo.mp4.55thframe-ref.html | 7 + dom/media/test/reftest/gizmo.mp4.seek.html | 36 +++ .../reftest/image-10bits-rendering-720-90-ref.html | 4 + .../image-10bits-rendering-720-90-video.html | 22 ++ .../reftest/image-10bits-rendering-720-ref.html | 4 + .../reftest/image-10bits-rendering-720-video.html | 19 ++ .../reftest/image-10bits-rendering-720.video.html | 19 ++ .../reftest/image-10bits-rendering-90-ref.html | 4 + .../reftest/image-10bits-rendering-90-video.html | 22 ++ .../test/reftest/image-10bits-rendering-ref.html | 4 + .../test/reftest/image-10bits-rendering-video.html | 22 ++ .../incorrect_display_in_bytestream_vp8-ref.html | 13 ++ .../incorrect_display_in_bytestream_vp8.html | 33 +++ .../incorrect_display_in_bytestream_vp8.webm | Bin 0 -> 84160 bytes .../incorrect_display_in_bytestream_vp9-ref.html | 12 + .../incorrect_display_in_bytestream_vp9.html | 33 +++ .../incorrect_display_in_bytestream_vp9.webm | Bin 0 -> 740554 bytes dom/media/test/reftest/reftest.list | 15 ++ dom/media/test/reftest/reftest_img.html | 20 ++ dom/media/test/reftest/reftest_video.html | 64 +++++ .../test/reftest/short.mp4.firstframe-ref.html | 4 + dom/media/test/reftest/short.mp4.firstframe.html | 19 ++ .../test/reftest/short.mp4.lastframe-ref.html | 4 + dom/media/test/reftest/short.mp4.lastframe.html | 42 ++++ .../reftest/uneven_frame_duration_video-ref.html | 7 + .../test/reftest/uneven_frame_duration_video.html | 39 ++++ dom/media/test/reftest/uneven_frame_durations.mp4 | Bin 0 -> 2424023 bytes .../reftest/uneven_frame_durations_3.8s_frame.png | Bin 0 -> 224136 bytes dom/media/test/reftest/vp9hdr2020.png | Bin 0 -> 5083456 bytes dom/media/test/reftest/vp9hdr2020.webm | Bin 0 -> 108855 bytes 71 files changed, 971 insertions(+) create mode 100644 dom/media/test/reftest/av1hdr2020.mp4 create mode 100644 dom/media/test/reftest/av1hdr2020.png create mode 100644 dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe-ref.html create mode 100644 dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe.html create mode 100644 dom/media/test/reftest/color_quads/720p.png create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.h264.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.h264.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.h264.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.h264.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.h264.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.h264.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.mp4 create mode 100644 dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.webm create mode 100644 dom/media/test/reftest/color_quads/reftest.list create mode 100644 dom/media/test/reftest/frame_order.mp4 create mode 100644 dom/media/test/reftest/frame_order_mp4-ref.html create mode 100644 dom/media/test/reftest/frame_order_mp4.html create mode 100644 dom/media/test/reftest/gen_combos.py create mode 100644 dom/media/test/reftest/generateREF.html create mode 100644 dom/media/test/reftest/gizmo.mp4.55thframe-ref.html create mode 100644 dom/media/test/reftest/gizmo.mp4.seek.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-720-90-ref.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-720-90-video.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-720-ref.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-720-video.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-720.video.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-90-ref.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-90-video.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-ref.html create mode 100644 dom/media/test/reftest/image-10bits-rendering-video.html create mode 100644 dom/media/test/reftest/incorrect_display_in_bytestream_vp8-ref.html create mode 100644 dom/media/test/reftest/incorrect_display_in_bytestream_vp8.html create mode 100644 dom/media/test/reftest/incorrect_display_in_bytestream_vp8.webm create mode 100644 dom/media/test/reftest/incorrect_display_in_bytestream_vp9-ref.html create mode 100644 dom/media/test/reftest/incorrect_display_in_bytestream_vp9.html create mode 100644 dom/media/test/reftest/incorrect_display_in_bytestream_vp9.webm create mode 100644 dom/media/test/reftest/reftest.list create mode 100644 dom/media/test/reftest/reftest_img.html create mode 100644 dom/media/test/reftest/reftest_video.html create mode 100644 dom/media/test/reftest/short.mp4.firstframe-ref.html create mode 100644 dom/media/test/reftest/short.mp4.firstframe.html create mode 100644 dom/media/test/reftest/short.mp4.lastframe-ref.html create mode 100644 dom/media/test/reftest/short.mp4.lastframe.html create mode 100644 dom/media/test/reftest/uneven_frame_duration_video-ref.html create mode 100644 dom/media/test/reftest/uneven_frame_duration_video.html create mode 100644 dom/media/test/reftest/uneven_frame_durations.mp4 create mode 100644 dom/media/test/reftest/uneven_frame_durations_3.8s_frame.png create mode 100644 dom/media/test/reftest/vp9hdr2020.png create mode 100644 dom/media/test/reftest/vp9hdr2020.webm (limited to 'dom/media/test/reftest') diff --git a/dom/media/test/reftest/av1hdr2020.mp4 b/dom/media/test/reftest/av1hdr2020.mp4 new file mode 100644 index 0000000000..295bec8a3c Binary files /dev/null and b/dom/media/test/reftest/av1hdr2020.mp4 differ diff --git a/dom/media/test/reftest/av1hdr2020.png b/dom/media/test/reftest/av1hdr2020.png new file mode 100644 index 0000000000..c5d3344a80 Binary files /dev/null and b/dom/media/test/reftest/av1hdr2020.png differ diff --git a/dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe-ref.html b/dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe-ref.html new file mode 100644 index 0000000000..575acb107d --- /dev/null +++ b/dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe-ref.html @@ -0,0 +1,4 @@ + + diff --git a/dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe.html b/dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe.html new file mode 100644 index 0000000000..600b04a4f0 --- /dev/null +++ b/dom/media/test/reftest/bipbop_300_215kbps.mp4.lastframe.html @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/color_quads/720p.png b/dom/media/test/reftest/color_quads/720p.png new file mode 100644 index 0000000000..cf3f2408c1 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.mp4 new file mode 100644 index 0000000000..fa1801013a Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.webm new file mode 100644 index 0000000000..96fd46f848 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.av1.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.h264.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.h264.mp4 new file mode 100644 index 0000000000..c5f08a56f2 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.h264.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.mp4 new file mode 100644 index 0000000000..c64f7eb8d2 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.webm new file mode 100644 index 0000000000..d4341d22ed Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.mp4 new file mode 100644 index 0000000000..ac89827620 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm new file mode 100644 index 0000000000..1544ef996e Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.h264.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.h264.mp4 new file mode 100644 index 0000000000..041d7b4477 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.h264.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 new file mode 100644 index 0000000000..e9cdbb5f51 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.webm new file mode 100644 index 0000000000..6d0b53f002 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.mp4 new file mode 100644 index 0000000000..f30c731bf6 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm new file mode 100644 index 0000000000..0e733057d8 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.h264.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.h264.mp4 new file mode 100644 index 0000000000..9a4783f2db Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.h264.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.mp4 new file mode 100644 index 0000000000..00565d66d3 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.webm new file mode 100644 index 0000000000..08159b5233 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.mp4 new file mode 100644 index 0000000000..3a50d11691 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.webm new file mode 100644 index 0000000000..c18de4bf4f Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.av1.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.h264.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.h264.mp4 new file mode 100644 index 0000000000..9d735cf9ed Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.h264.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.mp4 new file mode 100644 index 0000000000..79dcb0d72d Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm new file mode 100644 index 0000000000..31af47cba1 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.mp4 new file mode 100644 index 0000000000..dfcac969b9 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm new file mode 100644 index 0000000000..00f46b0597 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.h264.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.h264.mp4 new file mode 100644 index 0000000000..ca8b8a1572 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.h264.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.mp4 new file mode 100644 index 0000000000..19ff1b4265 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.webm new file mode 100644 index 0000000000..6fd0aa6756 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.mp4 new file mode 100644 index 0000000000..e95fd5c9fb Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm new file mode 100644 index 0000000000..f28e65f034 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.h264.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.h264.mp4 new file mode 100644 index 0000000000..1fe6824cb4 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.h264.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.mp4 b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.mp4 new file mode 100644 index 0000000000..532ae19359 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.mp4 differ diff --git a/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.webm b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.webm new file mode 100644 index 0000000000..e4aad890f5 Binary files /dev/null and b/dom/media/test/reftest/color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.webm differ diff --git a/dom/media/test/reftest/color_quads/reftest.list b/dom/media/test/reftest/color_quads/reftest.list new file mode 100644 index 0000000000..a5ad475b87 --- /dev/null +++ b/dom/media/test/reftest/color_quads/reftest.list @@ -0,0 +1,69 @@ +# Reference image generated via https://jdashg.github.io/misc/colors/color-quads-16-127-235.html +# Test videos encoded via ../gen_combos.py --write color_quads/720p.png + +# We're sort of testing two things here: +# 1. Does a av1.webm video into the actual values we expect? +# 2. Do other similar videos decode the same was as av1.webm? +# We have this split because while each platform/compositor has its own inaccuracies, +# each platform/compositor will have the *same* inaccuracies regardless of video. +# So, we just need to first check if e.g. av1.webm decodes to what we expect, +# and then we have generally trivially compare other codecs/containers to that. + +defaults pref(media.av1.enabled,true) + +# - +# yuv420p + +fuzzy(16-51,5234-5622) fuzzy-if(swgl,32-38,1600-91746) fuzzy-if(useDrawSnapshot,16-16,11600-11600) fuzzy-if(OSX,16-73,5212-5622) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm ../reftest_img.html?src=color_quads/720p.png +fuzzy-if(winWidget&&swgl,0-20,0-5620) fuzzy-if(winWidget&&!swgl,0-1,0-78) fuzzy-if(Android,254-255,273680-273807) fuzzy-if(OSX,0-35,0-1947) fuzzy-if(OSX&&swgl,0-67,0-5451) fuzzy-if(appleSilicon,30-48,1760-187409) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.webm ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm +fuzzy-if(winWidget,0-1,0-78) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm +skip-if(winWidget&&isCoverageBuild) fuzzy(0-16,75-1941) fuzzy-if(Android,254-255,273680-273807) fuzzy-if(OSX,30-32,187326-187407) fuzzy-if(appleSilicon,30-48,1835-187409) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.h264.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm +fuzzy-if(winWidget&&swgl,0-20,0-5620) fuzzy-if(winWidget&&!swgl,0-1,0-78) fuzzy-if(Android,254-255,273680-273807) fuzzy-if(OSX,0-35,0-1947) fuzzy-if(OSX&&swgl,0-67,0-5451) fuzzy-if(appleSilicon,30-48,1760-187409) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.vp9.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p.av1.webm + +skip-if(Android) fuzzy(16-48,8107-8818) fuzzy-if(winWidget&&swgl,31-38,8240-184080) fuzzy-if(appleSilicon,33-38,8819-11705) fuzzy-if(useDrawSnapshot,20-20,187200-187200) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm ../reftest_img.html?src=color_quads/720p.png +skip-if(Android) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm +# On Windows & sw render, we noticed that the comparison image captured from AV1 is not equal to its displayed video frame, so we would need to compare other codecs directly to PNG file. That should be fixed in bug 1748540. +skip-if(Android) skip-if(winWidget&&swgl) fuzzy-if(Android,255-255,273726-273726) fuzzy-if(OSX,0-16,0-1718) fuzzy-if(OSX&&swgl,0-20,0-2423) fuzzy-if(appleSilicon,0-16,0-1874) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.webm ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm +skip-if(Android) skip-if(winWidget&&swgl) fuzzy-if(Android,255-255,273726-273726) fuzzy-if(OSX,2-36,184281-187407) fuzzy-if(winWidget,0-21,0-360000) fuzzy-if(appleSilicon,36-49,187329-187407) fuzzy-if(useDrawSnapshot,0-1,0-10) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.h264.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm +skip-if(Android) skip-if(winWidget&&swgl) fuzzy-if(Android,255-255,273726-273726) fuzzy-if(OSX,0-16,0-1718) fuzzy-if(OSX&&swgl,0-20,0-2423) fuzzy-if(appleSilicon,0-16,0-1874) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.av1.webm +skip-if(Android) skip-if(!(winWidget&&swgl)) fuzzy(0-35,0-8506) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.webm ../reftest_img.html?src=color_quads/720p.png +skip-if(Android) skip-if(!(winWidget&&swgl)) fuzzy(0-35,0-8506) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p.vp9.mp4 ../reftest_img.html?src=color_quads/720p.png + +# - +# yuv420p10 + +skip-if(Android) fuzzy(33-49,1870-2579) fuzzy-if(swgl,34-52,180421-270528) fuzzy-if(useDrawSnapshot,16-16,183840-183840) fuzzy-if(OSX,60-74,270329-271024) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm ../reftest_img.html?src=color_quads/720p.png +skip-if(Android) fuzzy-if(OSX,0-12,0-187770) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.webm ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm +skip-if(Android) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm +#[2] skip-if(Android) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.h264.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm +skip-if(Android) fuzzy-if(OSX,0-12,0-187770) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.vp9.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.yuv420p10.av1.webm + +skip-if(Android) fuzzy(33-49,174620-270059) fuzzy-if(swgl&&!winWidget,36-52,11553-11555) fuzzy-if(swgl&&winWidget,36-52,11554-187200) fuzzy-if(swgl&&OSX,34-50,11465-270059) fuzzy-if(useDrawSnapshot,20-20,186800-186800) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm ../reftest_img.html?src=color_quads/720p.png +skip-if(Android) fuzzy-if(OSX,0-12,0-274122) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.webm ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm +skip-if(Android) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm +#[2] skip-if(Android) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.h264.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm +skip-if(Android) fuzzy-if(OSX,0-12,0-274122) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.vp9.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.yuv420p10.av1.webm + +# Android is really broken in a variety of ways for p10. +#[2]: yuv420p10 broken in h264.mp4: https://bugzilla.mozilla.org/show_bug.cgi?id=1711812 + + +# - +# gbrp +# Note: tv-gbrp doesn't really make sense, and we should consider dropping it. +# Specifically, we should probably do (gbrp, ...(tv,pc)x(yuv,yuv10)) instead of (tv,pc)x(gbrp,yuv,yuv10) +# That said, we should probably test a couple combos, at least. (But then again, why not all!) + +skip-if(winWidget&&swgl) fuzzy(0-1,0-3600) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.av1.webm ../reftest_img.html?src=color_quads/720p.png +skip-if(winWidget&&swgl) fuzzy(0-1,0-7200) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.gbrp.av1.webm ../reftest_img.html?src=color_quads/720p.png + +== ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.av1.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.av1.webm +== ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.gbrp.av1.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.gbrp.av1.webm + +# Our h264.mp4 doesn't handle gbrp, but *also* doesn't error properly. +== ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.h264.mp4 ../reftest_video.html?src=timeout +== ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.gbrp.h264.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.h264.mp4 + +fuzzy(0-1,0-3600) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.webm ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm +== ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm +fuzzy(0-1,0-3600) == ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.pc.gbrp.vp9.mp4 ../reftest_video.html?src=color_quads/720p.png.bt709.bt709.tv.gbrp.vp9.webm diff --git a/dom/media/test/reftest/frame_order.mp4 b/dom/media/test/reftest/frame_order.mp4 new file mode 100644 index 0000000000..87b65f4386 Binary files /dev/null and b/dom/media/test/reftest/frame_order.mp4 differ diff --git a/dom/media/test/reftest/frame_order_mp4-ref.html b/dom/media/test/reftest/frame_order_mp4-ref.html new file mode 100644 index 0000000000..0c59debcfa --- /dev/null +++ b/dom/media/test/reftest/frame_order_mp4-ref.html @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/frame_order_mp4.html b/dom/media/test/reftest/frame_order_mp4.html new file mode 100644 index 0000000000..e77cf05e9e --- /dev/null +++ b/dom/media/test/reftest/frame_order_mp4.html @@ -0,0 +1,37 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/gen_combos.py b/dom/media/test/reftest/gen_combos.py new file mode 100644 index 0000000000..f7e7d50fe1 --- /dev/null +++ b/dom/media/test/reftest/gen_combos.py @@ -0,0 +1,257 @@ +#!/usr/bin/env python3 + +# E.g. `./gen_combos.py [--write] color_quads/720p.png` + +import concurrent.futures +import pathlib +import subprocess +import sys + +ARGS = sys.argv +SRC_PATH = pathlib.Path(ARGS.pop()) +assert SRC_PATH.exists(), "gen_combos.py [--flags] " +DIR = SRC_PATH.parent + + +# crossCombine([{a:false},{a:5}], [{},{b:5}]) +# [{a:false}, {a:true}, {a:false,b:5}, {a:true,b:5}] +def cross_combine(*args): + args = list(args) + + def cross_combine2(listA, listB): + listC = [] + for a in listA: + for b in listB: + c = dict() + c.update(a) + c.update(b) + listC.append(c) + return listC + + res = [dict()] + while True: + try: + next = args.pop(0) + except IndexError: + break + res = cross_combine2(res, next) + return res + + +def keyed_combiner(key, vals): + res = [] + for v in vals: + d = dict() + d[key] = v + res.append(d) + return res + + +# - + + +def eprint(*args, **kwargs): + print(*args, file=sys.stderr, **kwargs) + + +# - + +OGG = [] +WEBM_CODECS = ["av1", "vp9"] + +if "--all" in ARGS: + OGG = cross_combine( + [{"ext": "ogg"}], keyed_combiner("vcodec", ["theora", "vp8", "vp9"]) + ) + WEBM_CODECS += ["vp8"] + +MP4 = cross_combine([{"ext": "mp4"}], keyed_combiner("vcodec", ["av1", "h264", "vp9"])) + +WEBM = cross_combine([{"ext": "webm"}], keyed_combiner("vcodec", WEBM_CODECS)) + +# - + +FORMAT_LIST = set( + [ + "yuv420p", + "yuv420p10", + # 'yuv420p12', + # 'yuv420p16be', + # 'yuv420p16le', + "gbrp", + ] +) + +if "--all" in ARGS: + FORMAT_LIST |= set( + [ + "yuv420p", + "yuv420p10", + "yuv420p12", + "yuv420p16be", + "yuv420p16le", + "yuv422p", + "yuv422p10", + "yuv422p12", + "yuv422p16be", + "yuv422p16le", + "yuv444p", + "yuv444p10", + "yuv444p12", + "yuv444p16be", + "yuv444p16le", + "yuv411p", + "yuv410p", + "yuyv422", + "uyvy422", + "rgb24", + "bgr24", + "rgb8", + "bgr8", + "rgb444be", + "rgb444le", + "bgr444be", + "bgr444le", + # 'nv12', # Encoding not different than yuv420p? + # 'nv21', # Encoding not different than yuv420p? + "gbrp", + "gbrp9be", + "gbrp9le", + "gbrp10be", + "gbrp10le", + "gbrp12be", + "gbrp12le", + "gbrp14be", + "gbrp14le", + "gbrp16be", + "gbrp16le", + ] + ) + +FORMATS = keyed_combiner("format", list(FORMAT_LIST)) + +RANGE = keyed_combiner("range", ["tv", "pc"]) + +CSPACE_LIST = set( + [ + "bt709", + # 'bt2020', + ] +) + +if "--all" in ARGS: + CSPACE_LIST |= set( + [ + "bt709", + "bt2020", + "bt601-6-525", # aka smpte170m NTSC + "bt601-6-625", # aka bt470bg PAL + ] + ) +CSPACE_LIST = list(CSPACE_LIST) + +# - + +COMBOS = cross_combine( + WEBM + MP4 + OGG, + FORMATS, + RANGE, + keyed_combiner("src_cspace", CSPACE_LIST), + keyed_combiner("dst_cspace", CSPACE_LIST), +) + +# - + +print(f"{len(COMBOS)} combinations...") + +todo = [] +for c in COMBOS: + dst_name = ".".join( + [ + SRC_PATH.name, + c["src_cspace"], + c["dst_cspace"], + c["range"], + c["format"], + c["vcodec"], + c["ext"], + ] + ) + + src_cspace = c["src_cspace"] + + vf = f"scale=out_range={c['range']}" + vf += f",colorspace=all={c['dst_cspace']}" + vf += f":iall={src_cspace}" + args = [ + "ffmpeg", + "-y", + # For input: + "-color_primaries", + src_cspace, + "-color_trc", + src_cspace, + "-colorspace", + src_cspace, + "-i", + SRC_PATH.as_posix(), + # For output: + "-bitexact", # E.g. don't use true random uuids + "-vf", + vf, + "-pix_fmt", + c["format"], + "-vcodec", + c["vcodec"], + "-crf", + "1", # Not-quite-lossless + (DIR / dst_name).as_posix(), + ] + if "-v" in ARGS or "-vv" in ARGS: + print("$ " + " ".join(args)) + else: + print(" " + args[-1]) + + todo.append(args) + +# - + +with open(DIR / "reftest.list", "r") as f: + reftest_list_text = f.read() + +for args in todo: + vid_name = pathlib.Path(args[-1]).name + if vid_name not in reftest_list_text: + print(f"WARNING: Not in reftest.list: {vid_name}") + +# - + +if "--write" not in ARGS: + print("Use --write to write. Exiting...") + exit(0) + +# - + + +def run_cmd(args): + dest = None + if "-vv" not in ARGS: + dest = subprocess.DEVNULL + try: + subprocess.run(args, stderr=dest) + except FileNotFoundError: + print("FileNotFoundError, is ffmpeg not in your PATH?") + raise + + +with concurrent.futures.ThreadPoolExecutor() as pool: + fs = [] + for cur_args in todo: + f = pool.submit(run_cmd, cur_args) + fs.append(f) + + done = 0 + for f in concurrent.futures.as_completed(fs): + f.result() # Raise if it raised + done += 1 + sys.stdout.write(f"\rEncoded {done}/{len(todo)}") diff --git a/dom/media/test/reftest/generateREF.html b/dom/media/test/reftest/generateREF.html new file mode 100644 index 0000000000..4e26066973 --- /dev/null +++ b/dom/media/test/reftest/generateREF.html @@ -0,0 +1,104 @@ + + + + + + +

+ + + + + diff --git a/dom/media/test/reftest/gizmo.mp4.55thframe-ref.html b/dom/media/test/reftest/gizmo.mp4.55thframe-ref.html new file mode 100644 index 0000000000..28a93cc268 --- /dev/null +++ b/dom/media/test/reftest/gizmo.mp4.55thframe-ref.html @@ -0,0 +1,7 @@ + + diff --git a/dom/media/test/reftest/gizmo.mp4.seek.html b/dom/media/test/reftest/gizmo.mp4.seek.html new file mode 100644 index 0000000000..e4c1fe9515 --- /dev/null +++ b/dom/media/test/reftest/gizmo.mp4.seek.html @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/dom/media/test/reftest/image-10bits-rendering-720-90-ref.html b/dom/media/test/reftest/image-10bits-rendering-720-90-ref.html new file mode 100644 index 0000000000..5e9a8e9b4c --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-720-90-ref.html @@ -0,0 +1,4 @@ + + diff --git a/dom/media/test/reftest/image-10bits-rendering-720-90-video.html b/dom/media/test/reftest/image-10bits-rendering-720-90-video.html new file mode 100644 index 0000000000..a9ba8a9f2e --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-720-90-video.html @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/image-10bits-rendering-720-ref.html b/dom/media/test/reftest/image-10bits-rendering-720-ref.html new file mode 100644 index 0000000000..1ae393031a --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-720-ref.html @@ -0,0 +1,4 @@ + + diff --git a/dom/media/test/reftest/image-10bits-rendering-720-video.html b/dom/media/test/reftest/image-10bits-rendering-720-video.html new file mode 100644 index 0000000000..93d2651ffc --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-720-video.html @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/image-10bits-rendering-720.video.html b/dom/media/test/reftest/image-10bits-rendering-720.video.html new file mode 100644 index 0000000000..93d2651ffc --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-720.video.html @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/image-10bits-rendering-90-ref.html b/dom/media/test/reftest/image-10bits-rendering-90-ref.html new file mode 100644 index 0000000000..38f032f0fd --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-90-ref.html @@ -0,0 +1,4 @@ + + diff --git a/dom/media/test/reftest/image-10bits-rendering-90-video.html b/dom/media/test/reftest/image-10bits-rendering-90-video.html new file mode 100644 index 0000000000..94edcaefd8 --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-90-video.html @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/image-10bits-rendering-ref.html b/dom/media/test/reftest/image-10bits-rendering-ref.html new file mode 100644 index 0000000000..de7fbbfc95 --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-ref.html @@ -0,0 +1,4 @@ + + diff --git a/dom/media/test/reftest/image-10bits-rendering-video.html b/dom/media/test/reftest/image-10bits-rendering-video.html new file mode 100644 index 0000000000..faaf9c29ef --- /dev/null +++ b/dom/media/test/reftest/image-10bits-rendering-video.html @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/incorrect_display_in_bytestream_vp8-ref.html b/dom/media/test/reftest/incorrect_display_in_bytestream_vp8-ref.html new file mode 100644 index 0000000000..b08a8d365b --- /dev/null +++ b/dom/media/test/reftest/incorrect_display_in_bytestream_vp8-ref.html @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/incorrect_display_in_bytestream_vp8.html b/dom/media/test/reftest/incorrect_display_in_bytestream_vp8.html new file mode 100644 index 0000000000..271343cfe2 --- /dev/null +++ b/dom/media/test/reftest/incorrect_display_in_bytestream_vp8.html @@ -0,0 +1,33 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/incorrect_display_in_bytestream_vp8.webm b/dom/media/test/reftest/incorrect_display_in_bytestream_vp8.webm new file mode 100644 index 0000000000..e4143b7f38 Binary files /dev/null and b/dom/media/test/reftest/incorrect_display_in_bytestream_vp8.webm differ diff --git a/dom/media/test/reftest/incorrect_display_in_bytestream_vp9-ref.html b/dom/media/test/reftest/incorrect_display_in_bytestream_vp9-ref.html new file mode 100644 index 0000000000..6517c77f63 --- /dev/null +++ b/dom/media/test/reftest/incorrect_display_in_bytestream_vp9-ref.html @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/incorrect_display_in_bytestream_vp9.html b/dom/media/test/reftest/incorrect_display_in_bytestream_vp9.html new file mode 100644 index 0000000000..7d0e9404d5 --- /dev/null +++ b/dom/media/test/reftest/incorrect_display_in_bytestream_vp9.html @@ -0,0 +1,33 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/incorrect_display_in_bytestream_vp9.webm b/dom/media/test/reftest/incorrect_display_in_bytestream_vp9.webm new file mode 100644 index 0000000000..499e3acd94 Binary files /dev/null and b/dom/media/test/reftest/incorrect_display_in_bytestream_vp9.webm differ diff --git a/dom/media/test/reftest/reftest.list b/dom/media/test/reftest/reftest.list new file mode 100644 index 0000000000..2a2f89742c --- /dev/null +++ b/dom/media/test/reftest/reftest.list @@ -0,0 +1,15 @@ +skip-if(Android) fuzzy-if(OSX,0-80,0-76800) fuzzy-if(appleSilicon,0-80,0-76800) fuzzy-if(winWidget,0-62,0-76799) fuzzy-if(swgl&&winWidget,0-63,0-1969) fuzzy-if(gtkWidget&&layersGPUAccelerated,0-70,0-2032) HTTP(..) == short.mp4.firstframe.html short.mp4.firstframe-ref.html +skip-if(Android) fuzzy-if(OSX,0-87,0-76797) fuzzy-if(appleSilicon,0-87,0-76797) fuzzy-if(winWidget,0-60,0-76797) fuzzy-if(gtkWidget&&layersGPUAccelerated,0-60,0-6070) HTTP(..) == short.mp4.lastframe.html short.mp4.lastframe-ref.html +skip-if(Android) skip-if(cocoaWidget) skip-if(winWidget) fuzzy-if(gtkWidget&&layersGPUAccelerated,0-57,0-4282) fuzzy-if(OSX,55-80,4173-4417) HTTP(..) == bipbop_300_215kbps.mp4.lastframe.html bipbop_300_215kbps.mp4.lastframe-ref.html +skip-if(Android) fuzzy-if(OSX,0-25,0-175921) fuzzy-if(appleSilicon,34-34,40100-40100) fuzzy-if(winWidget,0-71,0-179198) fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)&&/^aarch64-msvc/.test(xulRuntime.XPCOMABI),0-255,0-179500) HTTP(..) == gizmo.mp4.seek.html gizmo.mp4.55thframe-ref.html +# Bug 1758718 +skip-if(Android) skip-if(MinGW) skip-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)&&/^aarch64-msvc/.test(xulRuntime.XPCOMABI)) skip-if(OSX) fuzzy(0-10,0-778236) == image-10bits-rendering-video.html image-10bits-rendering-ref.html +skip-if(Android) skip-if(MinGW) skip-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)&&/^aarch64-msvc/.test(xulRuntime.XPCOMABI)) fuzzy(0-10,0-778536) fuzzy-if(appleSilicon,0-37,0-699614) == image-10bits-rendering-90-video.html image-10bits-rendering-90-ref.html +# Bug 1758718 +skip-if(Android) fuzzy(0-27,0-573106) skip-if(OSX) == image-10bits-rendering-720-video.html image-10bits-rendering-720-ref.html +skip-if(Android) fuzzy(0-31,0-573249) fuzzy-if(appleSilicon,0-37,0-543189) == image-10bits-rendering-720-90-video.html image-10bits-rendering-720-90-ref.html +skip-if(Android) fuzzy(0-84,0-771156) fails-if(useDrawSnapshot) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == uneven_frame_duration_video.html uneven_frame_duration_video-ref.html # Skip on Windows 7 as the resolution of the video is too high for test machines and will fail in the decoder. +# Set media.dormant-on-pause-timeout-ms to avoid decoders becoming dormant and busting test, skip on android as test is too noisy and unstable +skip-if(Android) pref(media.dormant-on-pause-timeout-ms,-1) fuzzy(0-20,0-500) == frame_order_mp4.html frame_order_mp4-ref.html +skip-if(Android) fuzzy(0-30,0-270000) == incorrect_display_in_bytestream_vp8.html incorrect_display_in_bytestream_vp8-ref.html +skip-if(Android) fuzzy(0-22,0-377335) == incorrect_display_in_bytestream_vp9.html incorrect_display_in_bytestream_vp9-ref.html diff --git a/dom/media/test/reftest/reftest_img.html b/dom/media/test/reftest/reftest_img.html new file mode 100644 index 0000000000..3e55c264ec --- /dev/null +++ b/dom/media/test/reftest/reftest_img.html @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/dom/media/test/reftest/reftest_video.html b/dom/media/test/reftest/reftest_video.html new file mode 100644 index 0000000000..cf9223e7ae --- /dev/null +++ b/dom/media/test/reftest/reftest_video.html @@ -0,0 +1,64 @@ + + + + + + + + + diff --git a/dom/media/test/reftest/uneven_frame_durations.mp4 b/dom/media/test/reftest/uneven_frame_durations.mp4 new file mode 100644 index 0000000000..a5a0c16a0f Binary files /dev/null and b/dom/media/test/reftest/uneven_frame_durations.mp4 differ diff --git a/dom/media/test/reftest/uneven_frame_durations_3.8s_frame.png b/dom/media/test/reftest/uneven_frame_durations_3.8s_frame.png new file mode 100644 index 0000000000..889174e115 Binary files /dev/null and b/dom/media/test/reftest/uneven_frame_durations_3.8s_frame.png differ diff --git a/dom/media/test/reftest/vp9hdr2020.png b/dom/media/test/reftest/vp9hdr2020.png new file mode 100644 index 0000000000..afb68d9e0a Binary files /dev/null and b/dom/media/test/reftest/vp9hdr2020.png differ diff --git a/dom/media/test/reftest/vp9hdr2020.webm b/dom/media/test/reftest/vp9hdr2020.webm new file mode 100644 index 0000000000..516f62093a Binary files /dev/null and b/dom/media/test/reftest/vp9hdr2020.webm differ -- cgit v1.2.3