DirectDraw Surface image decoder
[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)
35fate-dds-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/dds/libav_$(1).dds -sws_flags +accurate_rnd+bitexact -pix_fmt rgba
36endef
37
38DDS_FMT = argb argb-aexp dx10-bc1 dx10-bc1a dx10-bc2 dx10-bc3 dx10-bc4 dx10-bc5 dxt1 dxt1a dxt1-normalmap dxt2 dxt3 dxt4 dxt5 dxt5-aexp dxt5-normalmap dxt5-normalmap-ati dxt5-rbxg dxt5-rgxb dxt5-rxbg dxt5-rxgb dxt5-xgbr dxt5-xgxr dxt5-xrbg dxt5-ycocg dxt5-ycocg-scaled pal pal-ati rgb16 rgb24 rgtc1s rgtc1u rgtc2s rgtc2u rgtc2u-xy uyvy xbgr xrgb y ya ycocg yuyv
39$(foreach FMT,$(DDS_FMT),$(eval $(call FATE_IMGSUITE_DDS,$(FMT))))
40
41FATE_DDS-$(call DEMDEC, IMAGE2, DDS) += $(FATE_DDS)
42FATE_SAMPLES_AVCONV += $(FATE_DDS-yes)
43fate-dds: $(FATE_DDS-yes)
44
33086f92 45FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, DPX) += fate-dpx
ba13606c 46fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
d69a03ef 47
a381e0ce 48FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, DPX, IMAGE2PIPE, DPX) += fate-dpxparser
50036c30 49fate-dpxparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/dpx/libav_4x_concat.dpx -sws_flags +accurate_rnd+bitexact
a381e0ce 50
06688e96
PM
51FATE_EXR += fate-exr-slice-raw
52fate-exr-slice-raw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_raw.exr -pix_fmt rgba64le
53
54FATE_EXR += fate-exr-slice-rle
55fate-exr-slice-rle: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_rle.exr -pix_fmt rgba64le
56
57FATE_EXR += fate-exr-slice-zip1
58fate-exr-slice-zip1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip1.exr -pix_fmt rgba64le
59
60FATE_EXR += fate-exr-slice-zip16
61fate-exr-slice-zip16: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip16.exr -pix_fmt rgba64le
62
63FATE_EXR += fate-exr-slice-pxr24
64fate-exr-slice-pxr24: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_slice_pxr24.exr -pix_fmt rgb48le
65
66FATE_EXR-$(call DEMDEC, IMAGE2, EXR) += $(FATE_EXR)
67
68FATE_SAMPLES_AVCONV += $(FATE_EXR-yes)
69fate-exr: $(FATE_EXR-yes)
70
d81fb63d
VG
71FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, QDRAW) += fate-pict
72fate-pict: CMD = framecrc -i $(TARGET_SAMPLES)/quickdraw/TRU256.PCT -pix_fmt rgb24
73
33086f92 74FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PICTOR) += fate-pictor
7b734ee5 75fate-pictor: CMD = framecrc -c pictor -i $(TARGET_SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24
d69a03ef 76
cfb4ee30 77FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, PNG, IMAGE2PIPE, PNG) += fate-pngparser
e121a725 78fate-pngparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/png1/libav_4x_concat.png -pix_fmt rgba
cfb4ee30 79
086a5418
VG
80define FATE_IMGSUITE_PNG
81FATE_PNG += fate-png-$(1)
82fate-png-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/png1/libav_$(1).png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
83endef
84
85PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba ya8 ya16
86$(foreach CLSP,$(PNG_COLORSPACES),$(eval $(call FATE_IMGSUITE_PNG,$(CLSP))))
87
88FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
89FATE_SAMPLES_AVCONV += $(FATE_PNG-yes)
90fate-png: $(FATE_PNG-yes)
91
33086f92 92FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PTX) += fate-ptx
ba13606c 93fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
d69a03ef 94
55c6e599
VG
95FATE_SGI += fate-sgi-gray
96fate-sgi-gray: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/vulap_gray.sgi -pix_fmt gray
97
98FATE_SGI += fate-sgi-gray16
66d04c06 99fate-sgi-gray16: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/vulap_gray16.sgi -pix_fmt gray16le
55c6e599
VG
100
101FATE_SGI += fate-sgi-rgb24
102fate-sgi-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/vulap_rgb24.sgi -pix_fmt rgb24
103
104FATE_SGI += fate-sgi-rgb24-rle
105fate-sgi-rgb24-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/uvmap_rgb24_rle.sgi -pix_fmt rgb24
106
107FATE_SGI += fate-sgi-rgb48
108fate-sgi-rgb48: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/vulap_rgb48.sgi -pix_fmt rgb48be
109
110FATE_SGI += fate-sgi-rgb48-rle
111fate-sgi-rgb48-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/uvmap_rgb48_rle.sgi -pix_fmt rgb48be
112
113FATE_SGI += fate-sgi-rgba
114fate-sgi-rgba: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/vulap_rgba.sgi -pix_fmt rgba
115
116FATE_SGI += fate-sgi-rgba64
117fate-sgi-rgba64: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/vulap_rgba64.sgi -pix_fmt rgba64be
118
119FATE_SGI += fate-sgi-rgba64-rle
120fate-sgi-rgba64-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/maya_rgba64_rle.sgi -pix_fmt rgba64be
121
122FATE_SGI-$(call DEMDEC, IMAGE2, SGI) += $(FATE_SGI)
123
124FATE_SAMPLES_AVCONV += $(FATE_SGI-yes)
125fate-sgi: $(FATE_SGI-yes)
126
e5903e29 127FATE_SUNRASTER += fate-sunraster-1bit-raw
ba13606c 128fate-sunraster-1bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-1bit-raw.sun
d69a03ef 129
e5903e29 130FATE_SUNRASTER += fate-sunraster-1bit-rle
ba13606c 131fate-sunraster-1bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-1bit-rle.sun
d69a03ef 132
e5903e29 133FATE_SUNRASTER += fate-sunraster-8bit-raw
ba13606c 134fate-sunraster-8bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-8bit-raw.sun -pix_fmt rgb24
d69a03ef 135
186dcbcb 136FATE_SUNRASTER += fate-sunraster-8bit_gray-raw
ba13606c 137fate-sunraster-8bit_gray-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/gray.ras
186dcbcb 138
e5903e29 139FATE_SUNRASTER += fate-sunraster-8bit-rle
ba13606c 140fate-sunraster-8bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-8bit-rle.sun -pix_fmt rgb24
d69a03ef 141
e5903e29 142FATE_SUNRASTER += fate-sunraster-24bit-raw
ba13606c 143fate-sunraster-24bit-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-24bit-raw.sun
d69a03ef 144
e5903e29 145FATE_SUNRASTER += fate-sunraster-24bit-rle
ba13606c 146fate-sunraster-24bit-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-24bit-rle.sun
68d6012c 147
33086f92
DB
148FATE_SUNRASTER-$(call DEMDEC, IMAGE2, SUNRAST) += $(FATE_SUNRASTER)
149
150FATE_SAMPLES_AVCONV += $(FATE_SUNRASTER-yes)
151fate-sunraster: $(FATE_SUNRASTER-yes)
e5903e29 152
68d6012c 153FATE_TARGA = CBW8 \
9c2f9b0e 154 CCM8 \
68d6012c
JR
155 CTC16 \
156 CTC24 \
157 CTC32 \
158 UBW8 \
9c2f9b0e 159 UCM8 \
68d6012c
JR
160 UTC16 \
161 UTC24 \
162 UTC32
163
164FATE_TARGA := $(FATE_TARGA:%=fate-targa-conformance-%) \
165 fate-targa-top-to-bottom
166
33086f92
DB
167FATE_TARGA-$(call DEMDEC, IMAGE2, TARGA) += $(FATE_TARGA)
168
169FATE_SAMPLES_AVCONV += $(FATE_TARGA-yes)
170fate-targa: $(FATE_TARGA-yes)
68d6012c 171
ba13606c
MS
172fate-targa-conformance-CBW8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CBW8.TGA
173fate-targa-conformance-CCM8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CCM8.TGA -pix_fmt rgba
174fate-targa-conformance-CTC16: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC16.TGA -pix_fmt rgb555le
175fate-targa-conformance-CTC24: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC24.TGA
176fate-targa-conformance-CTC32: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/CTC32.TGA -pix_fmt bgra
177fate-targa-conformance-UBW8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UBW8.TGA
178fate-targa-conformance-UCM8: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UCM8.TGA -pix_fmt rgba
179fate-targa-conformance-UTC16: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC16.TGA -pix_fmt rgb555le
180fate-targa-conformance-UTC24: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC24.TGA
181fate-targa-conformance-UTC32: CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/UTC32.TGA -pix_fmt bgra
68d6012c 182
ba13606c 183fate-targa-top-to-bottom: CMD = framecrc -i $(TARGET_SAMPLES)/targa/lena-top-to-bottom.tga
395e6402 184
e5903e29 185FATE_TIFF += fate-tiff-fax-g3
ba13606c 186fate-tiff-fax-g3: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31D.TIF
395e6402 187
e5903e29 188FATE_TIFF += fate-tiff-fax-g3s
ba13606c 189fate-tiff-fax-g3s: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31DS.TIF
e5903e29 190
33086f92
DB
191FATE_TIFF-$(call DEMDEC, IMAGE2, TIFF) += $(FATE_TIFF)
192
193FATE_SAMPLES_AVCONV += $(FATE_TIFF-yes)
194fate-tiff: $(FATE_TIFF-yes)
991362fa
VG
195
196FATE_XBM += fate-xbm10
197fate-xbm10: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/xl.xbm
198
199FATE_XBM += fate-xbm11
200fate-xbm11: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/lbw.xbm
201
202FATE_XBM-$(call DEMDEC, IMAGE2, XBM) += $(FATE_XBM)
203FATE_SAMPLES_AVCONV += $(FATE_XBM-yes)
204fate-xbm: $(FATE_XBM-yes)