diff mbox series

[FFmpeg-devel,23/23] tests/fate/hevc: add a test for selecting view by position

Message ID 20240914111036.17164-24-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/23] compat: drop gcc, suncc, and pthreads stdatomic emulation | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

Anton Khirnov Sept. 14, 2024, 10:45 a.m. UTC
Using a real-world iPhone-recorded file.
---
 tests/fate/hevc.mak             |  5 +++++
 tests/ref/fate/hevc-mv-position | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 tests/ref/fate/hevc-mv-position
diff mbox series

Patch

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index 2511730edf..6d8865ea66 100644
--- a/tests/fate/hevc.mak
+++ b/tests/fate/hevc.mak
@@ -286,6 +286,11 @@  $(TARGET_SAMPLES)/hevc-conformance/MVHEVCS_A.bit
 fate-hevc-mv-switch: CMD = framecrc -i "concat:$(INPUT)" -fps_mode passthrough -map 0:vidx:0 -map 0:vidx:1
 FATE_HEVC-$(call FRAMECRC, HEVC, HEVC, CONCAT_PROTOCOL) += fate-hevc-mv-switch
 
+# multiview stream, select view by position
+# (depends on Three Dimensional Reference Displays Information SEI)
+fate-hevc-mv-position: CMD = framecrc -i $(TARGET_SAMPLES)/hevc/multiview.mov -map 0:v:vpos:left -map 0:v:vpos:right
+FATE_HEVC-$(call FRAMECRC, MOV, HEVC) += fate-hevc-mv-position
+
 FATE_SAMPLES_AVCONV += $(FATE_HEVC-yes)
 FATE_SAMPLES_FFPROBE += $(FATE_HEVC_FFPROBE-yes)
 
diff --git a/tests/ref/fate/hevc-mv-position b/tests/ref/fate/hevc-mv-position
new file mode 100644
index 0000000000..660789557c
--- /dev/null
+++ b/tests/ref/fate/hevc-mv-position
@@ -0,0 +1,32 @@ 
+#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1920x1080
+#sar 0: 0/1
+#tb 1: 1/30
+#media_type 1: video
+#codec_id 1: rawvideo
+#dimensions 1: 1920x1080
+#sar 1: 0/1
+0,          0,          0,        1,  3110400, 0xd0ce90de
+1,          0,          0,        1,  3110400, 0x1859a3ba
+0,          1,          1,        1,  3110400, 0x5ce1bc1a
+1,          1,          1,        1,  3110400, 0x43cf57e5
+0,          2,          2,        1,  3110400, 0x14cf9f7f
+1,          2,          2,        1,  3110400, 0x4ffc98ea
+0,          3,          3,        1,  3110400, 0x9a6bb93c
+1,          3,          3,        1,  3110400, 0x96a2bcfb
+0,          4,          4,        1,  3110400, 0x69e5377d
+1,          4,          4,        1,  3110400, 0xec4561f0
+0,          5,          5,        1,  3110400, 0x66b3bd5d
+1,          5,          5,        1,  3110400, 0x633f23f5
+0,          6,          6,        1,  3110400, 0x83a2ada2
+1,          6,          6,        1,  3110400, 0xe10a2fe7
+0,          7,          7,        1,  3110400, 0x503bbe42
+1,          7,          7,        1,  3110400, 0x8ecd5c39
+0,          8,          8,        1,  3110400, 0xaeb27981
+1,          8,          8,        1,  3110400, 0xe571a478
+0,          9,          9,        1,  3110400, 0xbe14bf1e
+1,          9,          9,        1,  3110400, 0x87d4dbe3
+0,         10,         10,        1,  3110400, 0xbd329d79
+1,         10,         10,        1,  3110400, 0xc78097f4