1/*
2 * jsimd_none.c
3 *
4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 * Copyright 2009-2011, 2014 D. R. Commander
6 *
7 * Based on the x86 SIMD extension for IJG JPEG library,
8 * Copyright (C) 1999-2006, MIYASAKA Masaru.
9 * For conditions of distribution and use, see copyright notice in jsimdext.inc
10 *
11 * This file contains stubs for when there is no SIMD support available.
12 */
13
14#define JPEG_INTERNALS
15#include "jinclude.h"
16#include "jpeglib.h"
17#include "jsimd.h"
18#include "jdct.h"
19#include "jsimddct.h"
20
21GLOBAL(int)
22jsimd_can_rgb_ycc (void)
23{
24  return 0;
25}
26
27GLOBAL(int)
28jsimd_can_rgb_gray (void)
29{
30  return 0;
31}
32
33GLOBAL(int)
34jsimd_can_ycc_rgb (void)
35{
36  return 0;
37}
38
39GLOBAL(int)
40jsimd_can_ycc_rgb565 (void)
41{
42  return 0;
43}
44
45GLOBAL(int)
46jsimd_c_can_null_convert (void)
47{
48  return 0;
49}
50
51GLOBAL(void)
52jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
53                       JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
54                       JDIMENSION output_row, int num_rows)
55{
56}
57
58GLOBAL(void)
59jsimd_rgb_gray_convert (j_compress_ptr cinfo,
60                        JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
61                        JDIMENSION output_row, int num_rows)
62{
63}
64
65GLOBAL(void)
66jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
67                       JSAMPIMAGE input_buf, JDIMENSION input_row,
68                       JSAMPARRAY output_buf, int num_rows)
69{
70}
71
72GLOBAL(void)
73jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo,
74                          JSAMPIMAGE input_buf, JDIMENSION input_row,
75                          JSAMPARRAY output_buf, int num_rows)
76{
77}
78
79GLOBAL(void)
80jsimd_c_null_convert (j_compress_ptr cinfo,
81                      JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
82                      JDIMENSION output_row, int num_rows)
83{
84}
85
86GLOBAL(int)
87jsimd_can_h2v2_downsample (void)
88{
89  return 0;
90}
91
92GLOBAL(int)
93jsimd_can_h2v1_downsample (void)
94{
95  return 0;
96}
97
98GLOBAL(int)
99jsimd_can_h2v2_smooth_downsample (void)
100{
101  return 0;
102}
103
104GLOBAL(void)
105jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
106                       JSAMPARRAY input_data, JSAMPARRAY output_data)
107{
108}
109
110GLOBAL(void)
111jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
112                       JSAMPARRAY input_data, JSAMPARRAY output_data)
113{
114}
115
116GLOBAL(void)
117jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
118                       JSAMPARRAY input_data, JSAMPARRAY output_data)
119{
120}
121
122GLOBAL(int)
123jsimd_can_h2v2_upsample (void)
124{
125  return 0;
126}
127
128GLOBAL(int)
129jsimd_can_h2v1_upsample (void)
130{
131  return 0;
132}
133
134GLOBAL(int)
135jsimd_can_int_upsample (void)
136{
137  return 0;
138}
139
140GLOBAL(void)
141jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
142                      JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
143{
144}
145
146GLOBAL(void)
147jsimd_h2v2_upsample (j_decompress_ptr cinfo,
148                     jpeg_component_info * compptr,
149                     JSAMPARRAY input_data,
150                     JSAMPARRAY * output_data_ptr)
151{
152}
153
154GLOBAL(void)
155jsimd_h2v1_upsample (j_decompress_ptr cinfo,
156                     jpeg_component_info * compptr,
157                     JSAMPARRAY input_data,
158                     JSAMPARRAY * output_data_ptr)
159{
160}
161
162GLOBAL(int)
163jsimd_can_h2v2_fancy_upsample (void)
164{
165  return 0;
166}
167
168GLOBAL(int)
169jsimd_can_h2v1_fancy_upsample (void)
170{
171  return 0;
172}
173
174GLOBAL(void)
175jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
176                           jpeg_component_info * compptr,
177                           JSAMPARRAY input_data,
178                           JSAMPARRAY * output_data_ptr)
179{
180}
181
182GLOBAL(void)
183jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
184                           jpeg_component_info * compptr,
185                           JSAMPARRAY input_data,
186                           JSAMPARRAY * output_data_ptr)
187{
188}
189
190GLOBAL(int)
191jsimd_can_h2v2_merged_upsample (void)
192{
193  return 0;
194}
195
196GLOBAL(int)
197jsimd_can_h2v1_merged_upsample (void)
198{
199  return 0;
200}
201
202GLOBAL(void)
203jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
204                            JSAMPIMAGE input_buf,
205                            JDIMENSION in_row_group_ctr,
206                            JSAMPARRAY output_buf)
207{
208}
209
210GLOBAL(void)
211jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
212                            JSAMPIMAGE input_buf,
213                            JDIMENSION in_row_group_ctr,
214                            JSAMPARRAY output_buf)
215{
216}
217
218GLOBAL(int)
219jsimd_can_convsamp (void)
220{
221  return 0;
222}
223
224GLOBAL(int)
225jsimd_can_convsamp_float (void)
226{
227  return 0;
228}
229
230GLOBAL(void)
231jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
232                DCTELEM * workspace)
233{
234}
235
236GLOBAL(void)
237jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
238                      FAST_FLOAT * workspace)
239{
240}
241
242GLOBAL(int)
243jsimd_can_fdct_islow (void)
244{
245  return 0;
246}
247
248GLOBAL(int)
249jsimd_can_fdct_ifast (void)
250{
251  return 0;
252}
253
254GLOBAL(int)
255jsimd_can_fdct_float (void)
256{
257  return 0;
258}
259
260GLOBAL(void)
261jsimd_fdct_islow (DCTELEM * data)
262{
263}
264
265GLOBAL(void)
266jsimd_fdct_ifast (DCTELEM * data)
267{
268}
269
270GLOBAL(void)
271jsimd_fdct_float (FAST_FLOAT * data)
272{
273}
274
275GLOBAL(int)
276jsimd_can_quantize (void)
277{
278  return 0;
279}
280
281GLOBAL(int)
282jsimd_can_quantize_float (void)
283{
284  return 0;
285}
286
287GLOBAL(void)
288jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
289                DCTELEM * workspace)
290{
291}
292
293GLOBAL(void)
294jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
295                      FAST_FLOAT * workspace)
296{
297}
298
299GLOBAL(int)
300jsimd_can_idct_2x2 (void)
301{
302  return 0;
303}
304
305GLOBAL(int)
306jsimd_can_idct_4x4 (void)
307{
308  return 0;
309}
310
311GLOBAL(int)
312jsimd_can_idct_6x6 (void)
313{
314  return 0;
315}
316
317GLOBAL(int)
318jsimd_can_idct_12x12 (void)
319{
320  return 0;
321}
322
323GLOBAL(void)
324jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
325                JCOEFPTR coef_block, JSAMPARRAY output_buf,
326                JDIMENSION output_col)
327{
328}
329
330GLOBAL(void)
331jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
332                JCOEFPTR coef_block, JSAMPARRAY output_buf,
333                JDIMENSION output_col)
334{
335}
336
337GLOBAL(void)
338jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
339                JCOEFPTR coef_block, JSAMPARRAY output_buf,
340                JDIMENSION output_col)
341{
342}
343
344GLOBAL(void)
345jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
346                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
347                  JDIMENSION output_col)
348{
349}
350
351GLOBAL(int)
352jsimd_can_idct_islow (void)
353{
354  return 0;
355}
356
357GLOBAL(int)
358jsimd_can_idct_ifast (void)
359{
360  return 0;
361}
362
363GLOBAL(int)
364jsimd_can_idct_float (void)
365{
366  return 0;
367}
368
369GLOBAL(void)
370jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
371                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
372                  JDIMENSION output_col)
373{
374}
375
376GLOBAL(void)
377jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
378                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
379                  JDIMENSION output_col)
380{
381}
382
383GLOBAL(void)
384jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
385                  JCOEFPTR coef_block, JSAMPARRAY output_buf,
386                  JDIMENSION output_col)
387{
388}
389
390