blob: 65e3f8f82353e0abec659d89e4e4c8f9bccf90d7 [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
DRCf3a86842016-01-07 00:19:43 -06006 * Copyright 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)
106jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
107 JSAMPARRAY input_data, JSAMPARRAY output_data)
108{
109}
110
111GLOBAL(void)
DRC6a61c1e2014-05-14 15:00:10 +0000112jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
113 JSAMPARRAY input_data, JSAMPARRAY output_data)
114{
115}
116
117GLOBAL(void)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000118jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
119 JSAMPARRAY input_data, JSAMPARRAY output_data)
120{
121}
122
123GLOBAL(int)
124jsimd_can_h2v2_upsample (void)
125{
126 return 0;
127}
128
129GLOBAL(int)
130jsimd_can_h2v1_upsample (void)
131{
132 return 0;
133}
134
DRC5ef46302014-05-18 20:04:47 +0000135GLOBAL(int)
136jsimd_can_int_upsample (void)
137{
138 return 0;
139}
140
141GLOBAL(void)
142jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr,
143 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)
144{
145}
146
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000147GLOBAL(void)
148jsimd_h2v2_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000149 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000150 JSAMPARRAY input_data,
151 JSAMPARRAY * output_data_ptr)
152{
153}
154
155GLOBAL(void)
156jsimd_h2v1_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000157 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000158 JSAMPARRAY input_data,
159 JSAMPARRAY * output_data_ptr)
160{
161}
162
163GLOBAL(int)
164jsimd_can_h2v2_fancy_upsample (void)
165{
166 return 0;
167}
168
169GLOBAL(int)
170jsimd_can_h2v1_fancy_upsample (void)
171{
172 return 0;
173}
174
175GLOBAL(void)
176jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000177 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000178 JSAMPARRAY input_data,
179 JSAMPARRAY * output_data_ptr)
180{
181}
182
183GLOBAL(void)
184jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
DRC1a45b812014-05-09 18:06:58 +0000185 jpeg_component_info * compptr,
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000186 JSAMPARRAY input_data,
187 JSAMPARRAY * output_data_ptr)
188{
189}
190
191GLOBAL(int)
192jsimd_can_h2v2_merged_upsample (void)
193{
194 return 0;
195}
196
197GLOBAL(int)
198jsimd_can_h2v1_merged_upsample (void)
199{
200 return 0;
201}
202
203GLOBAL(void)
204jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
205 JSAMPIMAGE input_buf,
206 JDIMENSION in_row_group_ctr,
207 JSAMPARRAY output_buf)
208{
209}
210
211GLOBAL(void)
212jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
213 JSAMPIMAGE input_buf,
214 JDIMENSION in_row_group_ctr,
215 JSAMPARRAY output_buf)
216{
217}
218
219GLOBAL(int)
220jsimd_can_convsamp (void)
221{
222 return 0;
223}
224
225GLOBAL(int)
226jsimd_can_convsamp_float (void)
227{
228 return 0;
229}
230
231GLOBAL(void)
232jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
233 DCTELEM * workspace)
234{
235}
236
237GLOBAL(void)
238jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
239 FAST_FLOAT * workspace)
240{
241}
242
243GLOBAL(int)
244jsimd_can_fdct_islow (void)
245{
246 return 0;
247}
248
249GLOBAL(int)
250jsimd_can_fdct_ifast (void)
251{
252 return 0;
253}
254
255GLOBAL(int)
256jsimd_can_fdct_float (void)
257{
258 return 0;
259}
260
261GLOBAL(void)
262jsimd_fdct_islow (DCTELEM * data)
263{
264}
265
266GLOBAL(void)
267jsimd_fdct_ifast (DCTELEM * data)
268{
269}
270
271GLOBAL(void)
272jsimd_fdct_float (FAST_FLOAT * data)
273{
274}
275
276GLOBAL(int)
277jsimd_can_quantize (void)
278{
279 return 0;
280}
281
282GLOBAL(int)
283jsimd_can_quantize_float (void)
284{
285 return 0;
286}
287
288GLOBAL(void)
289jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
290 DCTELEM * workspace)
291{
292}
293
294GLOBAL(void)
295jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
296 FAST_FLOAT * workspace)
297{
298}
299
300GLOBAL(int)
301jsimd_can_idct_2x2 (void)
302{
303 return 0;
304}
305
306GLOBAL(int)
307jsimd_can_idct_4x4 (void)
308{
309 return 0;
310}
311
DRCe5005912013-09-27 17:51:08 +0000312GLOBAL(int)
313jsimd_can_idct_6x6 (void)
314{
315 return 0;
316}
317
318GLOBAL(int)
319jsimd_can_idct_12x12 (void)
320{
321 return 0;
322}
323
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000324GLOBAL(void)
325jsimd_idct_2x2 (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_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
333 JCOEFPTR coef_block, JSAMPARRAY output_buf,
334 JDIMENSION output_col)
335{
336}
337
DRCe5005912013-09-27 17:51:08 +0000338GLOBAL(void)
339jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
340 JCOEFPTR coef_block, JSAMPARRAY output_buf,
341 JDIMENSION output_col)
342{
343}
344
345GLOBAL(void)
346jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
347 JCOEFPTR coef_block, JSAMPARRAY output_buf,
348 JDIMENSION output_col)
349{
350}
351
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000352GLOBAL(int)
353jsimd_can_idct_islow (void)
354{
355 return 0;
356}
357
358GLOBAL(int)
359jsimd_can_idct_ifast (void)
360{
361 return 0;
362}
363
364GLOBAL(int)
365jsimd_can_idct_float (void)
366{
367 return 0;
368}
369
370GLOBAL(void)
371jsimd_idct_islow (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
377GLOBAL(void)
378jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000379 JCOEFPTR coef_block, JSAMPARRAY output_buf,
380 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000381{
382}
383
384GLOBAL(void)
385jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
DRC14198522014-05-15 19:45:11 +0000386 JCOEFPTR coef_block, JSAMPARRAY output_buf,
387 JDIMENSION output_col)
Pierre Ossmanba82ddf2009-06-29 11:20:42 +0000388{
389}
390
DRCf3a86842016-01-07 00:19:43 -0600391GLOBAL(int)
392jsimd_can_huff_encode_one_block (void)
393{
394 return 0;
395}
396
397GLOBAL(JOCTET*)
398jsimd_huff_encode_one_block (void * state, JOCTET *buffer, JCOEFPTR block,
399 int last_dc_val, c_derived_tbl *dctbl,
400 c_derived_tbl *actbl)
401{
402 return NULL;
403}