This lets us test features that were broken earlier, as well as
test the hardware decoder by using the HWACCEL=vulkan option.
---
 tests/Makefile                    |  1 +
 tests/fate/ffv1.mak               | 46 +++++++++++++++++++++++++++++++
 tests/ref/fate/ffv1-s1024-bgra    |  4 +++
 tests/ref/fate/ffv1-s1024-bgra-r  |  4 +++
 tests/ref/fate/ffv1-s1024-gbrp16  |  4 +++
 tests/ref/fate/ffv1-s1024-gray8   |  4 +++
 tests/ref/fate/ffv1-s1024-gray8-r |  4 +++
 tests/ref/fate/ffv1-s1024-yuv444p |  4 +++
 8 files changed, 71 insertions(+)
 create mode 100644 tests/fate/ffv1.mak
 create mode 100644 tests/ref/fate/ffv1-s1024-bgra
 create mode 100644 tests/ref/fate/ffv1-s1024-bgra-r
 create mode 100644 tests/ref/fate/ffv1-s1024-gbrp16
 create mode 100644 tests/ref/fate/ffv1-s1024-gray8
 create mode 100644 tests/ref/fate/ffv1-s1024-gray8-r
 create mode 100644 tests/ref/fate/ffv1-s1024-yuv444p

diff --git a/tests/Makefile b/tests/Makefile
index f9f5fc07f3..b2386febd7 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -180,6 +180,7 @@ include $(SRC_PATH)/tests/fate/enc_external.mak
 # Must be included after lavf-video.mak
 include $(SRC_PATH)/tests/fate/ffmpeg.mak
 include $(SRC_PATH)/tests/fate/ffprobe.mak
+include $(SRC_PATH)/tests/fate/ffv1.mak
 include $(SRC_PATH)/tests/fate/fifo-muxer.mak
 include $(SRC_PATH)/tests/fate/filter-audio.mak
 # Must be included after vcodec.mak
