blob: 96a9842a622d646674ff7b142c1f05e70203c970 [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
DRC392e0482011-02-18 20:43:04 +00005 * Copyright 2009-2011 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)
40jsimd_c_can_null_convert (void)
41{
42 return 0;
43}
44
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000045GLOBAL(void)
46jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
47 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
48 JDIMENSION output_row, int num_rows)
49{
50}
51
52GLOBAL(void)
DRCc8666332011-02-18 11:23:45 +000053jsimd_rgb_gray_convert (j_compress_ptr cinfo,
54 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
55 JDIMENSION output_row, int num_rows)
56{
57}
58
59GLOBAL(void)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000060jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
61 JSAMPIMAGE input_buf, JDIMENSION input_row,
62 JSAMPARRAY output_buf, int num_rows)
63{
64}
65
DRC1b3fd7e2014-05-15 18:26:01 +000066GLOBAL(void)
67jsimd_c_null_convert (j_compress_ptr cinfo,
68 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
69 JDIMENSION output_row, int num_rows)
70{
71}
72
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000073GLOBAL(int)
74jsimd_can_h2v2_downsample (void)
75{
76 return 0;
77}
78
79GLOBAL(int)
80jsimd_can_h2v1_downsample (void)
81{
82 return 0;
83}
84
DRC6a61c1e2014-05-14 15:00:10 +000085GLOBAL(int)
86jsimd_can_h2v2_smooth_downsample (void)
87{
88 return 0;
89}
90
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000091GLOBAL(void)
92jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
93 JSAMPARRAY input_data, JSAMPARRAY output_data)
94{
95}
96
97GLOBAL(void)
DRC6a61c1e2014-05-14 15:00:10 +000098jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
99 JSAMPARRAY input_data, JSAMPARRAY output_data)
100{
101}
102
103GLOBAL(void)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000104jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
105 JSAMPARRAY input_data, JSAMPARRAY output_data)
106{
107}
108
109GLOBAL(int)
110jsimd_can_h2v2_upsample (void)
111{
112 return 0;
113}
114
115GLOBAL(int)
116jsimd_can_h2v1_upsample (void)
117{
118 return 0;
119}
120
DRC5ef46302014-05-18 20:04:47 +0000121GLOBAL(int)
122jsimd_can_int_upsample (void)
123{
124 return 0;
125}
126
127GLOBAL(void)
128jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
129 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
130{
131}
132
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000133GLOBAL(void)
134jsimd_h2v2_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000135 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000136 JSAMPARRAY input_data,
137 JSAMPARRAY * output_data_ptr)
138{
139}
140
141GLOBAL(void)
142jsimd_h2v1_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000143 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000144 JSAMPARRAY input_data,
145 JSAMPARRAY * output_data_ptr)
146{
147}
148
149GLOBAL(int)
150jsimd_can_h2v2_fancy_upsample (void)
151{
152 return 0;
153}
154
155GLOBAL(int)
156jsimd_can_h2v1_fancy_upsample (void)
157{
158 return 0;
159}
160
161GLOBAL(void)
162jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000163 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000164 JSAMPARRAY input_data,
165 JSAMPARRAY * output_data_ptr)
166{
167}
168
169GLOBAL(void)
170jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000171 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000172 JSAMPARRAY input_data,
173 JSAMPARRAY * output_data_ptr)
174{
175}
176
177GLOBAL(int)
178jsimd_can_h2v2_merged_upsample (void)
179{
180 return 0;
181}
182
183GLOBAL(int)
184jsimd_can_h2v1_merged_upsample (void)
185{
186 return 0;
187}
188
189GLOBAL(void)
190jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
191 JSAMPIMAGE input_buf,
192 JDIMENSION in_row_group_ctr,
193 JSAMPARRAY output_buf)
194{
195}
196
197GLOBAL(void)
198jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
199 JSAMPIMAGE input_buf,
200 JDIMENSION in_row_group_ctr,
201 JSAMPARRAY output_buf)
202{
203}
204
205GLOBAL(int)
206jsimd_can_convsamp (void)
207{
208 return 0;
209}
210
211GLOBAL(int)
212jsimd_can_convsamp_float (void)
213{
214 return 0;
215}
216
217GLOBAL(void)
218jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
219 DCTELEM * workspace)
220{
221}
222
223GLOBAL(void)
224jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
225 FAST_FLOAT * workspace)
226{
227}
228
229GLOBAL(int)
230jsimd_can_fdct_islow (void)
231{
232 return 0;
233}
234
235GLOBAL(int)
236jsimd_can_fdct_ifast (void)
237{
238 return 0;
239}
240
241GLOBAL(int)
242jsimd_can_fdct_float (void)
243{
244 return 0;
245}
246
247GLOBAL(void)
248jsimd_fdct_islow (DCTELEM * data)
249{
250}
251
252GLOBAL(void)
253jsimd_fdct_ifast (DCTELEM * data)
254{
255}
256
257GLOBAL(void)
258jsimd_fdct_float (FAST_FLOAT * data)
259{
260}
261
262GLOBAL(int)
263jsimd_can_quantize (void)
264{
265 return 0;
266}
267
268GLOBAL(int)
269jsimd_can_quantize_float (void)
270{
271 return 0;
272}
273
274GLOBAL(void)
275jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
276 DCTELEM * workspace)
277{
278}
279
280GLOBAL(void)
281jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
282 FAST_FLOAT * workspace)
283{
284}
285
286GLOBAL(int)
287jsimd_can_idct_2x2 (void)
288{
289 return 0;
290}
291
292GLOBAL(int)
293jsimd_can_idct_4x4 (void)
294{
295 return 0;
296}
297
DRCe5005912013-09-27 17:51:08 +0000298GLOBAL(int)
299jsimd_can_idct_6x6 (void)
300{
301 return 0;
302}
303
304GLOBAL(int)
305jsimd_can_idct_12x12 (void)
306{
307 return 0;
308}
309
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000310GLOBAL(void)
311jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
312 JCOEFPTR coef_block, JSAMPARRAY output_buf,
313 JDIMENSION output_col)
314{
315}
316
317GLOBAL(void)
318jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
319 JCOEFPTR coef_block, JSAMPARRAY output_buf,
320 JDIMENSION output_col)
321{
322}
323
DRCe5005912013-09-27 17:51:08 +0000324GLOBAL(void)
325jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
326 JCOEFPTR coef_block, JSAMPARRAY output_buf,
327 JDIMENSION output_col)
328{
329}
330
331GLOBAL(void)
332jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
333 JCOEFPTR coef_block, JSAMPARRAY output_buf,
334 JDIMENSION output_col)
335{
336}
337
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000338GLOBAL(int)
339jsimd_can_idct_islow (void)
340{
341 return 0;
342}
343
344GLOBAL(int)
345jsimd_can_idct_ifast (void)
346{
347 return 0;
348}
349
350GLOBAL(int)
351jsimd_can_idct_float (void)
352{
353 return 0;
354}
355
356GLOBAL(void)
357jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000358 JCOEFPTR coef_block, JSAMPARRAY output_buf,
359 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000360{
361}
362
363GLOBAL(void)
364jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000365 JCOEFPTR coef_block, JSAMPARRAY output_buf,
366 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000367{
368}
369
370GLOBAL(void)
371jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000372 JCOEFPTR coef_block, JSAMPARRAY output_buf,
373 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000374{
375}
376