blob: bdba693083bf54afa50d0e74ad242918f49f9395 [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
121GLOBAL(void)
122jsimd_h2v2_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000123 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000124 JSAMPARRAY input_data,
125 JSAMPARRAY * output_data_ptr)
126{
127}
128
129GLOBAL(void)
130jsimd_h2v1_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000131 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000132 JSAMPARRAY input_data,
133 JSAMPARRAY * output_data_ptr)
134{
135}
136
137GLOBAL(int)
138jsimd_can_h2v2_fancy_upsample (void)
139{
140 return 0;
141}
142
143GLOBAL(int)
144jsimd_can_h2v1_fancy_upsample (void)
145{
146 return 0;
147}
148
149GLOBAL(void)
150jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000151 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000152 JSAMPARRAY input_data,
153 JSAMPARRAY * output_data_ptr)
154{
155}
156
157GLOBAL(void)
158jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000159 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000160 JSAMPARRAY input_data,
161 JSAMPARRAY * output_data_ptr)
162{
163}
164
165GLOBAL(int)
166jsimd_can_h2v2_merged_upsample (void)
167{
168 return 0;
169}
170
171GLOBAL(int)
172jsimd_can_h2v1_merged_upsample (void)
173{
174 return 0;
175}
176
177GLOBAL(void)
178jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
179 JSAMPIMAGE input_buf,
180 JDIMENSION in_row_group_ctr,
181 JSAMPARRAY output_buf)
182{
183}
184
185GLOBAL(void)
186jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
187 JSAMPIMAGE input_buf,
188 JDIMENSION in_row_group_ctr,
189 JSAMPARRAY output_buf)
190{
191}
192
193GLOBAL(int)
194jsimd_can_convsamp (void)
195{
196 return 0;
197}
198
199GLOBAL(int)
200jsimd_can_convsamp_float (void)
201{
202 return 0;
203}
204
205GLOBAL(void)
206jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
207 DCTELEM * workspace)
208{
209}
210
211GLOBAL(void)
212jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
213 FAST_FLOAT * workspace)
214{
215}
216
217GLOBAL(int)
218jsimd_can_fdct_islow (void)
219{
220 return 0;
221}
222
223GLOBAL(int)
224jsimd_can_fdct_ifast (void)
225{
226 return 0;
227}
228
229GLOBAL(int)
230jsimd_can_fdct_float (void)
231{
232 return 0;
233}
234
235GLOBAL(void)
236jsimd_fdct_islow (DCTELEM * data)
237{
238}
239
240GLOBAL(void)
241jsimd_fdct_ifast (DCTELEM * data)
242{
243}
244
245GLOBAL(void)
246jsimd_fdct_float (FAST_FLOAT * data)
247{
248}
249
250GLOBAL(int)
251jsimd_can_quantize (void)
252{
253 return 0;
254}
255
256GLOBAL(int)
257jsimd_can_quantize_float (void)
258{
259 return 0;
260}
261
262GLOBAL(void)
263jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
264 DCTELEM * workspace)
265{
266}
267
268GLOBAL(void)
269jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
270 FAST_FLOAT * workspace)
271{
272}
273
274GLOBAL(int)
275jsimd_can_idct_2x2 (void)
276{
277 return 0;
278}
279
280GLOBAL(int)
281jsimd_can_idct_4x4 (void)
282{
283 return 0;
284}
285
DRCe5005912013-09-27 17:51:08 +0000286GLOBAL(int)
287jsimd_can_idct_6x6 (void)
288{
289 return 0;
290}
291
292GLOBAL(int)
293jsimd_can_idct_12x12 (void)
294{
295 return 0;
296}
297
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000298GLOBAL(void)
299jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
300 JCOEFPTR coef_block, JSAMPARRAY output_buf,
301 JDIMENSION output_col)
302{
303}
304
305GLOBAL(void)
306jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
307 JCOEFPTR coef_block, JSAMPARRAY output_buf,
308 JDIMENSION output_col)
309{
310}
311
DRCe5005912013-09-27 17:51:08 +0000312GLOBAL(void)
313jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
314 JCOEFPTR coef_block, JSAMPARRAY output_buf,
315 JDIMENSION output_col)
316{
317}
318
319GLOBAL(void)
320jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
321 JCOEFPTR coef_block, JSAMPARRAY output_buf,
322 JDIMENSION output_col)
323{
324}
325
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000326GLOBAL(int)
327jsimd_can_idct_islow (void)
328{
329 return 0;
330}
331
332GLOBAL(int)
333jsimd_can_idct_ifast (void)
334{
335 return 0;
336}
337
338GLOBAL(int)
339jsimd_can_idct_float (void)
340{
341 return 0;
342}
343
344GLOBAL(void)
345jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000346 JCOEFPTR coef_block, JSAMPARRAY output_buf,
347 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000348{
349}
350
351GLOBAL(void)
352jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000353 JCOEFPTR coef_block, JSAMPARRAY output_buf,
354 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000355{
356}
357
358GLOBAL(void)
359jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000360 JCOEFPTR coef_block, JSAMPARRAY output_buf,
361 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000362{
363}
364