diff mbox

[FFmpeg-devel] fate/psd : add test for bitmap and duotone

Message ID CAJiLW2NuYSAv4F5OFUQikVgGHvmN6ivOhHXMarmD8xVb+1F+YQ@mail.gmail.com
State Accepted
Headers show

Commit Message

Martin Vignali Jan. 11, 2017, 8:59 p.m. UTC
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

Comments

Michael Niedermayer Jan. 12, 2017, 1:43 a.m. UTC | #1
On Wed, Jan 11, 2017 at 09:59:24PM +0100, Martin Vignali wrote:
> 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/

uploaded

thx

[...]
Michael Niedermayer Jan. 14, 2017, 2:47 a.m. UTC | #2
On Wed, Jan 11, 2017 at 09:59:24PM +0100, Martin Vignali wrote:
> 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

>  fate/image.mak              |    6 ++++++
>  ref/fate/psd-duo-tone-color |    6 ++++++
>  ref/fate/psd-lena-bitmap    |    6 ++++++
>  3 files changed, 18 insertions(+)
> 0404a3138995dcef8319c7eadb239aee60738f24  0002-fate-psd-add-test-for-bitmap-and-duotone.patch
> From 031441d5033e5e7fe0b18a27f348ec2c76e04c96 Mon Sep 17 00:00:00 2001
> From: Martin Vignali <martin.vignali@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

applied

thx

[...]
diff mbox

Patch

From 031441d5033e5e7fe0b18a27f348ec2c76e04c96 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@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)