From 8402cdb2e820f7a9cfe49d62d4b5db4a7070b19c Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Fri, 11 Apr 2025 23:17:24 +0200 Subject: [PATCH 02/14] fate/vcodec: Add MagicYUV tests Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- tests/fate/vcodec.mak | 9 +++++++++ tests/ref/vsynth/vsynth1-magicyuv | 4 ++++ tests/ref/vsynth/vsynth2-magicyuv | 4 ++++ tests/ref/vsynth/vsynth3-magicyuv | 4 ++++ tests/ref/vsynth/vsynth_lena-magicyuv | 4 ++++ 5 files changed, 25 insertions(+) create mode 100644 tests/ref/vsynth/vsynth1-magicyuv create mode 100644 tests/ref/vsynth/vsynth2-magicyuv create mode 100644 tests/ref/vsynth/vsynth3-magicyuv create mode 100644 tests/ref/vsynth/vsynth_lena-magicyuv diff --git a/tests/fate/vcodec.mak b/tests/fate/vcodec.mak index cafe7dfb8d..b579389b7a 100644 --- a/tests/fate/vcodec.mak +++ b/tests/fate/vcodec.mak @@ -233,6 +233,15 @@ fate-vsynth%-jpeg2000-yuva444p16: ENCOPTS = -qscale 8 -pred 1 -pix_fmt yuva4 FATE_VCODEC-$(call ENCDEC, LJPEG MJPEG, AVI) += ljpeg fate-vsynth%-ljpeg: ENCOPTS = -strict -1 +FATE_VCODEC_SCALE-$(call ENCDEC, MAGICYUV, AVI) += magicyuv +fate-vsynth1-magicyuv: ENCOPTS = -threads 7 -thread_type slice +fate-vsynth2-magicyuv: ENCOPTS = -pix_fmt gbrp -pred gradient \ + -sws_flags neighbor+bitexact +fate-vsynth3-magicyuv: ENCOPTS = -pix_fmt yuv444p -pred median \ + -sws_flags neighbor+bitexact +fate-vsynth_lena-magicyuv: ENCOPTS = -slices 3 -pix_fmt gray -pred left +fate-vsynth%-magicyuv: DECOPTS = -sws_flags neighbor+bitexact + FATE_VCODEC_SCALE-$(call ENCDEC, MJPEG, AVI) += mjpeg mjpeg-422 mjpeg-444 mjpeg-trell mjpeg-huffman mjpeg-trell-huffman fate-vsynth%-mjpeg: ENCOPTS = -qscale 9 -pix_fmt yuvj420p -huffman default -threads 5 -thread_type slice fate-vsynth%-mjpeg-422: ENCOPTS = -qscale 9 -pix_fmt yuvj422p diff --git a/tests/ref/vsynth/vsynth1-magicyuv b/tests/ref/vsynth/vsynth1-magicyuv new file mode 100644 index 0000000000..2e883bf1a0 --- /dev/null +++ b/tests/ref/vsynth/vsynth1-magicyuv @@ -0,0 +1,4 @@ +dc919cb0b3415d31fd51dfc6d7c22a6b *tests/data/fate/vsynth1-magicyuv.avi +3013600 tests/data/fate/vsynth1-magicyuv.avi +c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-magicyuv.out.rawvideo +stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth/vsynth2-magicyuv b/tests/ref/vsynth/vsynth2-magicyuv new file mode 100644 index 0000000000..ea1acaf095 --- /dev/null +++ b/tests/ref/vsynth/vsynth2-magicyuv @@ -0,0 +1,4 @@ +af70e6bf02f762a3d481366df1acfd32 *tests/data/fate/vsynth2-magicyuv.avi +7672776 tests/data/fate/vsynth2-magicyuv.avi +5facc17dcac663e8d3fe73612de68ab0 *tests/data/fate/vsynth2-magicyuv.out.rawvideo +stddev: 1.24 PSNR: 46.23 MAXDIFF: 21 bytes: 7603200/ 7603200 diff --git a/tests/ref/vsynth/vsynth3-magicyuv b/tests/ref/vsynth/vsynth3-magicyuv new file mode 100644 index 0000000000..924a737e60 --- /dev/null +++ b/tests/ref/vsynth/vsynth3-magicyuv @@ -0,0 +1,4 @@ +380d5b8fe8f566b1e1ab48fb917f316e *tests/data/fate/vsynth3-magicyuv.avi +102448 tests/data/fate/vsynth3-magicyuv.avi +a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-magicyuv.out.rawvideo +stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 86700/ 86700 diff --git a/tests/ref/vsynth/vsynth_lena-magicyuv b/tests/ref/vsynth/vsynth_lena-magicyuv new file mode 100644 index 0000000000..4a9aae3989 --- /dev/null +++ b/tests/ref/vsynth/vsynth_lena-magicyuv @@ -0,0 +1,4 @@ +3f74bf17bb8d9ba2022004f95de4b666 *tests/data/fate/vsynth_lena-magicyuv.avi +3477676 tests/data/fate/vsynth_lena-magicyuv.avi +d7bfbe259af9ae323bb94b09c33570a5 *tests/data/fate/vsynth_lena-magicyuv.out.rawvideo +stddev: 18.65 PSNR: 22.72 MAXDIFF: 72 bytes: 7603200/ 7603200 -- 2.45.2