blob: 7ff30742cc9937eb0f43f00ff301ad9bcbed8607 [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
5 * Copyright 2009 D. R. Commander
6 *
7 * 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)
28jsimd_can_ycc_rgb (void)
29{
30 return 0;
31}
32
33GLOBAL(void)
34jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
35 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
36 JDIMENSION output_row, int num_rows)
37{
38}
39
40GLOBAL(void)
41jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
42 JSAMPIMAGE input_buf, JDIMENSION input_row,
43 JSAMPARRAY output_buf, int num_rows)
44{
45}
46
47GLOBAL(int)
48jsimd_can_h2v2_downsample (void)
49{
50 return 0;
51}
52
53GLOBAL(int)
54jsimd_can_h2v1_downsample (void)
55{
56 return 0;
57}
58
59GLOBAL(void)
60jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
61 JSAMPARRAY input_data, JSAMPARRAY output_data)
62{
63}
64
65GLOBAL(void)
66jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
67 JSAMPARRAY input_data, JSAMPARRAY output_data)
68{
69}
70
71GLOBAL(int)
72jsimd_can_h2v2_upsample (void)
73{
74 return 0;
75}
76
77GLOBAL(int)
78jsimd_can_h2v1_upsample (void)
79{
80 return 0;
81}
82
83GLOBAL(void)
84jsimd_h2v2_upsample (j_decompress_ptr cinfo,
85 jpeg_component_info * compptr,
86 JSAMPARRAY input_data,
87 JSAMPARRAY * output_data_ptr)
88{
89}
90
91GLOBAL(void)
92jsimd_h2v1_upsample (j_decompress_ptr cinfo,
93 jpeg_component_info * compptr,
94 JSAMPARRAY input_data,
95 JSAMPARRAY * output_data_ptr)
96{
97}
98
99GLOBAL(int)
100jsimd_can_h2v2_fancy_upsample (void)
101{
102 return 0;
103}
104
105GLOBAL(int)
106jsimd_can_h2v1_fancy_upsample (void)
107{
108 return 0;
109}
110
111GLOBAL(void)
112jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
113 jpeg_component_info * compptr,
114 JSAMPARRAY input_data,
115 JSAMPARRAY * output_data_ptr)
116{
117}
118
119GLOBAL(void)
120jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
121 jpeg_component_info * compptr,
122 JSAMPARRAY input_data,
123 JSAMPARRAY * output_data_ptr)
124{
125}
126
127GLOBAL(int)
128jsimd_can_h2v2_merged_upsample (void)
129{
130 return 0;
131}
132
133GLOBAL(int)
134jsimd_can_h2v1_merged_upsample (void)
135{
136 return 0;
137}
138
139GLOBAL(void)
140jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
141 JSAMPIMAGE input_buf,
142 JDIMENSION in_row_group_ctr,
143 JSAMPARRAY output_buf)
144{
145}
146
147GLOBAL(void)
148jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
149 JSAMPIMAGE input_buf,
150 JDIMENSION in_row_group_ctr,
151 JSAMPARRAY output_buf)
152{
153}
154
155GLOBAL(int)
156jsimd_can_convsamp (void)
157{
158 return 0;
159}
160
161GLOBAL(int)
162jsimd_can_convsamp_float (void)
163{
164 return 0;
165}
166
167GLOBAL(void)
168jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
169 DCTELEM * workspace)
170{
171}
172
173GLOBAL(void)
174jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
175 FAST_FLOAT * workspace)
176{
177}
178
179GLOBAL(int)
180jsimd_can_fdct_islow (void)
181{
182 return 0;
183}
184
185GLOBAL(int)
186jsimd_can_fdct_ifast (void)
187{
188 return 0;
189}
190
191GLOBAL(int)
192jsimd_can_fdct_float (void)
193{
194 return 0;
195}
196
197GLOBAL(void)
198jsimd_fdct_islow (DCTELEM * data)
199{
200}
201
202GLOBAL(void)
203jsimd_fdct_ifast (DCTELEM * data)
204{
205}
206
207GLOBAL(void)
208jsimd_fdct_float (FAST_FLOAT * data)
209{
210}
211
212GLOBAL(int)
213jsimd_can_quantize (void)
214{
215 return 0;
216}
217
218GLOBAL(int)
219jsimd_can_quantize_float (void)
220{
221 return 0;
222}
223
224GLOBAL(void)
225jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
226 DCTELEM * workspace)
227{
228}
229
230GLOBAL(void)
231jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
232 FAST_FLOAT * workspace)
233{
234}
235
236GLOBAL(int)
237jsimd_can_idct_2x2 (void)
238{
239 return 0;
240}
241
242GLOBAL(int)
243jsimd_can_idct_4x4 (void)
244{
245 return 0;
246}
247
248GLOBAL(void)
249jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
250 JCOEFPTR coef_block, JSAMPARRAY output_buf,
251 JDIMENSION output_col)
252{
253}
254
255GLOBAL(void)
256jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
257 JCOEFPTR coef_block, JSAMPARRAY output_buf,
258 JDIMENSION output_col)
259{
260}
261
262GLOBAL(int)
263jsimd_can_idct_islow (void)
264{
265 return 0;
266}
267
268GLOBAL(int)
269jsimd_can_idct_ifast (void)
270{
271 return 0;
272}
273
274GLOBAL(int)
275jsimd_can_idct_float (void)
276{
277 return 0;
278}
279
280GLOBAL(void)
281jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
282 JCOEFPTR coef_block, JSAMPARRAY output_buf,
283 JDIMENSION output_col)
284{
285}
286
287GLOBAL(void)
288jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
289 JCOEFPTR coef_block, JSAMPARRAY output_buf,
290 JDIMENSION output_col)
291{
292}
293
294GLOBAL(void)
295jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
296 JCOEFPTR coef_block, JSAMPARRAY output_buf,
297 JDIMENSION output_col)
298{
299}
300