diff mbox

[FFmpeg-devel] fate/psd : add test for psd decoder

Message ID CAJiLW2NS0CSOoe3ANauS0U5T6bjAsuh5zuGS6Qdt8NwYF6Ab0A@mail.gmail.com
State Accepted
Headers show

Commit Message

Martin Vignali Nov. 24, 2016, 8:43 p.m. UTC
Hello,

In attach patch to add fate test for the psd decoder

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

test uncompress file in all currently support colorspace
test rle decompression, and odd and even dimensions.

Theses samples need to be put inside ./fate-suite/psd (the folder doesn't
exist)

fate test can be run with
make fate-psd SAMPLES=fate-suite/

Martin

Comments

Michael Niedermayer Nov. 24, 2016, 11:17 p.m. UTC | #1
On Thu, Nov 24, 2016 at 09:43:38PM +0100, Martin Vignali wrote:
> Hello,
> 
> In attach patch to add fate test for the psd decoder
> 
> Sample can be found here :
> https://we.tl/KvRaABCsdY

uploaded

[...]
Martin Vignali Dec. 15, 2016, 3:18 p.m. UTC | #2
2016-11-25 0:17 GMT+01:00 Michael Niedermayer <michael@niedermayer.cc>:

> On Thu, Nov 24, 2016 at 09:43:38PM +0100, Martin Vignali wrote:
> > Hello,
> >
> > In attach patch to add fate test for the psd decoder
> >
> > Sample can be found here :
> > https://we.tl/KvRaABCsdY
>
> uploaded
>
> [...]
>
>
> Ping for the patch
Michael Niedermayer Dec. 16, 2016, 1:05 a.m. UTC | #3
On Thu, Nov 24, 2016 at 09:43:38PM +0100, Martin Vignali wrote:
> Hello,
> 
> In attach patch to add fate test for the psd decoder
> 
> Sample can be found here :
> https://we.tl/KvRaABCsdY
> 
> test uncompress file in all currently support colorspace
> test rle decompression, and odd and even dimensions.
> 
> Theses samples need to be put inside ./fate-suite/psd (the folder doesn't
> exist)
> 
> fate test can be run with
> make fate-psd SAMPLES=fate-suite/
> 
> Martin

>  fate/image.mak                        |   25 +++++++++++++++++++++++++
>  ref/fate/psd-gray16                   |    6 ++++++
>  ref/fate/psd-gray8                    |    6 ++++++
>  ref/fate/psd-lena-127x127-rgb24       |    6 ++++++
>  ref/fate/psd-lena-rgb-rle-127x127-16b |    6 ++++++
>  ref/fate/psd-lena-rgb-rle-127x127-8b  |    6 ++++++
>  ref/fate/psd-lena-rgba-rle-128x128-8b |    6 ++++++
>  ref/fate/psd-rgb24                    |    6 ++++++
>  ref/fate/psd-rgb48                    |    6 ++++++
>  ref/fate/psd-rgba                     |    6 ++++++
>  ref/fate/psd-rgba64                   |    6 ++++++
>  ref/fate/psd-ya16                     |    6 ++++++
>  ref/fate/psd-ya8                      |    6 ++++++
>  13 files changed, 97 insertions(+)
> 568d1c982f7a2a0e8a36463e214b1125d2c3beac  0003-fate-psd-add-tests-for-uncompress-and-rle-samples.patch
> From 8e1e7679a89e2fc0e3155cfce98911f6012fdb85 Mon Sep 17 00:00:00 2001
> From: Martin Vignali <martin.vignali@gmail.com>
> Date: Thu, 24 Nov 2016 21:30:51 +0100
> Subject: [PATCH 3/3] fate/psd : add tests for uncompress and rle samples

applied

thx

[...]
diff mbox

Patch

From 8e1e7679a89e2fc0e3155cfce98911f6012fdb85 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Thu, 24 Nov 2016 21:30:51 +0100
Subject: [PATCH 3/3] fate/psd : add tests for uncompress and rle samples

---
 tests/fate/image.mak                        | 25 +++++++++++++++++++++++++
 tests/ref/fate/psd-gray16                   |  6 ++++++
 tests/ref/fate/psd-gray8                    |  6 ++++++
 tests/ref/fate/psd-lena-127x127-rgb24       |  6 ++++++
 tests/ref/fate/psd-lena-rgb-rle-127x127-16b |  6 ++++++
 tests/ref/fate/psd-lena-rgb-rle-127x127-8b  |  6 ++++++
 tests/ref/fate/psd-lena-rgba-rle-128x128-8b |  6 ++++++
 tests/ref/fate/psd-rgb24                    |  6 ++++++
 tests/ref/fate/psd-rgb48                    |  6 ++++++
 tests/ref/fate/psd-rgba                     |  6 ++++++
 tests/ref/fate/psd-rgba64                   |  6 ++++++
 tests/ref/fate/psd-ya16                     |  6 ++++++
 tests/ref/fate/psd-ya8                      |  6 ++++++
 13 files changed, 97 insertions(+)
 create mode 100644 tests/ref/fate/psd-gray16
 create mode 100644 tests/ref/fate/psd-gray8
 create mode 100644 tests/ref/fate/psd-lena-127x127-rgb24
 create mode 100644 tests/ref/fate/psd-lena-rgb-rle-127x127-16b
 create mode 100644 tests/ref/fate/psd-lena-rgb-rle-127x127-8b
 create mode 100644 tests/ref/fate/psd-lena-rgba-rle-128x128-8b
 create mode 100644 tests/ref/fate/psd-rgb24
 create mode 100644 tests/ref/fate/psd-rgb48
 create mode 100644 tests/ref/fate/psd-rgba
 create mode 100644 tests/ref/fate/psd-rgba64
 create mode 100644 tests/ref/fate/psd-ya16
 create mode 100644 tests/ref/fate/psd-ya8

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index c19312a..4d09828 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -286,6 +286,31 @@  fate-png: $(FATE_PNG-yes)
 FATE_IMAGE-$(call DEMDEC, IMAGE2, PTX) += fate-ptx
 fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
 
