diff mbox series

[FFmpeg-devel,1/2] fate/pixfmts: test conversion of high bitdepth formats

Message ID 20241021132604.5213-1-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] fate/pixfmts: test conversion of high bitdepth formats | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

James Almer Oct. 21, 2024, 1:26 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 tests/fate-run.sh                 | 13 +++++++
 tests/fate/pixfmt.mak             | 60 +++++++++++++++++++++++++++++--
 tests/ref/fate/pixfmt-gbrp10be    |  2 ++
 tests/ref/fate/pixfmt-gbrp10le    |  2 ++
 tests/ref/fate/pixfmt-gbrp12be    |  2 ++
 tests/ref/fate/pixfmt-gbrp12le    |  2 ++
 tests/ref/fate/pixfmt-gray10be    |  2 ++
 tests/ref/fate/pixfmt-gray10le    |  2 ++
 tests/ref/fate/pixfmt-gray12be    |  2 ++
 tests/ref/fate/pixfmt-gray12le    |  2 ++
 tests/ref/fate/pixfmt-p010be      |  2 ++
 tests/ref/fate/pixfmt-p010le      |  2 ++
 tests/ref/fate/pixfmt-p012be      |  2 ++
 tests/ref/fate/pixfmt-p012le      |  2 ++
 tests/ref/fate/pixfmt-p210be      |  2 ++
 tests/ref/fate/pixfmt-p210le      |  2 ++
 tests/ref/fate/pixfmt-p212be      |  2 ++
 tests/ref/fate/pixfmt-p212le      |  2 ++
 tests/ref/fate/pixfmt-p410be      |  2 ++
 tests/ref/fate/pixfmt-p410le      |  2 ++
 tests/ref/fate/pixfmt-p412be      |  2 ++
 tests/ref/fate/pixfmt-p412le      |  2 ++
 tests/ref/fate/pixfmt-v30xle      |  2 ++
 tests/ref/fate/pixfmt-x2bgr10le   |  2 ++
 tests/ref/fate/pixfmt-x2rgb10le   |  2 ++
 tests/ref/fate/pixfmt-xv30le      |  2 ++
 tests/ref/fate/pixfmt-xv36be      |  2 ++
 tests/ref/fate/pixfmt-xv36le      |  2 ++
 tests/ref/fate/pixfmt-y210le      |  2 ++
 tests/ref/fate/pixfmt-y212le      |  2 ++
 tests/ref/fate/pixfmt-yuv420p10be |  2 ++
 tests/ref/fate/pixfmt-yuv420p10le |  2 ++
 tests/ref/fate/pixfmt-yuv420p12be |  2 ++
 tests/ref/fate/pixfmt-yuv420p12le |  2 ++
 tests/ref/fate/pixfmt-yuv422p10be |  2 ++
 tests/ref/fate/pixfmt-yuv422p10le |  2 ++
 tests/ref/fate/pixfmt-yuv422p12be |  2 ++
 tests/ref/fate/pixfmt-yuv422p12le |  2 ++
 tests/ref/fate/pixfmt-yuv440p10be |  2 ++
 tests/ref/fate/pixfmt-yuv440p10le |  2 ++
 tests/ref/fate/pixfmt-yuv440p12be |  2 ++
 tests/ref/fate/pixfmt-yuv440p12le |  2 ++
 tests/ref/fate/pixfmt-yuv444p10be |  2 ++
 tests/ref/fate/pixfmt-yuv444p10le |  2 ++
 tests/ref/fate/pixfmt-yuv444p12be |  2 ++
 tests/ref/fate/pixfmt-yuv444p12le |  2 ++
 46 files changed, 159 insertions(+), 2 deletions(-)
 create mode 100644 tests/ref/fate/pixfmt-gbrp10be
 create mode 100644 tests/ref/fate/pixfmt-gbrp10le
 create mode 100644 tests/ref/fate/pixfmt-gbrp12be
 create mode 100644 tests/ref/fate/pixfmt-gbrp12le
 create mode 100644 tests/ref/fate/pixfmt-gray10be
 create mode 100644 tests/ref/fate/pixfmt-gray10le
 create mode 100644 tests/ref/fate/pixfmt-gray12be
 create mode 100644 tests/ref/fate/pixfmt-gray12le
 create mode 100644 tests/ref/fate/pixfmt-p010be
 create mode 100644 tests/ref/fate/pixfmt-p010le
 create mode 100644 tests/ref/fate/pixfmt-p012be
 create mode 100644 tests/ref/fate/pixfmt-p012le
 create mode 100644 tests/ref/fate/pixfmt-p210be
 create mode 100644 tests/ref/fate/pixfmt-p210le
 create mode 100644 tests/ref/fate/pixfmt-p212be
 create mode 100644 tests/ref/fate/pixfmt-p212le
 create mode 100644 tests/ref/fate/pixfmt-p410be
 create mode 100644 tests/ref/fate/pixfmt-p410le
 create mode 100644 tests/ref/fate/pixfmt-p412be
 create mode 100644 tests/ref/fate/pixfmt-p412le
 create mode 100644 tests/ref/fate/pixfmt-v30xle
 create mode 100644 tests/ref/fate/pixfmt-x2bgr10le
 create mode 100644 tests/ref/fate/pixfmt-x2rgb10le
 create mode 100644 tests/ref/fate/pixfmt-xv30le
 create mode 100644 tests/ref/fate/pixfmt-xv36be
 create mode 100644 tests/ref/fate/pixfmt-xv36le
 create mode 100644 tests/ref/fate/pixfmt-y210le
 create mode 100644 tests/ref/fate/pixfmt-y212le
 create mode 100644 tests/ref/fate/pixfmt-yuv420p10be
 create mode 100644 tests/ref/fate/pixfmt-yuv420p10le
 create mode 100644 tests/ref/fate/pixfmt-yuv420p12be
 create mode 100644 tests/ref/fate/pixfmt-yuv420p12le
 create mode 100644 tests/ref/fate/pixfmt-yuv422p10be
 create mode 100644 tests/ref/fate/pixfmt-yuv422p10le
 create mode 100644 tests/ref/fate/pixfmt-yuv422p12be
 create mode 100644 tests/ref/fate/pixfmt-yuv422p12le
 create mode 100644 tests/ref/fate/pixfmt-yuv440p10be
 create mode 100644 tests/ref/fate/pixfmt-yuv440p10le
 create mode 100644 tests/ref/fate/pixfmt-yuv440p12be
 create mode 100644 tests/ref/fate/pixfmt-yuv440p12le
 create mode 100644 tests/ref/fate/pixfmt-yuv444p10be
 create mode 100644 tests/ref/fate/pixfmt-yuv444p10le
 create mode 100644 tests/ref/fate/pixfmt-yuv444p12be
 create mode 100644 tests/ref/fate/pixfmt-yuv444p12le
