cfhd: Add FATE tests
authorDiego Biurrun <diego@biurrun.de>
Mon, 29 Feb 2016 14:39:27 +0000 (15:39 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 9 Mar 2017 17:37:29 +0000 (18:37 +0100)
tests/fate/video.mak
tests/ref/fate/cfhd-1 [new file with mode: 0644]
tests/ref/fate/cfhd-2 [new file with mode: 0644]
tests/ref/fate/cfhd-3 [new file with mode: 0644]

index 01108f8..379eb2b 100644 (file)
@@ -61,6 +61,18 @@ fate-cavs: CMD = framecrc -i $(TARGET_SAMPLES)/cavs/cavs.mpg -an
 FATE_SAMPLES_AVCONV-$(call DEMDEC, CDG, CDGRAPHICS) += fate-cdgraphics
 fate-cdgraphics: CMD = framecrc -i $(TARGET_SAMPLES)/cdgraphics/BrotherJohn.cdg -pix_fmt rgb24 -t 1
 
+FATE_CFHD-$(CONFIG_AVI_DEMUXER) += fate-cfhd-1
+fate-cfhd-1: CMD = framecrc -i $(TARGET_SAMPLES)/cfhd/cfhd_422.avi -pix_fmt yuv422p10le
+
+FATE_CFHD-$(CONFIG_AVI_DEMUXER) += fate-cfhd-2
+fate-cfhd-2: CMD = framecrc -i $(TARGET_SAMPLES)/cfhd/cfhd_444.avi -pix_fmt yuv422p10le
+
+FATE_CFHD-$(CONFIG_MOV_DEMUXER) += fate-cfhd-3
+fate-cfhd-3: CMD = framecrc -i $(TARGET_SAMPLES)/cfhd/cfhd_odd.mov -pix_fmt yuv422p10le
+
+FATE_SAMPLES_AVCONV-$(CONFIG_CFHD_DECODER) += $(FATE_CFHD-yes)
+fate-cfhd: $(FATE_CFHD-yes)
+
 FATE_SAMPLES_AVCONV-$(call DEMDEC, AVI, CLJR) += fate-cljr
 fate-cljr: CMD = framecrc -i $(TARGET_SAMPLES)/cljr/testcljr-partial.avi
 
diff --git a/tests/ref/fate/cfhd-1 b/tests/ref/fate/cfhd-1
new file mode 100644 (file)
index 0000000..cccfc8b
--- /dev/null
@@ -0,0 +1,11 @@
+#tb 0: 1001/30000
+0,          0,          0,        1,  1382400, 0xa3e49817
+0,          1,          1,        1,  1382400, 0x544fdfac
+0,          2,          2,        1,  1382400, 0x84964e11
+0,          3,          3,        1,  1382400, 0xc608c8d1
+0,          4,          4,        1,  1382400, 0xf2f1404f
+0,          5,          5,        1,  1382400, 0x5a3100ba
+0,          6,          6,        1,  1382400, 0x3727baa9
+0,          7,          7,        1,  1382400, 0x894f07db
+0,          8,          8,        1,  1382400, 0x3ef27d46
+0,          9,          9,        1,  1382400, 0x1f90880d
diff --git a/tests/ref/fate/cfhd-2 b/tests/ref/fate/cfhd-2
new file mode 100644 (file)
index 0000000..1af92d0
--- /dev/null
@@ -0,0 +1,11 @@
+#tb 0: 1001/30000
+0,          0,          0,        1,  1382400, 0xe1c2201d
+0,          1,          1,        1,  1382400, 0x13e5bc81
+0,          2,          2,        1,  1382400, 0x3062ca82
+0,          3,          3,        1,  1382400, 0x1c71624f
+0,          4,          4,        1,  1382400, 0xf286c080
+0,          5,          5,        1,  1382400, 0xd517d824
+0,          6,          6,        1,  1382400, 0xe571ffd5
+0,          7,          7,        1,  1382400, 0x94a523ff
+0,          8,          8,        1,  1382400, 0x85c58fca
+0,          9,          9,        1,  1382400, 0x6b3278b0
diff --git a/tests/ref/fate/cfhd-3 b/tests/ref/fate/cfhd-3
new file mode 100644 (file)
index 0000000..6169848
--- /dev/null
@@ -0,0 +1,11 @@
+#tb 0: 1/14587
+0,          0,          0,        0,   478144, 0x6ed01dcd
+0,       1000,       1000,        0,   478144, 0x6ed01dcd
+0,       2000,       2000,        0,   478144, 0x6ed01dcd
+0,       3000,       3000,        0,   478144, 0xb1b4a74b
+0,       4000,       4000,        0,   478144, 0x94c345c3
+0,       5000,       5000,        0,   478144, 0x05e0388d
+0,       6000,       6000,        0,   478144, 0xe747476a
+0,       7000,       7000,        0,   478144, 0x8c1561f1
+0,       8000,       8000,        0,   478144, 0x8c1561f1
+0,       9000,       9000,        0,   478144, 0x8c1561f1