blob: f29030cfa7ce5c413faa18d7a4eb3ae281a14163 [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
DRC123f7252016-05-24 10:23:56 -05005 * Copyright (C) 2009-2011, 2014, D. R. Commander.
6 * Copyright (C) 2015, Matthieu Darbois.
DRC1a45b812014-05-09 18:06:58 +00007 *
Pierre Ossmanba82ddf2009-06-29 11:20:42 +00008 * Based on the x86 SIMD extension for IJG JPEG library,
9 * Copyright (C) 1999-2006, MIYASAKA Masaru.
DRCaf1ca9b2011-02-02 05:42:37 +000010 * For conditions of distribution and use, see copyright notice in jsimdext.inc
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000011 *
12 * This file contains stubs for when there is no SIMD support available.
13 */
14
15#define JPEG_INTERNALS
16#include "jinclude.h"
17#include "jpeglib.h"
18#include "jsimd.h"
19#include "jdct.h"
20#include "jsimddct.h"
21
22GLOBAL(int)
23jsimd_can_rgb_ycc (void)
24{
25 return 0;
26}
27
28GLOBAL(int)
DRCc8666332011-02-18 11:23:45 +000029jsimd_can_rgb_gray (void)
30{
31 return 0;
32}
33
34GLOBAL(int)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000035jsimd_can_ycc_rgb (void)
36{
37 return 0;
38}
39
DRC1b3fd7e2014-05-15 18:26:01 +000040GLOBAL(int)
DRCd729f4d2014-08-23 15:47:51 +000041jsimd_can_ycc_rgb565 (void)
42{
43 return 0;
44}
45
46GLOBAL(int)
DRC1b3fd7e2014-05-15 18:26:01 +000047jsimd_c_can_null_convert (void)
48{
49 return 0;
50}
51
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000052GLOBAL(void)
53jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
54 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
55 JDIMENSION output_row, int num_rows)
56{
57}
58
59GLOBAL(void)
DRCc8666332011-02-18 11:23:45 +000060jsimd_rgb_gray_convert (j_compress_ptr cinfo,
61 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
62 JDIMENSION output_row, int num_rows)
63{
64}
65
66GLOBAL(void)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000067jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
68 JSAMPIMAGE input_buf, JDIMENSION input_row,
69 JSAMPARRAY output_buf, int num_rows)
70{
71}
72
DRC1b3fd7e2014-05-15 18:26:01 +000073GLOBAL(void)
DRCd729f4d2014-08-23 15:47:51 +000074jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo,
75 JSAMPIMAGE input_buf, JDIMENSION input_row,
76 JSAMPARRAY output_buf, int num_rows)
77{
78}
79
80GLOBAL(void)
DRC1b3fd7e2014-05-15 18:26:01 +000081jsimd_c_null_convert (j_compress_ptr cinfo,
82 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
83 JDIMENSION output_row, int num_rows)
84{
85}
86
Pierre Ossmanba82ddf2009-06-29 11:20:42 +000087GLOBAL(int)
88jsimd_can_h2v2_downsample (void)
89{
90 return 0;
91}
92
93GLOBAL(int)
94jsimd_can_h2v1_downsample (void)
95{
96 return 0;
97}
98
DRC6a61c1e2014-05-14 15:00:10 +000099GLOBAL(int)
100jsimd_can_h2v2_smooth_downsample (void)
101{
102 return 0;
103}
104
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000105GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600106jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000107 JSAMPARRAY input_data, JSAMPARRAY output_data)
108{
109}
110
111GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600112jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo,
113 jpeg_component_info *compptr,
114 JSAMPARRAY input_data, JSAMPARRAY output_data)
DRC6a61c1e2014-05-14 15:00:10 +0000115{
116}
117
118GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600119jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000120 JSAMPARRAY input_data, JSAMPARRAY output_data)
121{
122}
123
124GLOBAL(int)
125jsimd_can_h2v2_upsample (void)
126{
127 return 0;
128}
129
130GLOBAL(int)
131jsimd_can_h2v1_upsample (void)
132{
133 return 0;
134}
135
DRC5ef46302014-05-18 20:04:47 +0000136GLOBAL(int)
137jsimd_can_int_upsample (void)
138{
139 return 0;
140}
141
142GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600143jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info *compptr,
144 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
DRC5ef46302014-05-18 20:04:47 +0000145{
146}
147
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000148GLOBAL(void)
149jsimd_h2v2_upsample (j_decompress_ptr cinfo,
DRCbd498032016-02-19 08:53:33 -0600150 jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000151 JSAMPARRAY input_data,
DRCbd498032016-02-19 08:53:33 -0600152 JSAMPARRAY *output_data_ptr)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000153{
154}
155
156GLOBAL(void)
157jsimd_h2v1_upsample (j_decompress_ptr cinfo,
DRCbd498032016-02-19 08:53:33 -0600158 jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000159 JSAMPARRAY input_data,
DRCbd498032016-02-19 08:53:33 -0600160 JSAMPARRAY *output_data_ptr)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000161{
162}
163
164GLOBAL(int)
165jsimd_can_h2v2_fancy_upsample (void)
166{
167 return 0;
168}
169
170GLOBAL(int)
171jsimd_can_h2v1_fancy_upsample (void)
172{
173 return 0;
174}
175
176GLOBAL(void)
177jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
DRCbd498032016-02-19 08:53:33 -0600178 jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000179 JSAMPARRAY input_data,
DRCbd498032016-02-19 08:53:33 -0600180 JSAMPARRAY *output_data_ptr)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000181{
182}
183
184GLOBAL(void)
185jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
DRCbd498032016-02-19 08:53:33 -0600186 jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000187 JSAMPARRAY input_data,
DRCbd498032016-02-19 08:53:33 -0600188 JSAMPARRAY *output_data_ptr)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000189{
190}
191
192GLOBAL(int)
193jsimd_can_h2v2_merged_upsample (void)
194{
195 return 0;
196}
197
198GLOBAL(int)
199jsimd_can_h2v1_merged_upsample (void)
200{
201 return 0;
202}
203
204GLOBAL(void)
205jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
206 JSAMPIMAGE input_buf,
207 JDIMENSION in_row_group_ctr,
208 JSAMPARRAY output_buf)
209{
210}
211
212GLOBAL(void)
213jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
214 JSAMPIMAGE input_buf,
215 JDIMENSION in_row_group_ctr,
216 JSAMPARRAY output_buf)
217{
218}
219
220GLOBAL(int)
221jsimd_can_convsamp (void)
222{
223 return 0;
224}
225
226GLOBAL(int)
227jsimd_can_convsamp_float (void)
228{
229 return 0;
230}
231
232GLOBAL(void)
233jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
DRCbd498032016-02-19 08:53:33 -0600234 DCTELEM *workspace)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000235{
236}
237
238GLOBAL(void)
239jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
DRCbd498032016-02-19 08:53:33 -0600240 FAST_FLOAT *workspace)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000241{
242}
243
244GLOBAL(int)
245jsimd_can_fdct_islow (void)
246{
247 return 0;
248}
249
250GLOBAL(int)
251jsimd_can_fdct_ifast (void)
252{
253 return 0;
254}
255
256GLOBAL(int)
257jsimd_can_fdct_float (void)
258{
259 return 0;
260}
261
262GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600263jsimd_fdct_islow (DCTELEM *data)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000264{
265}
266
267GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600268jsimd_fdct_ifast (DCTELEM *data)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000269{
270}
271
272GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600273jsimd_fdct_float (FAST_FLOAT *data)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000274{
275}
276
277GLOBAL(int)
278jsimd_can_quantize (void)
279{
280 return 0;
281}
282
283GLOBAL(int)
284jsimd_can_quantize_float (void)
285{
286 return 0;
287}
288
289GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600290jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors,
291 DCTELEM *workspace)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000292{
293}
294
295GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600296jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT *divisors,
297 FAST_FLOAT *workspace)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000298{
299}
300
301GLOBAL(int)
302jsimd_can_idct_2x2 (void)
303{
304 return 0;
305}
306
307GLOBAL(int)
308jsimd_can_idct_4x4 (void)
309{
310 return 0;
311}
312
DRCe5005912013-09-27 17:51:08 +0000313GLOBAL(int)
314jsimd_can_idct_6x6 (void)
315{
316 return 0;
317}
318
319GLOBAL(int)
320jsimd_can_idct_12x12 (void)
321{
322 return 0;
323}
324
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000325GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600326jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000327 JCOEFPTR coef_block, JSAMPARRAY output_buf,
328 JDIMENSION output_col)
329{
330}
331
332GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600333jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000334 JCOEFPTR coef_block, JSAMPARRAY output_buf,
335 JDIMENSION output_col)
336{
337}
338
DRCe5005912013-09-27 17:51:08 +0000339GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600340jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
DRCe5005912013-09-27 17:51:08 +0000341 JCOEFPTR coef_block, JSAMPARRAY output_buf,
342 JDIMENSION output_col)
343{
344}
345
346GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600347jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
DRCe5005912013-09-27 17:51:08 +0000348 JCOEFPTR coef_block, JSAMPARRAY output_buf,
349 JDIMENSION output_col)
350{
351}
352
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000353GLOBAL(int)
354jsimd_can_idct_islow (void)
355{
356 return 0;
357}
358
359GLOBAL(int)
360jsimd_can_idct_ifast (void)
361{
362 return 0;
363}
364
365GLOBAL(int)
366jsimd_can_idct_float (void)
367{
368 return 0;
369}
370
371GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600372jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info *compptr,
DRC14198522014-05-15 19:45:11 +0000373 JCOEFPTR coef_block, JSAMPARRAY output_buf,
374 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000375{
376}
377
378GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600379jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info *compptr,
DRC14198522014-05-15 19:45:11 +0000380 JCOEFPTR coef_block, JSAMPARRAY output_buf,
381 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000382{
383}
384
385GLOBAL(void)
DRCbd498032016-02-19 08:53:33 -0600386jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info *compptr,
DRC14198522014-05-15 19:45:11 +0000387 JCOEFPTR coef_block, JSAMPARRAY output_buf,
388 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000389{
390}
391
DRCf3a86842016-01-07 00:19:43 -0600392GLOBAL(int)
393jsimd_can_huff_encode_one_block (void)
394{
395 return 0;
396}
397
398GLOBAL(JOCTET*)
DRCbd498032016-02-19 08:53:33 -0600399jsimd_huff_encode_one_block (void *state, JOCTET *buffer, JCOEFPTR block,
DRCf3a86842016-01-07 00:19:43 -0600400 int last_dc_val, c_derived_tbl *dctbl,
401 c_derived_tbl *actbl)
402{
403 return NULL;
404}