blob: 34aefc9fa29dcdfb296c0dda696f8179905959ae [file] [log] [blame]
Pierre Ossmanba82ddf2009-06-29 11:20:42 +00001/*
2 * jsimd_none.c
3 *
4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
DRCd729f4d2014-08-23 15:47:51 +00005 * Copyright 2009-2011, 2014 D. R. Commander
DRC1a45b812014-05-09 18:06:58 +00006 *
Pierre Ossmanba82ddf2009-06-29 11:20:42 +00007 * Based on the x86 SIMD extension for IJG JPEG library,
8 * Copyright (C) 1999-2006, MIYASAKA Masaru.
DRCaf1ca9b2011-02-02 05:42:37 +00009 * For conditions of distribution and use, see copyright notice in jsimdext.inc
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000010 *
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)
DRCc8666332011-02-18 11:23:45 +000028jsimd_can_rgb_gray (void)
29{
30 return 0;
31}
32
33GLOBAL(int)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000034jsimd_can_ycc_rgb (void)
35{
36 return 0;
37}
38
DRC1b3fd7e2014-05-15 18:26:01 +000039GLOBAL(int)
DRCd729f4d2014-08-23 15:47:51 +000040jsimd_can_ycc_rgb565 (void)
41{
42 return 0;
43}
44
45GLOBAL(int)
DRC1b3fd7e2014-05-15 18:26:01 +000046jsimd_c_can_null_convert (void)
47{
48 return 0;
49}
50
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000051GLOBAL(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)
DRCc8666332011-02-18 11:23:45 +000059jsimd_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)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000066jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
67 JSAMPIMAGE input_buf, JDIMENSION input_row,
68 JSAMPARRAY output_buf, int num_rows)
69{
70}
71
DRC1b3fd7e2014-05-15 18:26:01 +000072GLOBAL(void)
DRCd729f4d2014-08-23 15:47:51 +000073jsimd_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)
DRC1b3fd7e2014-05-15 18:26:01 +000080jsimd_c_null_convert (j_compress_ptr cinfo,
81 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
82 JDIMENSION output_row, int num_rows)
83{
84}
85
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000086GLOBAL(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
DRC6a61c1e2014-05-14 15:00:10 +000098GLOBAL(int)
99jsimd_can_h2v2_smooth_downsample (void)
100{
101 return 0;
102}
103
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000104GLOBAL(void)
105jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
106 JSAMPARRAY input_data, JSAMPARRAY output_data)
107{
108}
109
110GLOBAL(void)
DRC6a61c1e2014-05-14 15:00:10 +0000111jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
112 JSAMPARRAY input_data, JSAMPARRAY output_data)
113{
114}
115
116GLOBAL(void)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000117jsimd_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
DRC5ef46302014-05-18 20:04:47 +0000134GLOBAL(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
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000146GLOBAL(void)
147jsimd_h2v2_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000148 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000149 JSAMPARRAY input_data,
150 JSAMPARRAY * output_data_ptr)
151{
152}
153
154GLOBAL(void)
155jsimd_h2v1_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000156 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000157 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,
DRC1a45b812014-05-09 18:06:58 +0000176 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000177 JSAMPARRAY input_data,
178 JSAMPARRAY * output_data_ptr)
179{
180}
181
182GLOBAL(void)
183jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000184 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000185 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
DRCe5005912013-09-27 17:51:08 +0000311GLOBAL(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
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000323GLOBAL(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
DRCe5005912013-09-27 17:51:08 +0000337GLOBAL(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
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000351GLOBAL(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,
DRC14198522014-05-15 19:45:11 +0000371 JCOEFPTR coef_block, JSAMPARRAY output_buf,
372 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000373{
374}
375
376GLOBAL(void)
377jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000378 JCOEFPTR coef_block, JSAMPARRAY output_buf,
379 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000380{
381}
382
383GLOBAL(void)
384jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000385 JCOEFPTR coef_block, JSAMPARRAY output_buf,
386 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000387{
388}
389