diff --git a/tests/fate/ffv1.mak b/tests/fate/ffv1.mak
new file mode 100644
index 0000000000..8e1f121e86
--- /dev/null
+++ b/tests/fate/ffv1.mak
@@ -0,0 +1,46 @@
+FATE_FFV1 += fate-ffv1-s1024-gray8
+fate-ffv1-s1024-gray8: tests/data/vsynth1.yuv
+fate-ffv1-s1024-gray8: CMD = enc_dec \
+  "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth1.yuv \
+  nut "-pix_fmt gray8 -c ffv1 -g 1 -slices 1024 -coder ac" \
+  framecrc "" ""
+
+FATE_FFV1 += fate-ffv1-s1024-gray8-r
+fate-ffv1-s1024-gray8-r: tests/data/vsynth1.yuv
+fate-ffv1-s1024-gray8-r: CMD = enc_dec \
+  "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth1.yuv \
+  nut "-pix_fmt gray8 -c ffv1 -g 1 -slices 1024 -coder rice" \
+  framecrc "" ""
+
+FATE_FFV1 += fate-ffv1-s1024-yuv444p
+fate-ffv1-s1024-yuv444p: tests/data/vsynth1.yuv
+fate-ffv1-s1024-yuv444p: CMD = enc_dec \
+  "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth1.yuv \
+  nut "-pix_fmt yuv444p -c ffv1 -g 1 -slices 1024 -coder ac" \
+  framecrc "" ""
+
+FATE_FFV1 += fate-ffv1-s1024-bgra
+fate-ffv1-s1024-bgra: tests/data/vsynth1.yuv
+fate-ffv1-s1024-bgra: CMD = enc_dec \
+  "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth1.yuv \
+  nut "-pix_fmt bgra -c ffv1 -g 1 -slices 1024 -coder ac" \
+  framecrc "" ""
+
+FATE_FFV1 += fate-ffv1-s1024-bgra-r
+fate-ffv1-s1024-bgra-r: tests/data/vsynth1.yuv
+fate-ffv1-s1024-bgra-r: CMD = enc_dec \
+  "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth1.yuv \
+  nut "-pix_fmt bgra -c ffv1 -g 1 -slices 1024 -coder rice" \
+  framecrc "" ""
+
+FATE_FFV1 += fate-ffv1-s1024-gbrp16
+fate-ffv1-s1024-gbrp16: tests/data/vsynth1.yuv
+fate-ffv1-s1024-gbrp16: CMD = enc_dec \
+  "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth1.yuv \
+  nut "-pix_fmt gbrp16 -c ffv1 -g 1 -slices 1024 -coder ac" \
+  framecrc "" ""
+
+FATE_FFV1-$(call FRAMECRC, NUT, FFV1) += $(FATE_FFV1)
+FATE_FFV1_ALL = $(FATE_FFV1-yes)
+FATE_SAMPLES_FFMPEG += $(FATE_FFV1_ALL)
+fate-ffv1: $(FATE_FFV1_ALL)
diff --git a/tests/ref/fate/ffv1-s1024-bgra b/tests/ref/fate/ffv1-s1024-bgra
new file mode 100644
index 0000000000..9d1450c532
--- /dev/null
+++ b/tests/ref/fate/ffv1-s1024-bgra
@@ -0,0 +1,4 @@
+56a17848398c66ccc7da748b49bc15c6 *tests/data/fate/ffv1-s1024-bgra.nut
+10607302 tests/data/fate/ffv1-s1024-bgra.nut
+a0ead8e9e709b6e93dca3e972a00c3d3 *tests/data/fate/ffv1-s1024-bgra.out.framecrc
+stddev:28285.12 PSNR:  7.30 MAXDIFF:60652 bytes:  7603200/     2990
diff --git a/tests/ref/fate/ffv1-s1024-bgra-r b/tests/ref/fate/ffv1-s1024-bgra-r
new file mode 100644
index 0000000000..883dc72823
--- /dev/null
+++ b/tests/ref/fate/ffv1-s1024-bgra-r
@@ -0,0 +1,4 @@
+7040fa7315a9af61b194c140baceb37f *tests/data/fate/ffv1-s1024-bgra-r.nut
+11716414 tests/data/fate/ffv1-s1024-bgra-r.nut
+a0ead8e9e709b6e93dca3e972a00c3d3 
*tests/data/fate/ffv1-s1024-bgra-r.out.framecrc
+stddev:28285.12 PSNR:  7.30 MAXDIFF:60652 bytes:  7603200/     2990
diff --git a/tests/ref/fate/ffv1-s1024-gbrp16 b/tests/ref/fate/ffv1-s1024-gbrp16
new file mode 100644
index 0000000000..8ec9994a49
--- /dev/null
+++ b/tests/ref/fate/ffv1-s1024-gbrp16
@@ -0,0 +1,4 @@
+351624f7daa16043baef669fa16222df *tests/data/fate/ffv1-s1024-gbrp16.nut
+40836749 tests/data/fate/ffv1-s1024-gbrp16.nut
+c191aec6b3d999278963ebdd6a326ec3 
*tests/data/fate/ffv1-s1024-gbrp16.out.framecrc
+stddev:28358.70 PSNR:  7.28 MAXDIFF:60652 bytes:  7603200/     2990
diff --git a/tests/ref/fate/ffv1-s1024-gray8 b/tests/ref/fate/ffv1-s1024-gray8
new file mode 100644
index 0000000000..0f83c2dcac
--- /dev/null
+++ b/tests/ref/fate/ffv1-s1024-gray8
@@ -0,0 +1,4 @@
+7422502f8d79c69a1081dc4772a2d600 *tests/data/fate/ffv1-s1024-gray8.nut
+3427001 tests/data/fate/ffv1-s1024-gray8.nut
+681290b60345e39afbc8e4f0167d5cd5 *tests/data/fate/ffv1-s1024-gray8.out.framecrc
+stddev:28384.20 PSNR:  7.27 MAXDIFF:60652 bytes:  7603200/     2990
diff --git a/tests/ref/fate/ffv1-s1024-gray8-r 
b/tests/ref/fate/ffv1-s1024-gray8-r
new file mode 100644
index 0000000000..7ffe4bd726
--- /dev/null
+++ b/tests/ref/fate/ffv1-s1024-gray8-r
@@ -0,0 +1,4 @@
+14ddddbc0929304e8f35ebe42840c5b1 *tests/data/fate/ffv1-s1024-gray8-r.nut
+3919793 tests/data/fate/ffv1-s1024-gray8-r.nut
+681290b60345e39afbc8e4f0167d5cd5 
*tests/data/fate/ffv1-s1024-gray8-r.out.framecrc
+stddev:28384.20 PSNR:  7.27 MAXDIFF:60652 bytes:  7603200/     2990
diff --git a/tests/ref/fate/ffv1-s1024-yuv444p 
b/tests/ref/fate/ffv1-s1024-yuv444p
new file mode 100644
index 0000000000..11c929f66e
--- /dev/null
+++ b/tests/ref/fate/ffv1-s1024-yuv444p
@@ -0,0 +1,4 @@
+efe971e765cdf288db22084836830dd6 *tests/data/fate/ffv1-s1024-yuv444p.nut
+8523718 tests/data/fate/ffv1-s1024-yuv444p.nut
+6db55cc37543429fcef3da9c8385170c 
*tests/data/fate/ffv1-s1024-yuv444p.out.framecrc
+stddev:28443.19 PSNR:  7.25 MAXDIFF:60652 bytes:  7603200/     2990
-- 
2.49.0.395.g12beb8f557c
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to