diff mbox series

Patch

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index f8d67de25a..551e126271 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -503,6 +503,19 @@  pixfmt_conversion(){
               $ENC_OPTS -f rawvideo -s 352x288 -pix_fmt yuv444p -color_range mpeg
 }
 
+pixfmt_conversion_hbd(){
+    depth=$1
+    conversion="${test#pixfmt-}"
+    outdir="tests/data/pixfmt"
+    raw_dst="$outdir/$conversion.out.yuv"
+    file=${outdir}/${conversion}.yuv
+    cleanfiles="$cleanfiles $raw_dst $file"
+    run_avconv $DEC_OPTS -auto_conversion_filters -lavfi yuvtestsrc=s=352x288,format=yuv420p$depth \
+               $ENC_OPTS -f rawvideo -t 1 -s 352x288 -pix_fmt $conversion $target_path/$raw_dst || return
+    do_avconv $file $DEC_OPTS -f rawvideo -s 352x288 -pix_fmt $conversion -i $target_path/$raw_dst \
+              $ENC_OPTS -f rawvideo -s 352x288 -pix_fmt yuv444p${depth}le -color_range mpeg
+}
+
 pixdesc(){
     pix_fmt=${test#filter-pixdesc-}
     label=${test#filter-}
diff --git a/tests/fate/pixfmt.mak b/tests/fate/pixfmt.mak
index 715a4763d4..0c70b9a9bd 100644
--- a/tests/fate/pixfmt.mak
+++ b/tests/fate/pixfmt.mak
@@ -25,5 +25,61 @@  $(FATE_PIXFMT): CMD = pixfmt_conversion
 $(FATE_PIXFMT): REF = $(SRC_PATH)/tests/ref/pixfmt/$(@:fate-pixfmt-%=%)
 $(FATE_PIXFMT): $(VREF)
 
-FATE_AVCONV += $(FATE_PIXFMT)
-fate-pixfmt:   $(FATE_PIXFMT)
+FATE_PIXFMT_10-$(call ALLYES, SCALE_FILTER YUVTESTSRC_FILTER LAVFI_INDEV) = \
+                        gray10le        \
+                        gray10be        \
+                        yuv420p10le     \
+                        yuv420p10be     \
+                        yuv422p10le     \
+                        yuv422p10be     \
+                        yuv440p10le     \
+                        yuv440p10be     \
+                        yuv444p10le     \
+                        yuv444p10be     \
+                        y210le          \
+                        p010le          \
+                        p010be          \
+                        p210le          \
+                        p210be          \
+                        p410le          \
+                        p410be          \
+                        v30xle          \
+                        xv30le          \
+                        x2rgb10le       \
+                        x2bgr10le       \
+                        gbrp10le        \
+                        gbrp10be        \
+
+FATE_PIXFMT_10 := $(FATE_PIXFMT_10-yes:%=fate-pixfmt-%)
+
+$(FATE_PIXFMT_10): CMD = pixfmt_conversion_hbd "10"
+
+FATE_PIXFMT_12-$(call ALLYES, SCALE_FILTER YUVTESTSRC_FILTER LAVFI_INDEV) = \
+                        gray12le        \
+                        gray12be        \
+                        yuv420p12le     \
+                        yuv420p12be     \
+                        yuv422p12le     \
+                        yuv422p12be     \
+                        yuv440p12le     \
+                        yuv440p12be     \
+                        yuv444p12le     \
+                        yuv444p12be     \
+                        y212le          \
+                        p012le          \
+                        p012be          \
+                        p212le          \
+                        p212be          \
+                        p412le          \
+                        p412be          \
+                        xv36le          \
+                        xv36be          \
+                        gbrp12le        \
+                        gbrp12be        \
+
+FATE_PIXFMT_12 := $(FATE_PIXFMT_12-yes:%=fate-pixfmt-%)
+
+$(FATE_PIXFMT_12): CMD = pixfmt_conversion_hbd "12"
+
+FATE_AVCONV += $(FATE_PIXFMT) $(FATE_PIXFMT_10) $(FATE_PIXFMT_12)
+fate-pixfmt:   $(FATE_PIXFMT) $(FATE_PIXFMT_10) $(FATE_PIXFMT_12)
diff --git a/tests/ref/fate/pixfmt-gbrp10be b/tests/ref/fate/pixfmt-gbrp10be
new file mode 100644
index 0000000000..ea417c01c5
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gbrp10be
@@ -0,0 +1,2 @@ 
+0beb3b5b071cfa4f7417e0086fa39a12 *tests/data/pixfmt/gbrp10be.yuv
+15206400 tests/data/pixfmt/gbrp10be.yuv
diff --git a/tests/ref/fate/pixfmt-gbrp10le b/tests/ref/fate/pixfmt-gbrp10le
new file mode 100644
index 0000000000..cc2bfd2590
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gbrp10le
@@ -0,0 +1,2 @@ 
+0beb3b5b071cfa4f7417e0086fa39a12 *tests/data/pixfmt/gbrp10le.yuv
+15206400 tests/data/pixfmt/gbrp10le.yuv
diff --git a/tests/ref/fate/pixfmt-gbrp12be b/tests/ref/fate/pixfmt-gbrp12be
new file mode 100644
index 0000000000..ecefb31282
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gbrp12be
@@ -0,0 +1,2 @@ 
+ae532c3bfcf82bebc9586f4210b06a86 *tests/data/pixfmt/gbrp12be.yuv
+15206400 tests/data/pixfmt/gbrp12be.yuv
diff --git a/tests/ref/fate/pixfmt-gbrp12le b/tests/ref/fate/pixfmt-gbrp12le
new file mode 100644
index 0000000000..0d04769004
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gbrp12le
@@ -0,0 +1,2 @@ 
+ae532c3bfcf82bebc9586f4210b06a86 *tests/data/pixfmt/gbrp12le.yuv
+15206400 tests/data/pixfmt/gbrp12le.yuv
diff --git a/tests/ref/fate/pixfmt-gray10be b/tests/ref/fate/pixfmt-gray10be
new file mode 100644
index 0000000000..6253ddc102
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gray10be
@@ -0,0 +1,2 @@ 
+320789f3b09d448bd0dedee906f1ea81 *tests/data/pixfmt/gray10be.yuv
+15206400 tests/data/pixfmt/gray10be.yuv
diff --git a/tests/ref/fate/pixfmt-gray10le b/tests/ref/fate/pixfmt-gray10le
new file mode 100644
index 0000000000..325ceb9547
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gray10le
@@ -0,0 +1,2 @@ 
+320789f3b09d448bd0dedee906f1ea81 *tests/data/pixfmt/gray10le.yuv
+15206400 tests/data/pixfmt/gray10le.yuv
diff --git a/tests/ref/fate/pixfmt-gray12be b/tests/ref/fate/pixfmt-gray12be
new file mode 100644
index 0000000000..81f2869fbf
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gray12be
@@ -0,0 +1,2 @@ 
+dae64e3c2c883913e127097d20c89e26 *tests/data/pixfmt/gray12be.yuv
+15206400 tests/data/pixfmt/gray12be.yuv
diff --git a/tests/ref/fate/pixfmt-gray12le b/tests/ref/fate/pixfmt-gray12le
new file mode 100644
index 0000000000..915e00f4e2
--- /dev/null
+++ b/tests/ref/fate/pixfmt-gray12le
@@ -0,0 +1,2 @@ 
+dae64e3c2c883913e127097d20c89e26 *tests/data/pixfmt/gray12le.yuv
+15206400 tests/data/pixfmt/gray12le.yuv
diff --git a/tests/ref/fate/pixfmt-p010be b/tests/ref/fate/pixfmt-p010be
new file mode 100644
index 0000000000..8c807a7377
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p010be
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p010be.yuv
+15206400 tests/data/pixfmt/p010be.yuv
diff --git a/tests/ref/fate/pixfmt-p010le b/tests/ref/fate/pixfmt-p010le
new file mode 100644
index 0000000000..ac93197463
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p010le
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p010le.yuv
+15206400 tests/data/pixfmt/p010le.yuv
diff --git a/tests/ref/fate/pixfmt-p012be b/tests/ref/fate/pixfmt-p012be
new file mode 100644
index 0000000000..4a63d6ffed
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p012be
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p012be.yuv
+15206400 tests/data/pixfmt/p012be.yuv
diff --git a/tests/ref/fate/pixfmt-p012le b/tests/ref/fate/pixfmt-p012le
new file mode 100644
index 0000000000..104b1eb360
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p012le
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p012le.yuv
+15206400 tests/data/pixfmt/p012le.yuv
diff --git a/tests/ref/fate/pixfmt-p210be b/tests/ref/fate/pixfmt-p210be
new file mode 100644
index 0000000000..3d0a044732
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p210be
@@ -0,0 +1,2 @@ 
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/p210be.yuv
+15206400 tests/data/pixfmt/p210be.yuv
diff --git a/tests/ref/fate/pixfmt-p210le b/tests/ref/fate/pixfmt-p210le
new file mode 100644
index 0000000000..5997dc9d6e
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p210le
@@ -0,0 +1,2 @@ 
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/p210le.yuv
+15206400 tests/data/pixfmt/p210le.yuv
diff --git a/tests/ref/fate/pixfmt-p212be b/tests/ref/fate/pixfmt-p212be
new file mode 100644
index 0000000000..a21f74147d
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p212be
@@ -0,0 +1,2 @@ 
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/p212be.yuv
+15206400 tests/data/pixfmt/p212be.yuv
diff --git a/tests/ref/fate/pixfmt-p212le b/tests/ref/fate/pixfmt-p212le
new file mode 100644
index 0000000000..f1fb342ac6
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p212le
@@ -0,0 +1,2 @@ 
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/p212le.yuv
+15206400 tests/data/pixfmt/p212le.yuv
diff --git a/tests/ref/fate/pixfmt-p410be b/tests/ref/fate/pixfmt-p410be
new file mode 100644
index 0000000000..45844943bc
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p410be
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p410be.yuv
+15206400 tests/data/pixfmt/p410be.yuv
diff --git a/tests/ref/fate/pixfmt-p410le b/tests/ref/fate/pixfmt-p410le
new file mode 100644
index 0000000000..2fe6e873ca
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p410le
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p410le.yuv
+15206400 tests/data/pixfmt/p410le.yuv
diff --git a/tests/ref/fate/pixfmt-p412be b/tests/ref/fate/pixfmt-p412be
new file mode 100644
index 0000000000..c309a89010
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p412be
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p412be.yuv
+15206400 tests/data/pixfmt/p412be.yuv
diff --git a/tests/ref/fate/pixfmt-p412le b/tests/ref/fate/pixfmt-p412le
new file mode 100644
index 0000000000..c127b28bd3
--- /dev/null
+++ b/tests/ref/fate/pixfmt-p412le
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p412le.yuv
+15206400 tests/data/pixfmt/p412le.yuv
diff --git a/tests/ref/fate/pixfmt-v30xle b/tests/ref/fate/pixfmt-v30xle
new file mode 100644
index 0000000000..b79f3b4524
--- /dev/null
+++ b/tests/ref/fate/pixfmt-v30xle
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/v30xle.yuv
+15206400 tests/data/pixfmt/v30xle.yuv
diff --git a/tests/ref/fate/pixfmt-x2bgr10le b/tests/ref/fate/pixfmt-x2bgr10le
new file mode 100644
index 0000000000..d72148c5d3
--- /dev/null
+++ b/tests/ref/fate/pixfmt-x2bgr10le
@@ -0,0 +1,2 @@ 
+2a97d61992ee5e56c365371f8bcdb782 *tests/data/pixfmt/x2bgr10le.yuv
+15206400 tests/data/pixfmt/x2bgr10le.yuv
diff --git a/tests/ref/fate/pixfmt-x2rgb10le b/tests/ref/fate/pixfmt-x2rgb10le
new file mode 100644
index 0000000000..76cc669c30
--- /dev/null
+++ b/tests/ref/fate/pixfmt-x2rgb10le
@@ -0,0 +1,2 @@ 
+2a97d61992ee5e56c365371f8bcdb782 *tests/data/pixfmt/x2rgb10le.yuv
+15206400 tests/data/pixfmt/x2rgb10le.yuv
diff --git a/tests/ref/fate/pixfmt-xv30le b/tests/ref/fate/pixfmt-xv30le
new file mode 100644
index 0000000000..3a3748ff3a
--- /dev/null
+++ b/tests/ref/fate/pixfmt-xv30le
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/xv30le.yuv
+15206400 tests/data/pixfmt/xv30le.yuv
diff --git a/tests/ref/fate/pixfmt-xv36be b/tests/ref/fate/pixfmt-xv36be
new file mode 100644
index 0000000000..71b84994cf
--- /dev/null
+++ b/tests/ref/fate/pixfmt-xv36be
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/xv36be.yuv
+15206400 tests/data/pixfmt/xv36be.yuv
diff --git a/tests/ref/fate/pixfmt-xv36le b/tests/ref/fate/pixfmt-xv36le
new file mode 100644
index 0000000000..e4d8785d1d
--- /dev/null
+++ b/tests/ref/fate/pixfmt-xv36le
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/xv36le.yuv
+15206400 tests/data/pixfmt/xv36le.yuv
diff --git a/tests/ref/fate/pixfmt-y210le b/tests/ref/fate/pixfmt-y210le
new file mode 100644
index 0000000000..357dfc6970
--- /dev/null
+++ b/tests/ref/fate/pixfmt-y210le
@@ -0,0 +1,2 @@ 
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/y210le.yuv
+15206400 tests/data/pixfmt/y210le.yuv
diff --git a/tests/ref/fate/pixfmt-y212le b/tests/ref/fate/pixfmt-y212le
new file mode 100644
index 0000000000..bf4dc0fe14
--- /dev/null
+++ b/tests/ref/fate/pixfmt-y212le
@@ -0,0 +1,2 @@ 
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/y212le.yuv
+15206400 tests/data/pixfmt/y212le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv420p10be b/tests/ref/fate/pixfmt-yuv420p10be
new file mode 100644
index 0000000000..bc3d425826
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv420p10be
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv420p10be.yuv
+15206400 tests/data/pixfmt/yuv420p10be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv420p10le b/tests/ref/fate/pixfmt-yuv420p10le
new file mode 100644
index 0000000000..81331e9671
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv420p10le
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv420p10le.yuv
+15206400 tests/data/pixfmt/yuv420p10le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv420p12be b/tests/ref/fate/pixfmt-yuv420p12be
new file mode 100644
index 0000000000..f436512fe9
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv420p12be
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv420p12be.yuv
+15206400 tests/data/pixfmt/yuv420p12be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv420p12le b/tests/ref/fate/pixfmt-yuv420p12le
new file mode 100644
index 0000000000..c1d4779153
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv420p12le
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv420p12le.yuv
+15206400 tests/data/pixfmt/yuv420p12le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv422p10be b/tests/ref/fate/pixfmt-yuv422p10be
new file mode 100644
index 0000000000..97c65f4b42
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv422p10be
@@ -0,0 +1,2 @@ 
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/yuv422p10be.yuv
+15206400 tests/data/pixfmt/yuv422p10be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv422p10le b/tests/ref/fate/pixfmt-yuv422p10le
new file mode 100644
index 0000000000..e212aacf4f
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv422p10le
@@ -0,0 +1,2 @@ 
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/yuv422p10le.yuv
+15206400 tests/data/pixfmt/yuv422p10le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv422p12be b/tests/ref/fate/pixfmt-yuv422p12be
new file mode 100644
index 0000000000..e7feb2c76e
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv422p12be
@@ -0,0 +1,2 @@ 
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/yuv422p12be.yuv
+15206400 tests/data/pixfmt/yuv422p12be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv422p12le b/tests/ref/fate/pixfmt-yuv422p12le
new file mode 100644
index 0000000000..1ec2bd20a6
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv422p12le
@@ -0,0 +1,2 @@ 
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/yuv422p12le.yuv
+15206400 tests/data/pixfmt/yuv422p12le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv440p10be b/tests/ref/fate/pixfmt-yuv440p10be
new file mode 100644
index 0000000000..7dfd9a5e73
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv440p10be
@@ -0,0 +1,2 @@ 
+544307da6ebb25fb962266dc8d9cdbb3 *tests/data/pixfmt/yuv440p10be.yuv
+15206400 tests/data/pixfmt/yuv440p10be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv440p10le b/tests/ref/fate/pixfmt-yuv440p10le
new file mode 100644
index 0000000000..d114c0b04a
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv440p10le
@@ -0,0 +1,2 @@ 
+544307da6ebb25fb962266dc8d9cdbb3 *tests/data/pixfmt/yuv440p10le.yuv
+15206400 tests/data/pixfmt/yuv440p10le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv440p12be b/tests/ref/fate/pixfmt-yuv440p12be
new file mode 100644
index 0000000000..6ce1a16ee4
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv440p12be
@@ -0,0 +1,2 @@ 
+5aea7ee1b39ed0057a66d418787c4910 *tests/data/pixfmt/yuv440p12be.yuv
+15206400 tests/data/pixfmt/yuv440p12be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv440p12le b/tests/ref/fate/pixfmt-yuv440p12le
new file mode 100644
index 0000000000..d4be252b90
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv440p12le
@@ -0,0 +1,2 @@ 
+5aea7ee1b39ed0057a66d418787c4910 *tests/data/pixfmt/yuv440p12le.yuv
+15206400 tests/data/pixfmt/yuv440p12le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv444p10be b/tests/ref/fate/pixfmt-yuv444p10be
new file mode 100644
index 0000000000..a93d2231ff
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv444p10be
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv444p10be.yuv
+15206400 tests/data/pixfmt/yuv444p10be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv444p10le b/tests/ref/fate/pixfmt-yuv444p10le
new file mode 100644
index 0000000000..89ad47bc91
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv444p10le
@@ -0,0 +1,2 @@ 
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv444p10le.yuv
+15206400 tests/data/pixfmt/yuv444p10le.yuv
diff --git a/tests/ref/fate/pixfmt-yuv444p12be b/tests/ref/fate/pixfmt-yuv444p12be
new file mode 100644
index 0000000000..2cd3af814d
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv444p12be
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv444p12be.yuv
+15206400 tests/data/pixfmt/yuv444p12be.yuv
diff --git a/tests/ref/fate/pixfmt-yuv444p12le b/tests/ref/fate/pixfmt-yuv444p12le
new file mode 100644
index 0000000000..9775a71e92
--- /dev/null
+++ b/tests/ref/fate/pixfmt-yuv444p12le
@@ -0,0 +1,2 @@ 
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv444p12le.yuv
+15206400 tests/data/pixfmt/yuv444p12le.yuv