[FFmpeg-cvslog] fate/image: Modify aliaspix tests to also cover the encoder
Andreas Rheinhardt
git at videolan.org
Thu Oct 7 13:06:10 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Oct 6 12:34:49 2021 +0200| [66f468591056b92057a9ae4adc4806546cd19eeb] | committer: Andreas Rheinhardt
fate/image: Modify aliaspix tests to also cover the encoder
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66f468591056b92057a9ae4adc4806546cd19eeb
---
tests/fate/image.mak | 9 ++++++---
tests/ref/fate/aliaspix-bgr | 8 ++++++++
tests/ref/fate/aliaspix-gray | 8 ++++++++
3 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index d1f9765eea..573d398915 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -1,10 +1,13 @@
FATE_ALIASPIX += fate-aliaspix-bgr
-fate-aliaspix-bgr: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/first.pix -pix_fmt bgr24
+fate-aliaspix-bgr: CMD = transcode alias_pix $(TARGET_SAMPLES)/aliaspix/first.pix image2 "-c alias_pix" "-map 0 -map 0 -pix_fmt:0 bgr24 -c:v:1 copy"
FATE_ALIASPIX += fate-aliaspix-gray
-fate-aliaspix-gray: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/firstgray.pix -pix_fmt gray
+fate-aliaspix-gray: CMD = transcode alias_pix $(TARGET_SAMPLES)/aliaspix/firstgray.pix image2 "-c alias_pix" "-map 0 -map 0 -pix_fmt:0 gray -c:v:1 copy"
-FATE_ALIASPIX-$(call DEMDEC, IMAGE2, ALIAS_PIX) += $(FATE_ALIASPIX)
+FATE_ALIASPIX-$(call ALLYES, FILE_PROTOCOL IMAGE2_ALIAS_PIX_DEMUXER \
+ ALIAS_PIX_DECODER ALIAS_PIX_ENCODER \
+ IMAGE2_MUXER RAWVIDEO_ENCODER \
+ FRAMECRC_MUXER PIPE_PROTOCOL) += $(FATE_ALIASPIX)
FATE_IMAGE += $(FATE_ALIASPIX-yes)
fate-aliaspix: $(FATE_ALIASPIX-yes)
diff --git a/tests/ref/fate/aliaspix-bgr b/tests/ref/fate/aliaspix-bgr
index f5c6b7d475..4f55e0dcf6 100644
--- a/tests/ref/fate/aliaspix-bgr
+++ b/tests/ref/fate/aliaspix-bgr
@@ -1,6 +1,14 @@
+667513c8869eea09e1374a73eb21233c *tests/data/fate/aliaspix-bgr.image2
+63090 tests/data/fate/aliaspix-bgr.image2
#tb 0: 1/25
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 201x79
#sar 0: 0/1
+#tb 1: 1/25
+#media_type 1: video
+#codec_id 1: alias_pix
+#dimensions 1: 201x79
+#sar 1: 0/1
0, 0, 0, 1, 47637, 0xcb77368f
+1, 0, 0, 1, 63090, 0xe49bba3b
diff --git a/tests/ref/fate/aliaspix-gray b/tests/ref/fate/aliaspix-gray
index aa7b4649b2..4bf9c43e0e 100644
--- a/tests/ref/fate/aliaspix-gray
+++ b/tests/ref/fate/aliaspix-gray
@@ -1,6 +1,14 @@
+2d7ae310710798257ebcff8a41c646ee *tests/data/fate/aliaspix-gray.image2
+28868 tests/data/fate/aliaspix-gray.image2
#tb 0: 1/25
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 199x81
#sar 0: 0/1
+#tb 1: 1/25
+#media_type 1: video
+#codec_id 1: alias_pix
+#dimensions 1: 199x81
+#sar 1: 0/1
0, 0, 0, 1, 16119, 0x3d0785f5
+1, 0, 0, 1, 28868, 0x02523ce2
More information about the ffmpeg-cvslog
mailing list