Hello,

In attach a patch to add fate test for png decoder for non interleaved
rgba64
and interleaved rgb

sample can be found here :
https://we.tl/SNtjbUQqms

and need to be put inside ./fate-suite/png1

lena-rgba64.png is already in the fate samples but not used by image.mak


Martin
From 449ab70d87f4960c7e3cf015b173ab5466cc97e3 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vign...@gmail.com>
Date: Sat, 2 Jul 2016 15:18:45 +0200
Subject: [PATCH] fate/png : add test for rgba64 and interleaved rgb

---
 tests/fate/image.mak         | 5 ++++-
 tests/ref/fate/png-int-rgb24 | 6 ++++++
 tests/ref/fate/png-rgba64    | 6 ++++++
 3 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 tests/ref/fate/png-int-rgb24
 create mode 100644 tests/ref/fate/png-rgba64

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 500da48..178624a 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -263,9 +263,12 @@ FATE_PNG += fate-png-$(1)
 fate-png-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/png1/lena-$(1).png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
 endef
 
-PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba ya8 ya16
+PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64 ya8 ya16
 $(foreach CLSP,$(PNG_COLORSPACES),$(eval $(call FATE_IMGSUITE_PNG,$(CLSP))))
 
+FATE_PNG += fate-png-int-rgb24
+fate-png-int-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/png1/lena-int_rgb24.png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
+
 FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
 FATE_IMAGE += $(FATE_PNG-yes)
 fate-png: $(FATE_PNG-yes)
diff --git a/tests/ref/fate/png-int-rgb24 b/tests/ref/fate/png-int-rgb24
new file mode 100644
index 0000000..a37aac8
--- /dev/null
+++ b/tests/ref/fate/png-int-rgb24
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 2835/2835
+0,          0,          0,        1,    49152, 0xe0013dee
diff --git a/tests/ref/fate/png-rgba64 b/tests/ref/fate/png-rgba64
new file mode 100644
index 0000000..3a66f19
--- /dev/null
+++ b/tests/ref/fate/png-rgba64
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 1/1
+0,          0,          0,        1,    49152, 0x04f35063
-- 
1.9.3 (Apple Git-50)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to