diff mbox series

[FFmpeg-devel,22/23] tests/fate/hevc: add a test for switching between single and multi-view

Message ID 20240914111036.17164-23-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
---
 tests/fate/hevc.mak           |  10 ++
 tests/ref/fate/hevc-mv-switch | 172 ++++++++++++++++++++++++++++++++++
 2 files changed, 182 insertions(+)
 create mode 100644 tests/ref/fate/hevc-mv-switch
diff mbox series

Patch

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index df827d821f..2511730edf 100644
--- a/tests/fate/hevc.mak
+++ b/tests/fate/hevc.mak
@@ -276,6 +276,16 @@  FATE_HEVC-$(call FRAMECRC, HEVC, HEVC) += fate-hevc-pir
 fate-hevc-mv-nuh-layer-id: CMD = framecrc -i $(TARGET_SAMPLES)/hevc/mv_nuh_layer_id.bit -map 0:view:all
 FATE_HEVC-$(call FRAMECRC, HEVC, HEVC) += fate-hevc-mv-nuh-layer-id
 
+# NB: $\ at the end of line joins lines without adding whitespace;
+# this trick is recommended by GNU make manual
+fate-hevc-mv-switch: INPUT = \
+$(TARGET_SAMPLES)/hevc-conformance/LS_A_Orange_2.bit|$\
+$(TARGET_SAMPLES)/hevc/mv_nuh_layer_id.bit|$\
+$(TARGET_SAMPLES)/hevc-conformance/NoOutPrior_B_Qualcomm_1.bit|$\
+$(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
+
 FATE_SAMPLES_AVCONV += $(FATE_HEVC-yes)
 FATE_SAMPLES_FFPROBE += $(FATE_HEVC_FFPROBE-yes)
 
diff --git a/tests/ref/fate/hevc-mv-switch b/tests/ref/fate/hevc-mv-switch
new file mode 100644
index 0000000000..0fc3630637
--- /dev/null
+++ b/tests/ref/fate/hevc-mv-switch
@@ -0,0 +1,172 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 416x240
+#sar 0: 0/1
+#tb 1: 1/25
+#media_type 1: video
+#codec_id 1: rawvideo
+#dimensions 1: 128x128
+#sar 1: 0/1
+0,          0,          0,        1,   149760, 0x94a51701
+0,          1,          1,        1,   149760, 0x67c71885
+0,          2,          2,        1,   149760, 0x218f1751
+0,          3,          3,        1,   149760, 0x56951bef
+0,          4,          4,        1,   149760, 0x76aec81e
+0,          5,          5,        1,   149760, 0x20df61ac
+0,          6,          6,        1,   149760, 0x2eacf616
+0,          7,          7,        1,   149760, 0x06322ce2
+0,          8,          8,        1,   149760, 0xf14aa104
+0,          9,          9,        1,   149760, 0xc948dcba
+1,         10,         10,        1,    24576, 0xf8f638da
+0,         11,         11,        1,   149760, 0x674e34b1
+1,         12,         12,        1,    24576, 0xd22675a4
+0,         13,         13,        1,   149760, 0x41d3acd6
+1,         14,         14,        1,    24576, 0x60da42e6
+0,         15,         15,        1,   149760, 0x55a5b835
+1,         16,         16,        1,    24576, 0xe0577f6e
+0,         17,         17,        1,   149760, 0xc6958049
+1,         18,         18,        1,    24576, 0x8d9944bd
+0,         19,         19,        1,   149760, 0x94b37050
+0,         20,         20,        1,   149760, 0xed72a560
+0,         21,         21,        1,   149760, 0xd0ccac61
+0,         22,         22,        1,   149760, 0x6cc2d7fa
+0,         23,         23,        1,   149760, 0x3a02b5ba
+0,         24,         24,        1,   149760, 0xce7ef09c
+0,         25,         25,        1,   149760, 0xa518fc05
+0,         26,         26,        1,   149760, 0x01d238fe
+0,         27,         27,        1,   149760, 0x5f5012fa
+0,         28,         28,        1,   149760, 0x5b8e7405
+0,         29,         29,        1,   149760, 0xcc2e5b33
+0,         30,         30,        1,   149760, 0x590a6890
+0,         31,         31,        1,   149760, 0x9c7b189f
+0,         32,         32,        1,   149760, 0xd0752ef4
+0,         33,         33,        1,   149760, 0x367513ce
+0,         34,         34,        1,   149760, 0xb64c209d
+0,         35,         35,        1,   149760, 0x6e50994c
+0,         36,         36,        1,   149760, 0x8276cce4
+0,         37,         37,        1,   149760, 0xb292ac8f
+0,         38,         38,        1,   149760, 0x57de9d2c
+0,         39,         39,        1,   149760, 0xe8533f38
+0,         40,         40,        1,   149760, 0xde9b536d
+0,         41,         41,        1,   149760, 0x83173b1d
+0,         42,         42,        1,   149760, 0x853a83a4
+0,         43,         43,        1,   149760, 0x481af1bf
+0,         44,         44,        1,   149760, 0x27221abb
+0,         45,         45,        1,   149760, 0x094eac00
+0,         46,         46,        1,   149760, 0x3f3a27c8
+0,         47,         47,        1,   149760, 0x8f19b2af
+0,         48,         48,        1,   149760, 0x93e7e591
+0,         49,         49,        1,   149760, 0x0c531ab8
+0,         50,         50,        1,   149760, 0x3456ef8a
+0,         51,         51,        1,   149760, 0xfee2ec1e
+0,         52,         52,        1,   149760, 0x76b4b750
+0,         53,         53,        1,   149760, 0xa48bb670
+0,         54,         54,        1,   149760, 0x3dee7cac
+0,         55,         55,        1,   149760, 0x2b20561d
+0,         56,         56,        1,   149760, 0xd3c5bf9f
+0,         57,         57,        1,   149760, 0x2e87d747
+0,         58,         58,        1,   149760, 0x9952760b
+0,         59,         59,        1,   149760, 0xa3f5cbda
+0,         60,         60,        1,   149760, 0x56e3f94d
+0,         61,         61,        1,   149760, 0x902f743f
+0,         62,         62,        1,   149760, 0xeffcfd85
+0,         63,         63,        1,   149760, 0xe7fc31b2
+0,         64,         64,        1,   149760, 0x2e876286
+0,         65,         65,        1,   149760, 0x6358b0b2
+0,         66,         66,        1,   149760, 0x3e569a4d
+1,         67,         67,        1,    24576, 0xa18c481f
+0,         68,         68,        1,   149760, 0x641cbce0
+1,         69,         69,        1,    24576, 0x9ee94df2
+0,         70,         70,        1,   149760, 0x0357d35c
+1,         71,         71,        1,    24576, 0x60c55365
+0,         72,         72,        1,   149760, 0xe9b5b077
+1,         73,         73,        1,    24576, 0x8951536a
+0,         74,         74,        1,   149760, 0x3b9c605f
+1,         75,         75,        1,    24576, 0xfea04ba5
+0,         76,         76,        1,   149760, 0x16d7028b
+1,         77,         77,        1,    24576, 0x78094226
+0,         78,         78,        1,   149760, 0xf4896eff
+1,         79,         79,        1,    24576, 0xacf9314e
+0,         80,         80,        1,   149760, 0xc90de4b9
+1,         81,         81,        1,    24576, 0x6a6b1c87
+0,         82,         82,        1,   149760, 0x2ec258ad
+1,         83,         83,        1,    24576, 0x9f360661
+0,         84,         84,        1,   149760, 0x3bf720ef
+1,         85,         85,        1,    24576, 0x52e80514
+0,         86,         86,        1,   149760, 0x67eab73f
+1,         87,         87,        1,    24576, 0xe10df48c
+0,         88,         88,        1,   149760, 0x020e17ce
+1,         89,         89,        1,    24576, 0x71fbdd03
+0,         90,         90,        1,   149760, 0xcd677640
+1,         91,         91,        1,    24576, 0x1d08c3f6
+0,         92,         92,        1,   149760, 0x194cfbc1
+1,         93,         93,        1,    24576, 0x4b93b6ca
+0,         94,         94,        1,   149760, 0x740f6261
+1,         95,         95,        1,    24576, 0x0dea9c12
+0,         96,         96,        1,   149760, 0x104b3175
+1,         97,         97,        1,    24576, 0x195a92da
+0,         98,         98,        1,   149760, 0xc8fd17d1
+1,         99,         99,        1,    24576, 0x55dd870b
+0,        100,        100,        1,   149760, 0x6f4e7787
+1,        101,        101,        1,    24576, 0x7e6b905b
+0,        102,        102,        1,   149760, 0xe853418e
+1,        103,        103,        1,    24576, 0x0f3fad1d
+0,        104,        104,        1,   149760, 0x3dba3e4e
+1,        105,        105,        1,    24576, 0xe724d536
+0,        106,        106,        1,   149760, 0xba0b4c38
+1,        107,        107,        1,    24576, 0xb212fed4
+0,        108,        108,        1,   149760, 0x28f8ef1d
+1,        109,        109,        1,    24576, 0x3bb423ce
+0,        110,        110,        1,   149760, 0xb5d92e4e
+1,        111,        111,        1,    24576, 0x20f432db
+0,        112,        112,        1,   149760, 0xbaa0d0a2
+1,        113,        113,        1,    24576, 0x27412981
+0,        114,        114,        1,   149760, 0x0acde200
+1,        115,        115,        1,    24576, 0xb7f70143
+0,        116,        116,        1,   149760, 0x7388aad3
+1,        117,        117,        1,    24576, 0xf31acffb
+0,        118,        118,        1,   149760, 0xbac95723
+1,        119,        119,        1,    24576, 0x283d8c2c
+0,        120,        120,        1,   149760, 0x7633d4af
+1,        121,        121,        1,    24576, 0x9fb08184
+0,        122,        122,        1,   149760, 0x836e54fc
+1,        123,        123,        1,    24576, 0x09696ad1
+0,        124,        124,        1,   149760, 0x49096e63
+1,        125,        125,        1,    24576, 0x034e69c2
+0,        126,        126,        1,   149760, 0x98e14158
+1,        127,        127,        1,    24576, 0x1ce4882c
+0,        128,        128,        1,   149760, 0x955a43e4
+1,        129,        129,        1,    24576, 0x490fda13
+0,        130,        130,        1,   149760, 0x3a76c087
+1,        131,        131,        1,    24576, 0x4c2e1c09
+0,        132,        132,        1,   149760, 0xa221e763
+1,        133,        133,        1,    24576, 0x82dd5f8b
+0,        134,        134,        1,   149760, 0x1eb33f17
+1,        135,        135,        1,    24576, 0xcfb07d6b
+0,        136,        136,        1,   149760, 0x13ef3914
+1,        137,        137,        1,    24576, 0xef468129
+0,        138,        138,        1,   149760, 0x2521b880
+1,        139,        139,        1,    24576, 0x24c970fa
+0,        140,        140,        1,   149760, 0x78a4faf0
+1,        141,        141,        1,    24576, 0x6df14e99
+0,        142,        142,        1,   149760, 0xc5f71d65
+1,        143,        143,        1,    24576, 0x78f44854
+0,        144,        144,        1,   149760, 0x5dbc0a9f
+1,        145,        145,        1,    24576, 0x5a7269fd
+0,        146,        146,        1,   149760, 0x8ebfd7c3
+1,        147,        147,        1,    24576, 0xb1fd8924
+0,        148,        148,        1,   149760, 0xb45f0581
+1,        149,        149,        1,    24576, 0xa165b829
+0,        150,        150,        1,   149760, 0x3b84540b
+1,        151,        151,        1,    24576, 0x694cf0e5
+0,        152,        152,        1,   149760, 0xec921f35
+1,        153,        153,        1,    24576, 0x2fef157b
+0,        154,        154,        1,   149760, 0x7b23826a
+1,        155,        155,        1,    24576, 0x62ea25dd
+0,        156,        156,        1,   149760, 0x518d1f11
+1,        157,        157,        1,    24576, 0xfc02365e
+0,        158,        158,        1,   149760, 0xc5e694a4
+1,        159,        159,        1,    24576, 0x073b3ebd
+0,        160,        160,        1,   149760, 0xeb79c961
+1,        161,        161,        1,    24576, 0x5ee13be2