• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ADD_SCALE_IF = $(if $(findstring -vf scale,$(1)), SCALE_FILTER)
2
3FATE_ALIASPIX += fate-aliaspix-bgr
4fate-aliaspix-bgr: CMD = transcode alias_pix $(TARGET_SAMPLES)/aliaspix/first.pix image2 "-c alias_pix" "-map 0 -map 0 -pix_fmt:0 bgr24 -c:v:1 copy"
5
6FATE_ALIASPIX += fate-aliaspix-gray
7fate-aliaspix-gray: CMD = transcode alias_pix $(TARGET_SAMPLES)/aliaspix/firstgray.pix image2 "-c alias_pix" "-map 0 -map 0 -pix_fmt:0 gray -c:v:1 copy"
8
9FATE_ALIASPIX-$(call TRANSCODE, ALIAS_PIX, IMAGE2 IMAGE2_ALIAS_PIX) += $(FATE_ALIASPIX)
10FATE_IMAGE += $(FATE_ALIASPIX-yes)
11fate-aliaspix: $(FATE_ALIASPIX-yes)
12
13FATE_BRENDERPIX += fate-brenderpix-24
14fate-brenderpix-24: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/sbwheel.pix
15
16FATE_BRENDERPIX += fate-brenderpix-565
17fate-brenderpix-565: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/maximafront.pix
18
19FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX, SCALE_FILTER) += fate-brenderpix-defpal
20fate-brenderpix-defpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/rivrock1.pix -pix_fmt rgb24 -vf scale
21
22FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX, SCALE_FILTER) += fate-brenderpix-intpal
23fate-brenderpix-intpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/testtex.pix -pix_fmt rgb24 -vf scale
24
25FATE_BRENDERPIX += fate-brenderpix-y400a
26fate-brenderpix-y400a: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/gears.pix
27
28FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX) += $(FATE_BRENDERPIX)
29FATE_IMAGE_FRAMECRC += $(FATE_BRENDERPIX-yes)
30fate-brenderpix: $(FATE_BRENDERPIX-yes)
31
32FATE_IMAGE_FRAMECRC-$(call PARSERDEMDEC, BMP, IMAGE2PIPE, BMP, SCALE_FILTER) += fate-bmpparser
33fate-bmpparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/bmp/numbers.bmp -pix_fmt rgb24 -vf scale
34
35define FATE_IMGSUITE_DDS
36FATE_DDS-$(call DEMDEC, IMAGE2, DDS, $(call ADD_SCALE_IF, $(DDS_OPTS_$(1)))) += fate-dds-$(1)
37fate-dds-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/dds/fate_$(1).dds $(DDS_OPTS_$(1))
38endef
39
40DDS_OPTS_pal    := -sws_flags +accurate_rnd+bitexact -pix_fmt rgba -vf scale
41DDS_OPTS_pal-ati:= -sws_flags +accurate_rnd+bitexact -pix_fmt rgba -vf scale
42DDS_FMT          = alpha8                                               \
43                   argb                                                 \
44                   argb-aexp                                            \
45                   dx10-bc1                                             \
46                   dx10-bc1a                                            \
47                   dx10-bc2                                             \
48                   dx10-bc3                                             \
49                   dx10-bc4                                             \
50                   dx10-bc5                                             \
51                   dxt1                                                 \
52                   dxt1a                                                \
53                   dxt1-normalmap                                       \
54                   dxt2                                                 \
55                   dxt3                                                 \
56                   dxt4                                                 \
57                   dxt5                                                 \
58                   dxt5-aexp                                            \
59                   dxt5-normalmap                                       \
60                   dxt5-normalmap-ati                                   \
61                   dxt5-rbxg                                            \
62                   dxt5-rgxb                                            \
63                   dxt5-rxbg                                            \
64                   dxt5-rxgb                                            \
65                   dxt5-xgbr                                            \
66                   dxt5-xgxr                                            \
67                   dxt5-xrbg                                            \
68                   dxt5-ycocg                                           \
69                   dxt5-ycocg-scaled                                    \
70                   monob                                                \
71                   pal                                                  \
72                   pal-ati                                              \
73                   rgb1555                                              \
74                   rgb16                                                \
75                   rgb24                                                \
76                   rgb555                                               \
77                   rgba                                                 \
78                   rgtc1s                                               \
79                   rgtc1u                                               \
80                   rgtc2s                                               \
81                   rgtc2u                                               \
82                   rgtc2u-xy                                            \
83                   uyvy                                                 \
84                   xbgr                                                 \
85                   xrgb                                                 \
86                   y                                                    \
87                   ya                                                   \
88                   ycocg                                                \
89                   yuyv
90$(foreach FMT,$(DDS_FMT),$(eval $(call FATE_IMGSUITE_DDS,$(FMT))))
91
92FATE_IMAGE_FRAMECRC += $(FATE_DDS-yes)
93fate-dds: $(FATE_DDS-yes)
94
95FATE_IMAGE_FRAMECRC-$(call DEMDEC, IMAGE2, DPX) += fate-dpx
96fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
97
98# The following sample has frames whose dimensions differ on a per-frame basis
99# and therefore needs the scale filter.
100FATE_IMAGE_FRAMECRC-$(call PARSERDEMDEC, DPX, IMAGE2PIPE, DPX, SCALE_FILTER) += fate-dpxparser
101fate-dpxparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/dpx/lena_4x_concat.dpx -sws_flags +accurate_rnd+bitexact
102
103FATE_IMAGE_PROBE-$(call DEMDEC, IMAGE2, DPX) += fate-dpx-probe
104fate-dpx-probe: CMD = probeframes -show_entries frame=color_transfer,color_range,color_space,color_primaries,sample_aspect_ratio $(TARGET_SAMPLES)/dpx/cyan.dpx
105
106FATE_EXR += fate-exr-slice-raw
107fate-exr-slice-raw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_raw.exr -pix_fmt gbrapf32le
108
109FATE_EXR += fate-exr-slice-rle
110fate-exr-slice-rle: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_rle.exr -pix_fmt gbrapf32le
111
112FATE_EXR += fate-exr-slice-zip1
113fate-exr-slice-zip1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip1.exr -pix_fmt gbrapf32le
114
115FATE_EXR += fate-exr-slice-zip16
116fate-exr-slice-zip16: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_slice_zip16.exr -pix_fmt gbrapf32le
117
118FATE_EXR += fate-exr-slice-pxr24
119fate-exr-slice-pxr24: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_slice_pxr24.exr -pix_fmt gbrpf32le
120
121FATE_EXR += fate-exr-rgb-scanline-pxr24-float-12x8
122fate-exr-rgb-scanline-pxr24-float-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_float_12x8.exr -pix_fmt gbrpf32le
123
124FATE_EXR += fate-exr-rgba-multiscanline-half-b44
125fate-exr-rgba-multiscanline-half-b44: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_multiscanline_half_b44.exr -pix_fmt gbrapf32le
126
127FATE_EXR += fate-exr-rgb-scanline-float-b44
128fate-exr-rgb-scanline-float-b44: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_float_b44.exr -pix_fmt gbrpf32le
129
130FATE_EXR += fate-exr-rgb-scanline-half-b44-12x8
131fate-exr-rgb-scanline-half-b44-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_b44_12x8.exr -pix_fmt gbrpf32le
132
133FATE_EXR += fate-exr-rgb-scanline-half-b44-13x9
134fate-exr-rgb-scanline-half-b44-13x9: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_b44_13x9.exr -pix_fmt gbrpf32le
135
136FATE_EXR += fate-exr-rgb-tile-float-raw-12x8
137fate-exr-rgb-tile-float-raw-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_float_raw_12x8.exr -pix_fmt gbrpf32le
138
139FATE_EXR += fate-exr-rgb-tile-float-raw-150x130
140fate-exr-rgb-tile-float-raw-150x130: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_float_raw_150x130.exr -pix_fmt gbrpf32le
141
142FATE_EXR += fate-exr-rgb-tile-half-raw-12x8
143fate-exr-rgb-tile-half-raw-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_half_raw_12x8.exr -pix_fmt gbrpf32le
144
145FATE_EXR += fate-exr-rgba-scanline-float-half-b44-13x9-l1
146fate-exr-rgba-scanline-float-half-b44-13x9-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44_13x9.exr -pix_fmt gbrapf32le
147
148FATE_EXR += fate-exr-rgba-scanline-float-half-b44-13x9-l2
149fate-exr-rgba-scanline-float-half-b44-13x9-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44_13x9.exr -pix_fmt gbrapf32le
150
151FATE_EXR += fate-exr-rgba-scanline-float-half-b44-12x8-l1
152fate-exr-rgba-scanline-float-half-b44-12x8-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44_12x8.exr -pix_fmt gbrapf32le
153
154FATE_EXR += fate-exr-rgba-scanline-float-half-b44-12x8-l2
155fate-exr-rgba-scanline-float-half-b44-12x8-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44_12x8.exr -pix_fmt gbrapf32le
156
157FATE_EXR += fate-exr-rgba-scanline-float-half-b44a-12x8-l1
158fate-exr-rgba-scanline-float-half-b44a-12x8-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44a_12x8.exr -pix_fmt gbrapf32le
159
160FATE_EXR += fate-exr-rgba-scanline-float-half-b44a-12x8-l2
161fate-exr-rgba-scanline-float-half-b44a-12x8-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44a_12x8.exr -pix_fmt gbrapf32le
162
163FATE_EXR += fate-exr-rgba-scanline-float-half-b44a-13x9-l1
164fate-exr-rgba-scanline-float-half-b44a-13x9-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44a_13x9.exr -pix_fmt gbrapf32le
165
166FATE_EXR += fate-exr-rgba-scanline-float-half-b44a-13x9-l2
167fate-exr-rgba-scanline-float-half-b44a-13x9-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgba_scanline_float_half_b44a_13x9.exr -pix_fmt gbrapf32le
168
169FATE_EXR += fate-exr-rgb-tile-pxr24-float-half-l1
170fate-exr-rgb-tile-pxr24-float-half-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_pxr24_float_half.exr -pix_fmt gbrpf32le
171
172FATE_EXR += fate-exr-rgb-tile-pxr24-float-half-l2
173fate-exr-rgb-tile-pxr24-float-half-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_pxr24_float_half.exr -pix_fmt gbrapf32le
174
175FATE_EXR += fate-exr-rgb-tile-pxr24-half-float-l1
176fate-exr-rgb-tile-pxr24-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_pxr24_half_float.exr -pix_fmt gbrpf32le
177
178FATE_EXR += fate-exr-rgb-tile-pxr24-half-float-l2
179fate-exr-rgb-tile-pxr24-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_pxr24_half_float.exr -pix_fmt gbrapf32le
180
181FATE_EXR += fate-exr-rgb-tile-half-float-b44-12x8-l1
182fate-exr-rgb-tile-half-float-b44-12x8-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_half_float_b44_12x8.exr -pix_fmt gbrpf32le
183
184FATE_EXR += fate-exr-rgb-tile-half-float-b44-12x8-l2
185fate-exr-rgb-tile-half-float-b44-12x8-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_half_float_b44_12x8.exr -pix_fmt gbrapf32le
186
187FATE_EXR += fate-exr-rgb-tile-zip-half-float-l1
188fate-exr-rgb-tile-zip-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_zip_half_float.exr -pix_fmt gbrpf32le
189
190FATE_EXR += fate-exr-rgb-tile-zip-half-float-l2
191fate-exr-rgb-tile-zip-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_zip_half_float.exr -pix_fmt gbrapf32le
192
193FATE_EXR += fate-exr-rgb-tile-zip1-half-float-l1
194fate-exr-rgb-tile-zip1-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_zip1_half_float.exr -pix_fmt gbrpf32le
195
196FATE_EXR += fate-exr-rgb-tile-zip1-half-float-l2
197fate-exr-rgb-tile-zip1-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_zip1_half_float.exr -pix_fmt gbrapf32le
198
199FATE_EXR += fate-exr-rgb-tile-rle-half-float-l1
200fate-exr-rgb-tile-rle-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_rle_half_float.exr -pix_fmt gbrpf32le
201
202FATE_EXR += fate-exr-rgb-tile-rle-half-float-l2
203fate-exr-rgb-tile-rle-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_rle_half_float.exr -pix_fmt gbrapf32le
204
205FATE_EXR += fate-exr-rgb-tile-raw-half-float-l1
206fate-exr-rgb-tile-raw-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_raw_half_float.exr -pix_fmt gbrpf32le
207
208FATE_EXR += fate-exr-rgb-tile-raw-half-float-l2
209fate-exr-rgb-tile-raw-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_tile_raw_half_float.exr -pix_fmt gbrapf32le
210
211FATE_EXR += fate-exr-rgb-scanline-b44-half-float-12x8-l1
212fate-exr-rgb-scanline-b44-half-float-12x8-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_b44_half_float_12x8.exr -pix_fmt gbrpf32le
213
214FATE_EXR += fate-exr-rgb-scanline-b44-half-float-12x8-l2
215fate-exr-rgb-scanline-b44-half-float-12x8-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_b44_half_float_12x8.exr -pix_fmt gbrapf32le
216
217FATE_EXR += fate-exr-rgb-scanline-pxr24-half-float-l1
218fate-exr-rgb-scanline-pxr24-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_half_float.exr -pix_fmt gbrpf32le
219
220FATE_EXR += fate-exr-rgb-scanline-pxr24-half-float-l2
221fate-exr-rgb-scanline-pxr24-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_half_float.exr -pix_fmt gbrapf32le
222
223FATE_EXR += fate-exr-rgb-scanline-pxr24-float-half-l1
224fate-exr-rgb-scanline-pxr24-float-half-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_float_half.exr -pix_fmt gbrpf32le
225
226FATE_EXR += fate-exr-rgb-scanline-pxr24-float-half-l2
227fate-exr-rgb-scanline-pxr24-float-half-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_float_half.exr -pix_fmt gbrapf32le
228
229FATE_EXR-$(call DEMDEC, IMAGE2, EXR, SCALE_FILTER) += fate-exr-rgb-scanline-pxr24-half-uint32-13x9
230fate-exr-rgb-scanline-pxr24-half-uint32-13x9: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_half_uint32_13x9.exr -pix_fmt rgb48le -vf scale
231
232FATE_EXR += fate-exr-rgb-scanline-zip-half-float-l1
233fate-exr-rgb-scanline-zip-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip_half_float.exr -pix_fmt gbrpf32le
234
235FATE_EXR += fate-exr-rgb-scanline-zip-half-float-l2
236fate-exr-rgb-scanline-zip-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip_half_float.exr -pix_fmt gbrapf32le
237
238FATE_EXR += fate-exr-rgb-scanline-zip1-half-float-l1
239fate-exr-rgb-scanline-zip1-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip1_half_float.exr -pix_fmt gbrpf32le
240
241FATE_EXR += fate-exr-rgb-scanline-zip1-half-float-l2
242fate-exr-rgb-scanline-zip1-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip1_half_float.exr -pix_fmt gbrapf32le
243
244FATE_EXR += fate-exr-rgb-scanline-rle-half-float-l1
245fate-exr-rgb-scanline-rle-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_rle_half_float.exr -pix_fmt gbrpf32le
246
247FATE_EXR += fate-exr-rgb-scanline-rle-half-float-l2
248fate-exr-rgb-scanline-rle-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_rle_half_float.exr -pix_fmt gbrapf32le
249
250FATE_EXR += fate-exr-rgb-scanline-raw-half-float-l1
251fate-exr-rgb-scanline-raw-half-float-l1: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_raw_half_float.exr -pix_fmt gbrpf32le
252
253FATE_EXR += fate-exr-rgb-scanline-raw-half-float-l2
254fate-exr-rgb-scanline-raw-half-float-l2: CMD = framecrc -layer "VRaySamplerInfo" -i $(TARGET_SAMPLES)/exr/rgb_scanline_raw_half_float.exr -pix_fmt gbrapf32le
255
256FATE_EXR += fate-exr-rgb-scanline-b44-uint32
257fate-exr-rgb-scanline-b44-uint32: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_b44_uint32.exr -pix_fmt rgb48le
258
259FATE_EXR += fate-exr-rgb-scanline-pxr24-uint32
260fate-exr-rgb-scanline-pxr24-uint32: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_uint32.exr -pix_fmt rgb48le
261
262FATE_EXR += fate-exr-rgb-scanline-zip1-half-float-l1-zero-offsets
263fate-exr-rgb-scanline-zip1-half-float-l1-zero-offsets: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip1_half_float_zero_offsets.exr -pix_fmt gbrpf32le
264
265FATE_EXR += fate-exr-rgb-scanline-half-piz-bw
266fate-exr-rgb-scanline-half-piz-bw: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_piz_bw.exr -pix_fmt gbrpf32le
267
268FATE_EXR += fate-exr-rgb-scanline-half-piz-color
269fate-exr-rgb-scanline-half-piz-color: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_piz_color.exr -pix_fmt gbrpf32le
270
271FATE_EXR += fate-exr-rgb-scanline-half-piz-dw-t01
272fate-exr-rgb-scanline-half-piz-dw-t01: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_piz_dw_t01.exr -pix_fmt gbrpf32le
273
274FATE_EXR += fate-exr-rgb-scanline-float-piz-48x32
275fate-exr-rgb-scanline-float-piz-48x32: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_float_piz_48x32.exr -pix_fmt gbrpf32le
276
277FATE_EXR += fate-exr-rgb-scanline-none-negative-red
278fate-exr-rgb-scanline-none-negative-red: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_none_negative_red.exr -pix_fmt gbrpf32le
279
280
281FATE_EXR += fate-exr-rgb-b44a-half-negative-4x4
282fate-exr-rgb-b44a-half-negative-4x4: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_b44a_half_negative_4x4.exr -pix_fmt gbrpf32le
283
284FATE_EXR += fate-exr-y-tile-zip-half-12x8
285fate-exr-y-tile-zip-half-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/y_tile_zip_half_12x8.exr -pix_fmt grayf32le
286
287FATE_EXR += fate-exr-y-scanline-zip-half-12x8
288fate-exr-y-scanline-zip-half-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/y_scanline_zip_half_12x8.exr -pix_fmt grayf32le
289
290FATE_EXR += fate-exr-rgb-scanline-half-piz-dw-t08
291fate-exr-rgb-scanline-half-piz-dw-t08: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_piz_dw_t08.exr -pix_fmt gbrpf32le
292
293FATE_EXR += fate-exr-rgba-zip16-16x32-flag4
294fate-exr-rgba-zip16-16x32-flag4: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgba_zip16_16x32_flag4.exr -pix_fmt gbrapf32le
295
296FATE_EXR += fate-exr-ya-scanline-zip-half-12x8
297fate-exr-ya-scanline-zip-half-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/ya_scanline_zip_half_12x8.exr -pix_fmt gbrapf32le
298
299FATE_EXR += fate-exr-rgb-tile-half-zip
300fate-exr-rgb-tile-half-zip: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_half_zip.exr -pix_fmt gbrpf32le
301
302FATE_EXR += fate-exr-rgb-scanline-float-zip-dw-large
303fate-exr-rgb-scanline-float-zip-dw-large: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_float_zip_dw_large.exr -pix_fmt gbrpf32le
304
305FATE_EXR += fate-exr-rgb-scanline-half-piz-dw-large
306fate-exr-rgb-scanline-half-piz-dw-large: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_piz_dw_large.exr -pix_fmt gbrpf32le
307
308FATE_EXR += fate-exr-rgb-scanline-half-zip-dw-large
309fate-exr-rgb-scanline-half-zip-dw-large: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_zip_dw_large.exr -pix_fmt gbrpf32le
310
311FATE_EXR += fate-exr-rgb-scanline-uint32-piz-dw-large
312fate-exr-rgb-scanline-uint32-piz-dw-large: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_uint32_piz_dw_large.exr -pix_fmt rgb48le
313
314FATE_EXR += fate-exr-rgb-tile-half-piz-dw-large
315fate-exr-rgb-tile-half-piz-dw-large: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_half_piz_dw_large.exr -pix_fmt gbrpf32le
316
317FATE_EXR += fate-exr-rgb-tile-uint32-piz-dw-large
318fate-exr-rgb-tile-uint32-piz-dw-large: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_uint32_piz_dw_large.exr -pix_fmt rgb48le
319
320FATE_EXR += fate-exr-rgb-scanline-half-zip-dw-outside
321fate-exr-rgb-scanline-half-zip-dw-outside: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_half_zip_dw_outside.exr -pix_fmt gbrpf32le
322
323FATE_EXR += fate-exr-rgb-tile-half-zip-dw-outside
324fate-exr-rgb-tile-half-zip-dw-outside: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_half_zip_dw_outside.exr -pix_fmt gbrpf32le
325
326FATE_EXR += fate-exr-rgb-scanline-zip-half-0x0-0xFFFF
327fate-exr-rgb-scanline-zip-half-0x0-0xFFFF: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_zip_half_float_0x0_to_0xFFFF.exr -pix_fmt gbrpf32le
328
329FATE_EXR-$(call DEMDEC, IMAGE2, EXR) += $(FATE_EXR)
330
331FATE_IMAGE_FRAMECRC += $(FATE_EXR-yes)
332fate-exr: $(FATE_EXR-yes)
333
334FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG, SCALE_FILTER) += fate-jpg-12bpp
335fate-jpg-12bpp: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/12bpp.jpg -f rawvideo -pix_fmt gray16le -vf setsar=sar=sar,scale
336
337FATE_JPG += fate-jpg-jfif
338fate-jpg-jfif: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/20242.jpg
339
340FATE_JPG_TRANSCODE-$(call TRANSCODE, MJPEG, MJPEG IMAGE_JPEG_PIPE, IMAGE_PNG_PIPE_DEMUXER PNG_DECODER SCALE_FILTER) += fate-jpg-icc
341fate-jpg-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png mjpeg "-vf scale" "" "-show_frames"
342
343FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG) += $(FATE_JPG)
344FATE_IMAGE_FRAMECRC += $(FATE_JPG-yes)
345FATE_IMAGE_TRANSCODE += $(FATE_JPG_TRANSCODE-yes)
346fate-jpg: $(FATE_JPG-yes) $(FATE_JPG_TRANSCODE-yes)
347
348FATE_JPEGLS += fate-jpegls-2bpc
349fate-jpegls-2bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/4.jls
350
351FATE_JPEGLS += fate-jpegls-3bpc
352fate-jpegls-3bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/8.jls
353
354FATE_JPEGLS += fate-jpegls-5bpc
355fate-jpegls-5bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/32.jls
356
357FATE_JPEGLS += fate-jpegls-7bpc
358fate-jpegls-7bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/128.jls
359
360FATE_JPEGLS-$(call DEMDEC, IMAGE2, JPEGLS) += $(FATE_JPEGLS)
361FATE_IMAGE_FRAMECRC += $(FATE_JPEGLS-yes)
362fate-jpegls: $(FATE_JPEGLS-yes)
363
364FATE_IMAGE_FRAMECRC-$(call DEMDEC, IMAGE2, QDRAW) += fate-pict
365fate-pict: CMD = framecrc -i $(TARGET_SAMPLES)/quickdraw/TRU256.PCT -pix_fmt rgb24
366
367FATE_IMAGE_FRAMECRC-$(call DEMDEC, IMAGE2, PICTOR, SCALE_FILTER) += fate-pictor
368fate-pictor: CMD = framecrc -i $(TARGET_SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24 -vf scale
369
370FATE_IMAGE_FRAMECRC-$(call PARSERDEMDEC, PNG, IMAGE2PIPE, PNG) += fate-pngparser
371fate-pngparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/png1/feed_4x_concat.png -pix_fmt rgba
372
373define FATE_IMGSUITE_PNG
374FATE_PNG-$(call DEMDEC, IMAGE2, PNG, SCALE_FILTER) += fate-png-$(1)
375fate-png-$(1): CMD = framecrc -auto_conversion_filters -i $(TARGET_SAMPLES)/png1/lena-$(1).png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
376endef
377
378PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64 ya8 ya16
379$(foreach CLSP,$(PNG_COLORSPACES),$(eval $(call FATE_IMGSUITE_PNG,$(CLSP))))
380
381FATE_PNG += fate-png-int-rgb24
382fate-png-int-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/png1/lena-int_rgb24.png -sws_flags +accurate_rnd+bitexact
383
384FATE_PNG_PROBE += fate-png-frame-metadata
385fate-png-frame-metadata: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_entries frame_tags \
386    -i $(TARGET_SAMPLES)/filter/pixelart0.png
387
388FATE_PNG_PROBE += fate-png-side-data
389fate-png-side-data: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
390    -i $(TARGET_SAMPLES)/png1/lena-int_rgb24.png
391
392FATE_PNG_TRANSCODE-$(call TRANSCODE, PNG, IMAGE2 IMAGE_PNG_PIPE) += fate-png-icc
393fate-png-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png image2 "-c png" "" "-show_frames"
394
395FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
396FATE_PNG_PROBE-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG_PROBE)
397FATE_IMAGE_FRAMECRC += $(FATE_PNG-yes)
398FATE_IMAGE_PROBE += $(FATE_PNG_PROBE-yes)
399FATE_IMAGE_TRANSCODE += $(FATE_PNG_TRANSCODE-yes)
400fate-png: $(FATE_PNG-yes) $(FATE_PNG_PROBE-yes) $(FATE_PNG_TRANSCODE-yes)
401
402FATE_IMAGE_FRAMECRC-$(call DEMDEC, IMAGE2, PTX, SCALE_FILTER) += fate-ptx
403fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24 -vf scale
404
405define FATE_IMGSUITE_PSD
406FATE_PSD-$(call DEMDEC, IMAGE2, PSD, SCALE_FILTER) += fate-psd-$(1)
407fate-psd-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-$(1).psd -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24 -vf scale
408endef
409
410PSD_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64 ya8 ya16
411$(foreach CLSP,$(PSD_COLORSPACES),$(eval $(call FATE_IMGSUITE_PSD,$(CLSP))))
412
413FATE_PSD += fate-psd-lena-127x127-rgb24
414fate-psd-lena-127x127-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-127x127_rgb24.psd
415
416FATE_PSD += fate-psd-lena-rgb-rle-127x127-16b
417fate-psd-lena-rgb-rle-127x127-16b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgb_rle_127x127_16b.psd
418
419FATE_PSD += fate-psd-lena-rgb-rle-127x127-8b
420fate-psd-lena-rgb-rle-127x127-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgb_rle_127x127_8b.psd
421
422FATE_PSD += fate-psd-lena-rgba-rle-128x128-8b
423fate-psd-lena-rgba-rle-128x128-8b: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-rgba_rle_128x128_8b.psd
424
425FATE_PSD += fate-psd-lena-256c
426fate-psd-lena-256c: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-256c.psd
427
428FATE_PSD += fate-psd-lena-bitmap
429fate-psd-lena-bitmap: CMD = framecrc -i $(TARGET_SAMPLES)/psd/lena-bitmap.psd
430
431FATE_PSD += fate-psd-duo-tone-color
432fate-psd-duo-tone-color: CMD = framecrc -i $(TARGET_SAMPLES)/psd/duotone-color.psd
433
434FATE_PSD-$(call DEMDEC, IMAGE2, PSD) += $(FATE_PSD)
435
436FATE_IMAGE_FRAMECRC += $(FATE_PSD-yes)
437fate-psd: $(FATE_PSD-yes)
438
439define FATE_IMGSUITE_SGI
440FATE_SGI += fate-sgi-$(1) fate-sgi-$(1)-rle
441fate-sgi-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1).sgi -sws_flags +accurate_rnd+bitexact
442fate-sgi-$(1)-rle: CMD = framecrc -i $(TARGET_SAMPLES)/sgi/libav_$(1)_rle.sgi -sws_flags +accurate_rnd+bitexact
443endef
444
445SGI_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba rgba64
446$(foreach CLSP,$(SGI_COLORSPACES),$(eval $(call FATE_IMGSUITE_SGI,$(CLSP))))
447
448FATE_SGI-$(call DEMDEC, IMAGE2, SGI) += $(FATE_SGI)
449FATE_IMAGE_FRAMECRC += $(FATE_SGI-yes)
450fate-sgi: $(FATE_SGI-yes)
451
452define FATE_IMGSUITE_SUNRASTER
453FATE_SUNRASTER-$(call DEMDEC, IMAGE2, SUNRAST, $(call ADD_SCALE_IF, $(SUNRASTER_OPTS_$(1)))) += fate-sunraster-$(1)
454fate-sunraster-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/lena-$(1).sun $(SUNRASTER_OPTS_$(1))
455endef
456SUNRASTER_OPTS_8bit-raw := -pix_fmt rgb24 -vf scale
457SUNRASTER_OPTS_8bit-rle := -pix_fmt rgb24 -vf scale
458SUNRASTER_TESTS := 1bit-raw 1bit-rle 8bit-raw 8bit-rle 24bit-raw 24bit-rle
459$(foreach TEST,$(SUNRASTER_TESTS),$(eval $(call FATE_IMGSUITE_SUNRASTER,$(TEST))))
460
461FATE_SUNRASTER += fate-sunraster-8bit_gray-raw
462fate-sunraster-8bit_gray-raw: CMD = framecrc -i $(TARGET_SAMPLES)/sunraster/gray.ras
463
464FATE_SUNRASTER-$(call DEMDEC, IMAGE2, SUNRAST) += $(FATE_SUNRASTER)
465
466FATE_IMAGE_FRAMECRC += $(FATE_SUNRASTER-yes)
467fate-sunraster: $(FATE_SUNRASTER-yes)
468
469define FATE_IMGSUITE_TARGA
470FATE_TARGA-$(call DEMDEC, IMAGE2, TARGA, $(call ADD_SCALE_IF, $(TARGA_OPTS_$(1)))) += fate-targa-conformance-$(1)
471fate-targa-conformance-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/targa-conformance/$(1).TGA $(TARGA_OPTS_$(1))
472endef
473TARGA_FMT := CBW8       \
474             CCM8       \
475             CTC16      \
476             CTC24      \
477             CTC32      \
478             UBW8       \
479             UCM8       \
480             UTC16      \
481             UTC24      \
482             UTC32
483TARGA_OPTS_CCM8  := -pix_fmt rgba -vf scale
484TARGA_OPTS_UCM8  := -pix_fmt rgba -vf scale
485TARGA_OPTS_UTC16 := -pix_fmt rgb555le
486$(foreach FMT,$(TARGA_FMT),$(eval $(call FATE_IMGSUITE_TARGA,$(FMT))))
487
488FATE_TARGA-$(call DEMDEC, IMAGE2, TARGA) += fate-targa-top-to-bottom
489fate-targa-top-to-bottom: CMD = framecrc -i $(TARGET_SAMPLES)/targa/lena-top-to-bottom.tga
490
491FATE_IMAGE_FRAMECRC += $(FATE_TARGA-yes)
492fate-targa: $(FATE_TARGA-yes)
493
494FATE_TIFF += fate-tiff-fax-g3
495fate-tiff-fax-g3: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31D.TIF
496
497FATE_TIFF += fate-tiff-fax-g3s
498fate-tiff-fax-g3s: CMD = framecrc -i $(TARGET_SAMPLES)/CCITT_fax/G31DS.TIF
499
500FATE_TIFF-$(call DEMDEC, IMAGE2, TIFF) += $(FATE_TIFF)
501
502FATE_IMAGE_FRAMECRC += $(FATE_TIFF-yes)
503fate-tiff: $(FATE_TIFF-yes)
504
505FATE_WEBP += fate-webp-rgb-lossless
506fate-webp-rgb-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lossless.webp
507
508FATE_WEBP += fate-webp-rgb-lena-lossless
509fate-webp-rgb-lena-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lena_lossless.webp
510
511FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP, SCALE_FILTER) += fate-webp-rgb-lena-lossless-rgb24
512fate-webp-rgb-lena-lossless-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lena_lossless.webp -pix_fmt rgb24 -vf scale
513
514FATE_WEBP += fate-webp-rgba-lossless
515fate-webp-rgba-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgba_lossless.webp
516
517# TODO(https://trac.ffmpeg.org/ticket/9368): enable after sample is uploaded
518# FATE_WEBP += fate-webp-rgb-lossless-palette-predictor
519# fate-webp-rgb-lossless-palette-predictor: CMD = framecrc -i $(TARGET_SAMPLES)/webp/dual_transform.webp
520
521FATE_WEBP += fate-webp-rgb-lossy-q80
522fate-webp-rgb-lossy-q80: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_q80.webp
523
524FATE_WEBP += fate-webp-rgba-lossy-q80
525fate-webp-rgba-lossy-q80: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgba_q80.webp
526
527FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP) += $(FATE_WEBP)
528FATE_IMAGE_FRAMECRC += $(FATE_WEBP-yes)
529fate-webp: $(FATE_WEBP-yes)
530
531FATE_IMAGE_FRAMECRC-$(call DEMDEC, IMAGE2, XFACE) += fate-xface
532fate-xface: CMD = framecrc -i $(TARGET_SAMPLES)/xface/lena.xface
533
534FATE_XBM += fate-xbm10
535fate-xbm10: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/xl.xbm
536
537FATE_XBM += fate-xbm11
538fate-xbm11: CMD = framecrc -i $(TARGET_SAMPLES)/xbm/lbw.xbm
539
540FATE_XBM-$(call DEMDEC, IMAGE2, XBM) += $(FATE_XBM)
541FATE_IMAGE_FRAMECRC += $(FATE_XBM-yes)
542fate-xbm: $(FATE_XBM-yes)
543
544FATE_IMAGE-$(call ALLYES, FILE_PROTOCOL FRAMECRC_MUXER PIPE_PROTOCOL) += $(FATE_IMAGE_FRAMECRC) $(FATE_IMAGE_FRAMECRC-yes)
545FATE_IMAGE += $(FATE_IMAGE-yes)
546FATE_IMAGE_PROBE += $(FATE_IMAGE_PROBE-yes)
547FATE_IMAGE_TRANSCODE += $(FATE_IMAGE_TRANSCODE-yes)
548
549FATE_SAMPLES_FFMPEG += $(FATE_IMAGE)
550FATE_SAMPLES_FFPROBE += $(FATE_IMAGE_PROBE)
551FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_IMAGE_TRANSCODE)
552
553fate-image: $(FATE_IMAGE) $(FATE_IMAGE_PROBE) $(FATE_IMAGE_TRANSCODE)
554