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