Hello,

In attach patch to add fate test for bitmap file, and duotone.

The duotone test, is based on the actual state of the decoder, where the
sample is interpreted as gray file.

Sample can be found here :
https://we.tl/sKMmiVhWT1

and need to be put inside : fate-suite/psd/


Martin
From 031441d5033e5e7fe0b18a27f348ec2c76e04c96 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vign...@gmail.com>
Date: Wed, 11 Jan 2017 21:51:36 +0100
Subject: [PATCH 2/2] fate/psd : add test for bitmap and duotone

The duotone file is interpreted as gray
---
 tests/fate/image.mak              | 6 ++++++
 tests/ref/fate/psd-duo-tone-color | 6 ++++++
 tests/ref/fate/psd-lena-bitmap    | 6 ++++++
 3 files changed, 18 insertions(+)
 create mode 100644 tests/ref/fate/psd-duo-tone-color
 create mode 100644 tests/ref/fate/psd-lena-bitmap

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 17c9245..2a0eda6 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -309,6 +309,12 @@ fate-psd-lena-rgb-rle-127x127-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-r
 FATE_PSD += fate-psd-lena-rgba-rle-128x128-8b
 fate-psd-lena-rgba-rle-128x128-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgba_rle_128x128_8b.psd
 
+FATE_PSD += fate-psd-lena-bitmap
+fate-psd-lena-bitmap: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-bitmap.psd
+
+FATE_PSD += fate-psd-duo-tone-color
+fate-psd-duo-tone-color: CMD = framecrc -i $(TARGET_SAMPLES)/psd/duotone-color.psd
+
 FATE_PSD-$(call DEMDEC, IMAGE2, PSD) += $(FATE_PSD)
 
 FATE_IMAGE += $(FATE_PSD-yes)
diff --git a/tests/ref/fate/psd-duo-tone-color b/tests/ref/fate/psd-duo-tone-color
new file mode 100644
index 0000000..3490e00
--- /dev/null
+++ b/tests/ref/fate/psd-duo-tone-color
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,    16384, 0xe0cfa680
diff --git a/tests/ref/fate/psd-lena-bitmap b/tests/ref/fate/psd-lena-bitmap
new file mode 100644
index 0000000..03725d5
--- /dev/null
+++ b/tests/ref/fate/psd-lena-bitmap
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,     2048, 0x40a72c4f
-- 
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