+define FATE_IMGSUITE_PSD
+FATE_PSD += fate-psd-$(1)
+fate-psd-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-$(1).psd -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
+endef
+
+PSD_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64 ya8 ya16
+$(foreach CLSP,$(PSD_COLORSPACES),$(eval $(call FATE_IMGSUITE_PSD,$(CLSP))))
+
+FATE_PSD += fate-psd-lena-127x127-rgb24
+fate-psd-lena-127x127-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-127x127_rgb24.psd
+
+FATE_PSD += fate-psd-lena-rgb-rle-127x127-16b
+fate-psd-lena-rgb-rle-127x127-16b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgb_rle_127x127_16b.psd
+
+FATE_PSD += fate-psd-lena-rgb-rle-127x127-8b
+fate-psd-lena-rgb-rle-127x127-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgb_rle_127x127_8b.psd
+
+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-$(call DEMDEC, IMAGE2, PSD) += $(FATE_PSD)
+
+FATE_IMAGE += $(FATE_PSD-yes)
+fate-psd: $(FATE_PSD-yes)
+
 define FATE_IMGSUITE_SGI
 FATE_SGI += fate-sgi-$(1) fate-sgi-$(1)-rle
 fate-sgi-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1).sgi -sws_flags +accurate_rnd+bitexact
diff --git a/tests/ref/fate/psd-gray16 b/tests/ref/fate/psd-gray16
new file mode 100644
index 0000000..668af66
--- /dev/null
+++ b/tests/ref/fate/psd-gray16
@@ -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,    49152, 0xce3477d3
diff --git a/tests/ref/fate/psd-gray8 b/tests/ref/fate/psd-gray8
new file mode 100644
index 0000000..1d8dc49
--- /dev/null
+++ b/tests/ref/fate/psd-gray8
@@ -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,    49152, 0x55121b03
diff --git a/tests/ref/fate/psd-lena-127x127-rgb24 b/tests/ref/fate/psd-lena-127x127-rgb24
new file mode 100644
index 0000000..2644f40
--- /dev/null
+++ b/tests/ref/fate/psd-lena-127x127-rgb24
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x127
+#sar 0: 0/1
+0,          0,          0,        1,    48387, 0xd7b6bec4
diff --git a/tests/ref/fate/psd-lena-rgb-rle-127x127-16b b/tests/ref/fate/psd-lena-rgb-rle-127x127-16b
new file mode 100644
index 0000000..c065939
--- /dev/null
+++ b/tests/ref/fate/psd-lena-rgb-rle-127x127-16b
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x127
+#sar 0: 0/1
+0,          0,          0,        1,    96774, 0xaab6cc1d
diff --git a/tests/ref/fate/psd-lena-rgb-rle-127x127-8b b/tests/ref/fate/psd-lena-rgb-rle-127x127-8b
new file mode 100644
index 0000000..ac3b4a9
--- /dev/null
+++ b/tests/ref/fate/psd-lena-rgb-rle-127x127-8b
@@ -0,0 +1,6 @@ 
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x127
+#sar 0: 0/1
+0,          0,          0,        1,    48387, 0x35b27b60
diff --git a/tests/ref/fate/psd-lena-rgba-rle-128x128-8b b/tests/ref/fate/psd-lena-rgba-rle-128x128-8b
new file mode 100644
index 0000000..f3a11b7
--- /dev/null
+++ b/tests/ref/fate/psd-lena-rgba-rle-128x128-8b
@@ -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,    65536, 0xaaacdff3
diff --git a/tests/ref/fate/psd-rgb24 b/tests/ref/fate/psd-rgb24
new file mode 100644
index 0000000..7f8f550
--- /dev/null
+++ b/tests/ref/fate/psd-rgb24
@@ -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,    49152, 0xe0013dee
diff --git a/tests/ref/fate/psd-rgb48 b/tests/ref/fate/psd-rgb48
new file mode 100644
index 0000000..f60cbab
--- /dev/null
+++ b/tests/ref/fate/psd-rgb48
@@ -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,    49152, 0x0bc6503a
diff --git a/tests/ref/fate/psd-rgba b/tests/ref/fate/psd-rgba
new file mode 100644
index 0000000..6728980
--- /dev/null
+++ b/tests/ref/fate/psd-rgba
@@ -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,    49152, 0xb2563b4a
diff --git a/tests/ref/fate/psd-rgba64 b/tests/ref/fate/psd-rgba64
new file mode 100644
index 0000000..e516867
--- /dev/null
+++ b/tests/ref/fate/psd-rgba64
@@ -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,    49152, 0xb847fd73
diff --git a/tests/ref/fate/psd-ya16 b/tests/ref/fate/psd-ya16
new file mode 100644
index 0000000..96582eb
--- /dev/null
+++ b/tests/ref/fate/psd-ya16
@@ -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,    49152, 0xe8f08af3
diff --git a/tests/ref/fate/psd-ya8 b/tests/ref/fate/psd-ya8
new file mode 100644
index 0000000..9a59fbf
--- /dev/null
+++ b/tests/ref/fate/psd-ya8
@@ -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,    49152, 0xfa0ee1d0
-- 
1.9.3 (Apple Git-50)