fate: Add webp alpha test
[libav.git] / tests / fate / image.mak
1 FATE_ALIASPIX += fate-aliaspix-bgr
2 fate-aliaspix-bgr: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/first.pix -pix_fmt bgr24
3
4 FATE_ALIASPIX += fate-aliaspix-gray
5 fate-aliaspix-gray: CMD = framecrc -i $(TARGET_SAMPLES)/aliaspix/firstgray.pix -pix_fmt gray
6
7 FATE_ALIASPIX-$(call DEMDEC, IMAGE2, ALIAS_PIX) += $(FATE_ALIASPIX)
8 FATE_SAMPLES_AVCONV += $(FATE_ALIASPIX-yes)
9 fate-aliaspix: $(FATE_ALIASPIX-yes)
10
11 FATE_BRENDERPIX += fate-brenderpix-24
12 fate-brenderpix-24: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/sbwheel.pix
13
14 FATE_BRENDERPIX += fate-brenderpix-565
15 fate-brenderpix-565: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/maximafront.pix
16
17 FATE_BRENDERPIX += fate-brenderpix-defpal
18 fate-brenderpix-defpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/rivrock1.pix -pix_fmt rgb24
19
20 FATE_BRENDERPIX += fate-brenderpix-intpal
21 fate-brenderpix-intpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/testtex.pix -pix_fmt rgb24
22
23 FATE_BRENDERPIX += fate-brenderpix-y400a
24 fate-brenderpix-y400a: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/gears.pix
25
26 FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX) += $(FATE_BRENDERPIX)
27 FATE_SAMPLES_AVCONV += $(FATE_BRENDERPIX-yes)
28 fate-brenderpix: $(FATE_BRENDERPIX-yes)
29
30 FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, BMP, IMAGE2PIPE, BMP) += fate-bmpparser
31 fate-bmpparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/bmp/libav_4x_concat.bmp -pix_fmt rgb24
32
33 define FATE_IMGSUITE_DDS
34 FATE_DDS += fate-dds-$(1)
35 fate-dds-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/dds/libav_$(1).dds $(DDS_OPTS_$(1))
36 endef
37
38 DDS_OPTS_pal = -sws_flags +accurate_rnd+bitexact -pix_fmt rgba
39 DDS_OPTS_pal-ati = -sws_flags +accurate_rnd+bitexact -pix_fmt rgba
40 DDS_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 \
68 monob \
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
88 $(foreach FMT,$(DDS_FMT),$(eval $(call FATE_IMGSUITE_DDS,$(FMT))))
89
90 FATE_DDS-$(call DEMDEC, IMAGE2, DDS) += $(FATE_DDS)
91 FATE_SAMPLES_AVCONV += $(FATE_DDS-yes)
92 fate-dds: $(FATE_DDS-yes)
93
94 FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, DPX) += fate-dpx
95 fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
96
97 FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, DPX, IMAGE2PIPE, DPX) += fate-dpxparser
98 fate-dpxparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/dpx/libav_4x_concat.dpx -sws_flags +accurate_rnd+bitexact
99
100 FATE_EXR += fate-exr-slice-raw
101 fate-exr-slice-raw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_raw.exr -pix_fmt rgba64le
102
103 FATE_EXR += fate-exr-slice-rle
104 fate-exr-slice-rle: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_rle.exr -pix_fmt rgba64le
105
106 FATE_EXR += fate-exr-slice-zip1
107 fate-exr-slice-zip1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip1.exr -pix_fmt rgba64le
108
109 FATE_EXR += fate-exr-slice-zip16
110 fate-exr-slice-zip16: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip16.exr -pix_fmt rgba64le
111
112 FATE_EXR += fate-exr-slice-pxr24
113 fate-exr-slice-pxr24: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_slice_pxr24.exr -pix_fmt rgb48le
114
115 FATE_EXR-$(call DEMDEC, IMAGE2, EXR) += $(FATE_EXR)
116
117 FATE_SAMPLES_AVCONV += $(FATE_EXR-yes)
118 fate-exr: $(FATE_EXR-yes)
119
120 FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, QDRAW) += fate-pict
121 fate-pict: CMD = framecrc -i $(TARGET_SAMPLES)/quickdraw/TRU256.PCT -pix_fmt rgb24
122
123 FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PICTOR) += fate-pictor
124 fate-pictor: CMD = framecrc -c pictor -i $(TARGET_SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24
125
126 FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, PNG, IMAGE2PIPE, PNG) += fate-pngparser
127 fate-pngparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/png1/libav_4x_concat.png -pix_fmt rgba
128
129 define FATE_IMGSUITE_PNG
130 FATE_PNG += fate-png-$(1)
131 fate-png-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/png1/libav_$(1).png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
132 endef
133
134 PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba ya8 ya16
135 $(foreach CLSP,$(PNG_COLORSPACES),$(eval $(call FATE_IMGSUITE_PNG,$(CLSP))))
136
137 FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
138 FATE_SAMPLES_AVCONV += $(FATE_PNG-yes)
139 fate-png: $(FATE_PNG-yes)
140
141 FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PTX) += fate-ptx
142 fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
143
144 define FATE_IMGSUITE_SGI
145 FATE_SGI += fate-sgi-$(1) fate-sgi-$(1)-rle
146 fate-sgi-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1).sgi -sws_flags +accurate_rnd+bitexact
147 fate-sgi-$(1)-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1)_rle.sgi -sws_flags +accurate_rnd+bitexact
148 endef
149
150 SGI_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64
151 $(foreach CLSP,$(SGI_COLORSPACES),$(eval $(call FATE_IMGSUITE_SGI,$(CLSP))))
152
153 FATE_SGI-$(call DEMDEC, IMAGE2, SGI) += $(FATE_SGI)
154 FATE_SAMPLES_AVCONV += $(FATE_SGI-yes)
155 fate-sgi: $(FATE_SGI-yes)
156
157 FATE_SUNRASTER += fate-sunraster-1bit-raw
158 fate-sunraster-1bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-1bit-raw.sun
159
160 FATE_SUNRASTER += fate-sunraster-1bit-rle
161 fate-sunraster-1bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-1bit-rle.sun
162
163 FATE_SUNRASTER += fate-sunraster-8bit-raw
164 fate-sunraster-8bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-8bit-raw.sun -pix_fmt rgb24
165
166 FATE_SUNRASTER += fate-sunraster-8bit_gray-raw
167 fate-sunraster-8bit_gray-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/gray.ras
168
169 FATE_SUNRASTER += fate-sunraster-8bit-rle
170 fate-sunraster-8bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-8bit-rle.sun -pix_fmt rgb24
171
172 FATE_SUNRASTER += fate-sunraster-24bit-raw
173 fate-sunraster-24bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-24bit-raw.sun
174
175 FATE_SUNRASTER += fate-sunraster-24bit-rle
176 fate-sunraster-24bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-24bit-rle.sun
177
178 FATE_SUNRASTER-$(call DEMDEC, IMAGE2, SUNRAST) += $(FATE_SUNRASTER)
179
180 FATE_SAMPLES_AVCONV += $(FATE_SUNRASTER-yes)
181 fate-sunraster: $(FATE_SUNRASTER-yes)
182
183 FATE_TARGA = CBW8 \
184 CCM8 \
185 CTC16 \
186 CTC24 \
187 CTC32 \
188 UBW8 \
189 UCM8 \
190 UTC16 \
191 UTC24 \
192 UTC32
193
194 FATE_TARGA := $(FATE_TARGA:%=fate-targa-conformance-%) \
195 fate-targa-top-to-bottom
196
197 FATE_TARGA-$(call DEMDEC, IMAGE2, TARGA) += $(FATE_TARGA)
198
199 FATE_SAMPLES_AVCONV += $(FATE_TARGA-yes)
200 fate-targa: $(FATE_TARGA-yes)
201
202 fate-targa-conformance-CBW8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CBW8.TGA
203 fate-targa-conformance-CCM8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CCM8.TGA -pix_fmt rgba
204 fate-targa-conformance-CTC16: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC16.TGA -pix_fmt rgb555le
205 fate-targa-conformance-CTC24: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC24.TGA
206 fate-targa-conformance-CTC32: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC32.TGA -pix_fmt bgra
207 fate-targa-conformance-UBW8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UBW8.TGA
208 fate-targa-conformance-UCM8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UCM8.TGA -pix_fmt rgba
209 fate-targa-conformance-UTC16: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC16.TGA -pix_fmt rgb555le
210 fate-targa-conformance-UTC24: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC24.TGA
211 fate-targa-conformance-UTC32: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC32.TGA -pix_fmt bgra
212
213 fate-targa-top-to-bottom: CMD = framecrc -i $(TARGET_SAMPLES)/targa/lena-top-to-bottom.tga
214
215 FATE_TIFF += fate-tiff-fax-g3
216 fate-tiff-fax-g3: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31D.TIF
217
218 FATE_TIFF += fate-tiff-fax-g3s
219 fate-tiff-fax-g3s: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31DS.TIF
220
221 FATE_TIFF-$(call DEMDEC, IMAGE2, TIFF) += $(FATE_TIFF)
222
223 FATE_SAMPLES_AVCONV += $(FATE_TIFF-yes)
224 fate-tiff: $(FATE_TIFF-yes)
225
226 FATE_WEBP += fate-webp-yuv420p
227 fate-webp-yuv420p: CMD = framecrc -i $(TARGET_SAMPLES)/webp/image_small.webp
228
229 FATE_WEBP += fate-webp-yuva420p
230 fate-webp-yuva420p: CMD = framecrc -i $(TARGET_SAMPLES)/webp/1_webp_a.webp
231
232 FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP) += $(FATE_WEBP)
233 FATE_SAMPLES_AVCONV += $(FATE_WEBP-yes)
234 fate-webp: $(FATE_WEBP-yes)
235
236 FATE_XBM += fate-xbm10
237 fate-xbm10: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/xl.xbm
238
239 FATE_XBM += fate-xbm11
240 fate-xbm11: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/lbw.xbm
241
242 FATE_XBM-$(call DEMDEC, IMAGE2, XBM) += $(FATE_XBM)
243 FATE_SAMPLES_AVCONV += $(FATE_XBM-yes)
244 fate-xbm: $(FATE_XBM-yes)