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