@@ -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-}
@@ -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)
new file mode 100644
@@ -0,0 +1,2 @@
+0beb3b5b071cfa4f7417e0086fa39a12 *tests/data/pixfmt/gbrp10be.yuv
+15206400 tests/data/pixfmt/gbrp10be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+0beb3b5b071cfa4f7417e0086fa39a12 *tests/data/pixfmt/gbrp10le.yuv
+15206400 tests/data/pixfmt/gbrp10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ae532c3bfcf82bebc9586f4210b06a86 *tests/data/pixfmt/gbrp12be.yuv
+15206400 tests/data/pixfmt/gbrp12be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ae532c3bfcf82bebc9586f4210b06a86 *tests/data/pixfmt/gbrp12le.yuv
+15206400 tests/data/pixfmt/gbrp12le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+320789f3b09d448bd0dedee906f1ea81 *tests/data/pixfmt/gray10be.yuv
+15206400 tests/data/pixfmt/gray10be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+320789f3b09d448bd0dedee906f1ea81 *tests/data/pixfmt/gray10le.yuv
+15206400 tests/data/pixfmt/gray10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+dae64e3c2c883913e127097d20c89e26 *tests/data/pixfmt/gray12be.yuv
+15206400 tests/data/pixfmt/gray12be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+dae64e3c2c883913e127097d20c89e26 *tests/data/pixfmt/gray12le.yuv
+15206400 tests/data/pixfmt/gray12le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p010be.yuv
+15206400 tests/data/pixfmt/p010be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p010le.yuv
+15206400 tests/data/pixfmt/p010le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p012be.yuv
+15206400 tests/data/pixfmt/p012be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p012le.yuv
+15206400 tests/data/pixfmt/p012le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/p210be.yuv
+15206400 tests/data/pixfmt/p210be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/p210le.yuv
+15206400 tests/data/pixfmt/p210le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/p212be.yuv
+15206400 tests/data/pixfmt/p212be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/p212le.yuv
+15206400 tests/data/pixfmt/p212le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p410be.yuv
+15206400 tests/data/pixfmt/p410be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/p410le.yuv
+15206400 tests/data/pixfmt/p410le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p412be.yuv
+15206400 tests/data/pixfmt/p412be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/p412le.yuv
+15206400 tests/data/pixfmt/p412le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/v30xle.yuv
+15206400 tests/data/pixfmt/v30xle.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+2a97d61992ee5e56c365371f8bcdb782 *tests/data/pixfmt/x2bgr10le.yuv
+15206400 tests/data/pixfmt/x2bgr10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+2a97d61992ee5e56c365371f8bcdb782 *tests/data/pixfmt/x2rgb10le.yuv
+15206400 tests/data/pixfmt/x2rgb10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/xv30le.yuv
+15206400 tests/data/pixfmt/xv30le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/xv36be.yuv
+15206400 tests/data/pixfmt/xv36be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/xv36le.yuv
+15206400 tests/data/pixfmt/xv36le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/y210le.yuv
+15206400 tests/data/pixfmt/y210le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/y212le.yuv
+15206400 tests/data/pixfmt/y212le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv420p10be.yuv
+15206400 tests/data/pixfmt/yuv420p10be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv420p10le.yuv
+15206400 tests/data/pixfmt/yuv420p10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv420p12be.yuv
+15206400 tests/data/pixfmt/yuv420p12be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv420p12le.yuv
+15206400 tests/data/pixfmt/yuv420p12le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/yuv422p10be.yuv
+15206400 tests/data/pixfmt/yuv422p10be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+8cb69d608aa013c69474c82c22ab75ba *tests/data/pixfmt/yuv422p10le.yuv
+15206400 tests/data/pixfmt/yuv422p10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/yuv422p12be.yuv
+15206400 tests/data/pixfmt/yuv422p12be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+b32caebb91857ffbe80d792b915f60a3 *tests/data/pixfmt/yuv422p12le.yuv
+15206400 tests/data/pixfmt/yuv422p12le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+544307da6ebb25fb962266dc8d9cdbb3 *tests/data/pixfmt/yuv440p10be.yuv
+15206400 tests/data/pixfmt/yuv440p10be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+544307da6ebb25fb962266dc8d9cdbb3 *tests/data/pixfmt/yuv440p10le.yuv
+15206400 tests/data/pixfmt/yuv440p10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+5aea7ee1b39ed0057a66d418787c4910 *tests/data/pixfmt/yuv440p12be.yuv
+15206400 tests/data/pixfmt/yuv440p12be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+5aea7ee1b39ed0057a66d418787c4910 *tests/data/pixfmt/yuv440p12le.yuv
+15206400 tests/data/pixfmt/yuv440p12le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv444p10be.yuv
+15206400 tests/data/pixfmt/yuv444p10be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+ff12a757f0b154ef6780f09be846dcb9 *tests/data/pixfmt/yuv444p10le.yuv
+15206400 tests/data/pixfmt/yuv444p10le.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv444p12be.yuv
+15206400 tests/data/pixfmt/yuv444p12be.yuv
new file mode 100644
@@ -0,0 +1,2 @@
+94912e57d5954003b02c626e33bdeecd *tests/data/pixfmt/yuv444p12le.yuv
+15206400 tests/data/pixfmt/yuv444p12le.yuv
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