fate: Add webp alpha test
[libav.git] / tests / fate / image.mak
CommitLineData
9718c31e
VG
1FATE_ALIASPIX += fate-aliaspix-bgr
2fate-aliaspix-bgr: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/first.pix -pix_fmt bgr24
3
4FATE_ALIASPIX += fate-aliaspix-gray
5fate-aliaspix-gray: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/firstgray.pix -pix_fmt gray
6
7FATE_ALIASPIX-$(call DEMDEC, IMAGE2, ALIAS_PIX) += $(FATE_ALIASPIX)
8FATE_SAMPLES_AVCONV += $(FATE_ALIASPIX-yes)
9fate-aliaspix: $(FATE_ALIASPIX-yes)
10
bb36b9aa
VG
11FATE_BRENDERPIX += fate-brenderpix-24
12fate-brenderpix-24: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/sbwheel.pix
13
14FATE_BRENDERPIX += fate-brenderpix-565
15fate-brenderpix-565: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/maximafront.pix
16
17FATE_BRENDERPIX += fate-brenderpix-defpal
3e4e2142 18fate-brenderpix-defpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/rivrock1.pix -pix_fmt rgb24
bb36b9aa
VG
19
20FATE_BRENDERPIX += fate-brenderpix-intpal
3e4e2142 21fate-brenderpix-intpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/testtex.pix -pix_fmt rgb24
bb36b9aa
VG
22
23FATE_BRENDERPIX += fate-brenderpix-y400a
24fate-brenderpix-y400a: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/gears.pix
25
26FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX) += $(FATE_BRENDERPIX)
27FATE_SAMPLES_AVCONV += $(FATE_BRENDERPIX-yes)
28fate-brenderpix: $(FATE_BRENDERPIX-yes)
29
e8e560f2
VG
30FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, BMP, IMAGE2PIPE, BMP) += fate-bmpparser
31fate-bmpparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/bmp/libav_4x_concat.bmp -pix_fmt rgb24
32
5c018ee1
VG
33define FATE_IMGSUITE_DDS
34FATE_DDS += fate-dds-$(1)
e2bd03a1 35fate-dds-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/dds/libav_$(1).dds $(DDS_OPTS_$(1))
5c018ee1
VG
36endef
37
e2bd03a1
MS
38DDS_OPTS_pal = -sws_flags +accurate_rnd+bitexact -pix_fmt rgba
39DDS_OPTS_pal-ati = -sws_flags +accurate_rnd+bitexact -pix_fmt rgba
01621202
DB
40DDS_FMT = alpha8 \
41 argb \
42 argb-aexp \
43 dx10-bc1 \
44 dx10-bc1a \
45 dx10-bc2 \
46 dx10-bc3 \
47 dx10-bc4 \
48 dx10-bc5 \
49 dxt1 \
50 dxt1a \
51 dxt1-normalmap \
52 dxt2 \
53 dxt3 \
54 dxt4 \
55 dxt5 \
56 dxt5-aexp \
57 dxt5-normalmap \
58 dxt5-normalmap-ati \
59 dxt5-rbxg \
60 dxt5-rgxb \
61 dxt5-rxbg \
62 dxt5-rxgb \
63 dxt5-xgbr \
64 dxt5-xgxr \
65 dxt5-xrbg \
66 dxt5-ycocg \
67 dxt5-ycocg-scaled \
4b2e6939 68 monob \
01621202
DB
69 pal \
70 pal-ati \
71 rgb1555 \
72 rgb16 \
73 rgb24 \
74 rgb555 \
75 rgba \
76 rgtc1s \
77 rgtc1u \
78 rgtc2s \
79 rgtc2u \
80 rgtc2u-xy \
81 uyvy \
82 xbgr \
83 xrgb \
84 y \
85 ya \
86 ycocg \
87 yuyv
5c018ee1
VG
88$(foreach FMT,$(DDS_FMT),$(eval $(call FATE_IMGSUITE_DDS,$(FMT))))
89
90FATE_DDS-$(call DEMDEC, IMAGE2, DDS) += $(FATE_DDS)
91FATE_SAMPLES_AVCONV += $(FATE_DDS-yes)
92fate-dds: $(FATE_DDS-yes)
93
33086f92 94FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, DPX) += fate-dpx
ba13606c 95fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
d69a03ef 96
a381e0ce 97FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, DPX, IMAGE2PIPE, DPX) += fate-dpxparser
50036c30 98fate-dpxparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/dpx/libav_4x_concat.dpx -sws_flags +accurate_rnd+bitexact
a381e0ce 99
06688e96
PM
100FATE_EXR += fate-exr-slice-raw
101fate-exr-slice-raw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_raw.exr -pix_fmt rgba64le
102
103FATE_EXR += fate-exr-slice-rle
104fate-exr-slice-rle: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_rle.exr -pix_fmt rgba64le
105
106FATE_EXR += fate-exr-slice-zip1
107fate-exr-slice-zip1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip1.exr -pix_fmt rgba64le
108
109FATE_EXR += fate-exr-slice-zip16
110fate-exr-slice-zip16: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip16.exr -pix_fmt rgba64le
111
112FATE_EXR += fate-exr-slice-pxr24
113fate-exr-slice-pxr24: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_slice_pxr24.exr -pix_fmt rgb48le
114
115FATE_EXR-$(call DEMDEC, IMAGE2, EXR) += $(FATE_EXR)
116
117FATE_SAMPLES_AVCONV += $(FATE_EXR-yes)
118fate-exr: $(FATE_EXR-yes)
119
d81fb63d
VG
120FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, QDRAW) += fate-pict
121fate-pict: CMD = framecrc -i $(TARGET_SAMPLES)/quickdraw/TRU256.PCT -pix_fmt rgb24
122
33086f92 123FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PICTOR) += fate-pictor
7b734ee5 124fate-pictor: CMD = framecrc -c pictor -i $(TARGET_SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24
d69a03ef 125
cfb4ee30 126FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, PNG, IMAGE2PIPE, PNG) += fate-pngparser
e121a725 127fate-pngparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/png1/libav_4x_concat.png -pix_fmt rgba
cfb4ee30 128
086a5418
VG
129define FATE_IMGSUITE_PNG
130FATE_PNG += fate-png-$(1)
131fate-png-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/png1/libav_$(1).png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
132endef
133
134PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba ya8 ya16
135$(foreach CLSP,$(PNG_COLORSPACES),$(eval $(call FATE_IMGSUITE_PNG,$(CLSP))))
136
137FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
138FATE_SAMPLES_AVCONV += $(FATE_PNG-yes)
139fate-png: $(FATE_PNG-yes)
140
33086f92 141FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PTX) += fate-ptx
ba13606c 142fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
d69a03ef 143
823fa700
VG
144define FATE_IMGSUITE_SGI
145FATE_SGI += fate-sgi-$(1) fate-sgi-$(1)-rle
146fate-sgi-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1).sgi -sws_flags +accurate_rnd+bitexact
147fate-sgi-$(1)-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1)_rle.sgi -sws_flags +accurate_rnd+bitexact
148endef
55c6e599 149
823fa700
VG
150SGI_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64
151$(foreach CLSP,$(SGI_COLORSPACES),$(eval $(call FATE_IMGSUITE_SGI,$(CLSP))))
55c6e599
VG
152
153FATE_SGI-$(call DEMDEC, IMAGE2, SGI) += $(FATE_SGI)
55c6e599
VG
154FATE_SAMPLES_AVCONV += $(FATE_SGI-yes)
155fate-sgi: $(FATE_SGI-yes)
156
e5903e29 157FATE_SUNRASTER += fate-sunraster-1bit-raw
ba13606c 158fate-sunraster-1bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-1bit-raw.sun
d69a03ef 159
e5903e29 160FATE_SUNRASTER += fate-sunraster-1bit-rle
ba13606c 161fate-sunraster-1bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-1bit-rle.sun
d69a03ef 162
e5903e29 163FATE_SUNRASTER += fate-sunraster-8bit-raw
ba13606c 164fate-sunraster-8bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-8bit-raw.sun -pix_fmt rgb24
d69a03ef 165
186dcbcb 166FATE_SUNRASTER += fate-sunraster-8bit_gray-raw
ba13606c 167fate-sunraster-8bit_gray-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/gray.ras
186dcbcb 168
e5903e29 169FATE_SUNRASTER += fate-sunraster-8bit-rle
ba13606c 170fate-sunraster-8bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-8bit-rle.sun -pix_fmt rgb24
d69a03ef 171
e5903e29 172FATE_SUNRASTER += fate-sunraster-24bit-raw
ba13606c 173fate-sunraster-24bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-24bit-raw.sun
d69a03ef 174
e5903e29 175FATE_SUNRASTER += fate-sunraster-24bit-rle
ba13606c 176fate-sunraster-24bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-24bit-rle.sun
68d6012c 177
33086f92
DB
178FATE_SUNRASTER-$(call DEMDEC, IMAGE2, SUNRAST) += $(FATE_SUNRASTER)
179
180FATE_SAMPLES_AVCONV += $(FATE_SUNRASTER-yes)
181fate-sunraster: $(FATE_SUNRASTER-yes)
e5903e29 182
68d6012c 183FATE_TARGA = CBW8 \
9c2f9b0e 184 CCM8 \
68d6012c
JR
185 CTC16 \
186 CTC24 \
187 CTC32 \
188 UBW8 \
9c2f9b0e 189 UCM8 \
68d6012c
JR
190 UTC16 \
191 UTC24 \
192 UTC32
193
194FATE_TARGA := $(FATE_TARGA:%=fate-targa-conformance-%) \
195 fate-targa-top-to-bottom
196
33086f92
DB
197FATE_TARGA-$(call DEMDEC, IMAGE2, TARGA) += $(FATE_TARGA)
198
199FATE_SAMPLES_AVCONV += $(FATE_TARGA-yes)
200fate-targa: $(FATE_TARGA-yes)
68d6012c 201
ba13606c
MS
202fate-targa-conformance-CBW8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CBW8.TGA
203fate-targa-conformance-CCM8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CCM8.TGA -pix_fmt rgba
204fate-targa-conformance-CTC16: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC16.TGA -pix_fmt rgb555le
205fate-targa-conformance-CTC24: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC24.TGA
206fate-targa-conformance-CTC32: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC32.TGA -pix_fmt bgra
207fate-targa-conformance-UBW8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UBW8.TGA
208fate-targa-conformance-UCM8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UCM8.TGA -pix_fmt rgba
209fate-targa-conformance-UTC16: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC16.TGA -pix_fmt rgb555le
210fate-targa-conformance-UTC24: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC24.TGA
211fate-targa-conformance-UTC32: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC32.TGA -pix_fmt bgra
68d6012c 212
ba13606c 213fate-targa-top-to-bottom: CMD = framecrc -i $(TARGET_SAMPLES)/targa/lena-top-to-bottom.tga
395e6402 214
e5903e29 215FATE_TIFF += fate-tiff-fax-g3
ba13606c 216fate-tiff-fax-g3: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31D.TIF
395e6402 217
e5903e29 218FATE_TIFF += fate-tiff-fax-g3s
ba13606c 219fate-tiff-fax-g3s: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31DS.TIF
e5903e29 220
33086f92
DB
221FATE_TIFF-$(call DEMDEC, IMAGE2, TIFF) += $(FATE_TIFF)
222
223FATE_SAMPLES_AVCONV += $(FATE_TIFF-yes)
224fate-tiff: $(FATE_TIFF-yes)
991362fa 225
156bc019
MT
226FATE_WEBP += fate-webp-yuv420p
227fate-webp-yuv420p: CMD = framecrc -i $(TARGET_SAMPLES)/webp/image_small.webp
228
229FATE_WEBP += fate-webp-yuva420p
230fate-webp-yuva420p: CMD = framecrc -i $(TARGET_SAMPLES)/webp/1_webp_a.webp
231
232FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP) += $(FATE_WEBP)
233FATE_SAMPLES_AVCONV += $(FATE_WEBP-yes)
234fate-webp: $(FATE_WEBP-yes)
7c55fac7 235
991362fa
VG
236FATE_XBM += fate-xbm10
237fate-xbm10: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/xl.xbm
238
239FATE_XBM += fate-xbm11
240fate-xbm11: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/lbw.xbm
241
242FATE_XBM-$(call DEMDEC, IMAGE2, XBM) += $(FATE_XBM)
243FATE_SAMPLES_AVCONV += $(FATE_XBM-yes)
244fate-xbm: $(FATE_XBM-yes)