[FFmpeg-devel] [PATCH 4/4] fate/vcodec: add bitpacked tests
James Almer
jamrial at gmail.com
Sat May 6 20:37:59 EEST 2023
Signed-off-by: James Almer <jamrial at gmail.com>
---
tests/fate/vcodec.mak | 13 ++++++++++++-
tests/ref/vsynth/vsynth1-bitpacked-uyvy422 | 4 ++++
tests/ref/vsynth/vsynth1-bitpacked-yuv422p10le | 4 ++++
tests/ref/vsynth/vsynth2-bitpacked-uyvy422 | 4 ++++
tests/ref/vsynth/vsynth2-bitpacked-yuv422p10le | 4 ++++
tests/ref/vsynth/vsynth3-bitpacked-uyvy422 | 4 ++++
tests/ref/vsynth/vsynth3-bitpacked-yuv422p10le | 4 ++++
tests/ref/vsynth/vsynth_lena-bitpacked-uyvy422 | 4 ++++
tests/ref/vsynth/vsynth_lena-bitpacked-yuv422p10le | 4 ++++
9 files changed, 44 insertions(+), 1 deletion(-)
create mode 100644 tests/ref/vsynth/vsynth1-bitpacked-uyvy422
create mode 100644 tests/ref/vsynth/vsynth1-bitpacked-yuv422p10le
create mode 100644 tests/ref/vsynth/vsynth2-bitpacked-uyvy422
create mode 100644 tests/ref/vsynth/vsynth2-bitpacked-yuv422p10le
create mode 100644 tests/ref/vsynth/vsynth3-bitpacked-uyvy422
create mode 100644 tests/ref/vsynth/vsynth3-bitpacked-yuv422p10le
create mode 100644 tests/ref/vsynth/vsynth_lena-bitpacked-uyvy422
create mode 100644 tests/ref/vsynth/vsynth_lena-bitpacked-yuv422p10le
diff --git a/tests/fate/vcodec.mak b/tests/fate/vcodec.mak
index fbee264a9d..e0a5f541f6 100644
--- a/tests/fate/vcodec.mak
+++ b/tests/fate/vcodec.mak
@@ -6,7 +6,7 @@ fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
fate-vsynth%: FMT = avi
fate-vsynth%: DEFAULT_SIZE = -s 352x288
fate-vsynth3-%: DEFAULT_SIZE = -s $(FATEW)x$(FATEH)
-fate-vsynth%: CMD = enc_dec "rawvideo $(DEFAULT_SIZE) -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-pix_fmt yuv420p -vsync passthrough $(DECOPTS)" "" "" ${TWOPASS}
+fate-vsynth%: CMD = enc_dec "rawvideo $(DEFAULT_SIZE) -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-pix_fmt yuv420p -vsync passthrough $(DECOPTS)" "$(DECOPTSIN)" "" ${TWOPASS}
fate-vsynth%: CMP_UNIT = 1
fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
@@ -19,6 +19,17 @@ fate-vsynth%-asv1: ENCOPTS = -qscale 10
FATE_VCODEC-$(call ENCDEC, ASV2, AVI) += asv2
fate-vsynth%-asv2: ENCOPTS = -qscale 10
+FATE_VCODEC-$(call ENCDEC, BITPACKED, IMAGE2 BITPACKED) += bitpacked-yuv422p10le bitpacked-uyvy422
+fate-vsynth%-bitpacked-yuv422p10le: FMT = image2
+fate-vsynth%-bitpacked-yuv422p10le: ENCOPTS = -frames 1 -sws_flags neighbor+bitexact -pix_fmt yuv422p10le
+fate-vsynth%-bitpacked-yuv422p10le: DECOPTSIN = -f bitpacked $(DEFAULT_SIZE) -pix_fmt yuv422p10le
+fate-vsynth%-bitpacked-yuv422p10le: DECOPTS = -sws_flags neighbor+bitexact
+
+fate-vsynth%-bitpacked-uyvy422: FMT = image2
+fate-vsynth%-bitpacked-uyvy422: ENCOPTS = -frames 1 -sws_flags neighbor+bitexact -pix_fmt uyvy422
+fate-vsynth%-bitpacked-uyvy422: DECOPTSIN = -f bitpacked $(DEFAULT_SIZE) -pix_fmt uyvy422
+fate-vsynth%-bitpacked-uyvy422: DECOPTS = -sws_flags neighbor+bitexact
+
FATE_VCODEC_SCALE-$(call ENCDEC, CINEPAK, AVI) += cinepak
fate-vsynth%-cinepak: ENCOPTS = -s sqcif -strip_number_adaptivity 1
diff --git a/tests/ref/vsynth/vsynth1-bitpacked-uyvy422 b/tests/ref/vsynth/vsynth1-bitpacked-uyvy422
new file mode 100644
index 0000000000..af6291f205
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-bitpacked-uyvy422
@@ -0,0 +1,4 @@
+3cc44d70e515c5a767a11fe67b89bc45 *tests/data/fate/vsynth1-bitpacked-uyvy422.image2
+202752 tests/data/fate/vsynth1-bitpacked-uyvy422.image2
+32d8f3223cda1cec632c0f3ca5b2e037 *tests/data/fate/vsynth1-bitpacked-uyvy422.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 152064
diff --git a/tests/ref/vsynth/vsynth1-bitpacked-yuv422p10le b/tests/ref/vsynth/vsynth1-bitpacked-yuv422p10le
new file mode 100644
index 0000000000..ee77b98b2a
--- /dev/null
+++ b/tests/ref/vsynth/vsynth1-bitpacked-yuv422p10le
@@ -0,0 +1,4 @@
+a2c5c43e4afa7b14bae65da26b98952c *tests/data/fate/vsynth1-bitpacked-yuv422p10le.image2
+253440 tests/data/fate/vsynth1-bitpacked-yuv422p10le.image2
+32d8f3223cda1cec632c0f3ca5b2e037 *tests/data/fate/vsynth1-bitpacked-yuv422p10le.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 152064
diff --git a/tests/ref/vsynth/vsynth2-bitpacked-uyvy422 b/tests/ref/vsynth/vsynth2-bitpacked-uyvy422
new file mode 100644
index 0000000000..9abde4493e
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-bitpacked-uyvy422
@@ -0,0 +1,4 @@
+82b63ef3911ec62a5e48c3b94d061c85 *tests/data/fate/vsynth2-bitpacked-uyvy422.image2
+202752 tests/data/fate/vsynth2-bitpacked-uyvy422.image2
+38c45025d01438c3da880c520827420a *tests/data/fate/vsynth2-bitpacked-uyvy422.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 152064
diff --git a/tests/ref/vsynth/vsynth2-bitpacked-yuv422p10le b/tests/ref/vsynth/vsynth2-bitpacked-yuv422p10le
new file mode 100644
index 0000000000..647c1ed4e6
--- /dev/null
+++ b/tests/ref/vsynth/vsynth2-bitpacked-yuv422p10le
@@ -0,0 +1,4 @@
+a4202e285ad3667dddb0722b327f01cb *tests/data/fate/vsynth2-bitpacked-yuv422p10le.image2
+253440 tests/data/fate/vsynth2-bitpacked-yuv422p10le.image2
+38c45025d01438c3da880c520827420a *tests/data/fate/vsynth2-bitpacked-yuv422p10le.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 152064
diff --git a/tests/ref/vsynth/vsynth3-bitpacked-uyvy422 b/tests/ref/vsynth/vsynth3-bitpacked-uyvy422
new file mode 100644
index 0000000000..0b703370d3
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-bitpacked-uyvy422
@@ -0,0 +1,4 @@
+f687e1f38ddb711942ad70dc3bfdb11e *tests/data/fate/vsynth3-bitpacked-uyvy422.image2
+2312 tests/data/fate/vsynth3-bitpacked-uyvy422.image2
+ce92e2b6c27f51aec06bb96adbb33a42 *tests/data/fate/vsynth3-bitpacked-uyvy422.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 86700/ 1734
diff --git a/tests/ref/vsynth/vsynth3-bitpacked-yuv422p10le b/tests/ref/vsynth/vsynth3-bitpacked-yuv422p10le
new file mode 100644
index 0000000000..e7b2dc6ab4
--- /dev/null
+++ b/tests/ref/vsynth/vsynth3-bitpacked-yuv422p10le
@@ -0,0 +1,4 @@
+544274ad9b88f3055bd6bba521d12d2e *tests/data/fate/vsynth3-bitpacked-yuv422p10le.image2
+2890 tests/data/fate/vsynth3-bitpacked-yuv422p10le.image2
+ce92e2b6c27f51aec06bb96adbb33a42 *tests/data/fate/vsynth3-bitpacked-yuv422p10le.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 86700/ 1734
diff --git a/tests/ref/vsynth/vsynth_lena-bitpacked-uyvy422 b/tests/ref/vsynth/vsynth_lena-bitpacked-uyvy422
new file mode 100644
index 0000000000..ab5a15e1d2
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-bitpacked-uyvy422
@@ -0,0 +1,4 @@
+987c552e5f73e14dcae5ff7f917ceebd *tests/data/fate/vsynth_lena-bitpacked-uyvy422.image2
+202752 tests/data/fate/vsynth_lena-bitpacked-uyvy422.image2
+64ffa0d5a62ddf325a92195fda238dd4 *tests/data/fate/vsynth_lena-bitpacked-uyvy422.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 152064
diff --git a/tests/ref/vsynth/vsynth_lena-bitpacked-yuv422p10le b/tests/ref/vsynth/vsynth_lena-bitpacked-yuv422p10le
new file mode 100644
index 0000000000..e5447e0d9f
--- /dev/null
+++ b/tests/ref/vsynth/vsynth_lena-bitpacked-yuv422p10le
@@ -0,0 +1,4 @@
+530fe0ec23e7c4165f550fa12b831901 *tests/data/fate/vsynth_lena-bitpacked-yuv422p10le.image2
+253440 tests/data/fate/vsynth_lena-bitpacked-yuv422p10le.image2
+64ffa0d5a62ddf325a92195fda238dd4 *tests/data/fate/vsynth_lena-bitpacked-yuv422p10le.out.rawvideo
+stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 152064
--
2.40.1
More information about the ffmpeg-devel
mailing list