no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / media / libjpeg / jsimd_none.c
bloba25db73899ce1fc2b7f2f81de3af72aa6d401855
1 /*
2 * jsimd_none.c
4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 * Copyright (C) 2009-2011, 2014, 2022, D. R. Commander.
6 * Copyright (C) 2015-2016, 2018, 2022, Matthieu Darbois.
7 * Copyright (C) 2020, Arm Limited.
9 * Based on the x86 SIMD extension for IJG JPEG library,
10 * Copyright (C) 1999-2006, MIYASAKA Masaru.
11 * For conditions of distribution and use, see copyright notice in jsimdext.inc
13 * This file contains stubs for when there is no SIMD support available.
16 #define JPEG_INTERNALS
17 #include "jinclude.h"
18 #include "jpeglib.h"
19 #include "jsimd.h"
20 #include "jdct.h"
21 #include "jsimddct.h"
23 GLOBAL(int)
24 jsimd_can_rgb_ycc(void)
26 return 0;
29 GLOBAL(int)
30 jsimd_can_rgb_gray(void)
32 return 0;
35 GLOBAL(int)
36 jsimd_can_ycc_rgb(void)
38 return 0;
41 GLOBAL(int)
42 jsimd_can_ycc_rgb565(void)
44 return 0;
47 GLOBAL(int)
48 jsimd_c_can_null_convert(void)
50 return 0;
53 GLOBAL(void)
54 jsimd_rgb_ycc_convert(j_compress_ptr cinfo, JSAMPARRAY input_buf,
55 JSAMPIMAGE output_buf, JDIMENSION output_row,
56 int num_rows)
60 GLOBAL(void)
61 jsimd_rgb_gray_convert(j_compress_ptr cinfo, JSAMPARRAY input_buf,
62 JSAMPIMAGE output_buf, JDIMENSION output_row,
63 int num_rows)
67 GLOBAL(void)
68 jsimd_ycc_rgb_convert(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
69 JDIMENSION input_row, JSAMPARRAY output_buf,
70 int num_rows)
74 GLOBAL(void)
75 jsimd_ycc_rgb565_convert(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
76 JDIMENSION input_row, JSAMPARRAY output_buf,
77 int num_rows)
81 GLOBAL(void)
82 jsimd_c_null_convert(j_compress_ptr cinfo, JSAMPARRAY input_buf,
83 JSAMPIMAGE output_buf, JDIMENSION output_row,
84 int num_rows)
88 GLOBAL(int)
89 jsimd_can_h2v2_downsample(void)
91 return 0;
94 GLOBAL(int)
95 jsimd_can_h2v1_downsample(void)
97 return 0;
100 GLOBAL(int)
101 jsimd_can_h2v2_smooth_downsample(void)
103 return 0;
106 GLOBAL(void)
107 jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr,
108 JSAMPARRAY input_data, JSAMPARRAY output_data)
112 GLOBAL(void)
113 jsimd_h2v2_smooth_downsample(j_compress_ptr cinfo,
114 jpeg_component_info *compptr,
115 JSAMPARRAY input_data, JSAMPARRAY output_data)
119 GLOBAL(void)
120 jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr,
121 JSAMPARRAY input_data, JSAMPARRAY output_data)
125 GLOBAL(int)
126 jsimd_can_h2v2_upsample(void)
128 return 0;
131 GLOBAL(int)
132 jsimd_can_h2v1_upsample(void)
134 return 0;
137 GLOBAL(int)
138 jsimd_can_int_upsample(void)
140 return 0;
143 GLOBAL(void)
144 jsimd_int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
145 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
149 GLOBAL(void)
150 jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
151 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
155 GLOBAL(void)
156 jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
157 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
161 GLOBAL(int)
162 jsimd_can_h2v2_fancy_upsample(void)
164 return 0;
167 GLOBAL(int)
168 jsimd_can_h2v1_fancy_upsample(void)
170 return 0;
173 GLOBAL(int)
174 jsimd_can_h1v2_fancy_upsample(void)
176 return 0;
179 GLOBAL(void)
180 jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
181 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
185 GLOBAL(void)
186 jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
187 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
191 GLOBAL(void)
192 jsimd_h1v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
193 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
197 GLOBAL(int)
198 jsimd_can_h2v2_merged_upsample(void)
200 return 0;
203 GLOBAL(int)
204 jsimd_can_h2v1_merged_upsample(void)
206 return 0;
209 GLOBAL(void)
210 jsimd_h2v2_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
211 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
215 GLOBAL(void)
216 jsimd_h2v1_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
217 JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
221 GLOBAL(int)
222 jsimd_can_convsamp(void)
224 return 0;
227 GLOBAL(int)
228 jsimd_can_convsamp_float(void)
230 return 0;
233 GLOBAL(void)
234 jsimd_convsamp(JSAMPARRAY sample_data, JDIMENSION start_col,
235 DCTELEM *workspace)
239 GLOBAL(void)
240 jsimd_convsamp_float(JSAMPARRAY sample_data, JDIMENSION start_col,
241 FAST_FLOAT *workspace)
245 GLOBAL(int)
246 jsimd_can_fdct_islow(void)
248 return 0;
251 GLOBAL(int)
252 jsimd_can_fdct_ifast(void)
254 return 0;
257 GLOBAL(int)
258 jsimd_can_fdct_float(void)
260 return 0;
263 GLOBAL(void)
264 jsimd_fdct_islow(DCTELEM *data)
268 GLOBAL(void)
269 jsimd_fdct_ifast(DCTELEM *data)
273 GLOBAL(void)
274 jsimd_fdct_float(FAST_FLOAT *data)
278 GLOBAL(int)
279 jsimd_can_quantize(void)
281 return 0;
284 GLOBAL(int)
285 jsimd_can_quantize_float(void)
287 return 0;
290 GLOBAL(void)
291 jsimd_quantize(JCOEFPTR coef_block, DCTELEM *divisors, DCTELEM *workspace)
295 GLOBAL(void)
296 jsimd_quantize_float(JCOEFPTR coef_block, FAST_FLOAT *divisors,
297 FAST_FLOAT *workspace)
301 GLOBAL(int)
302 jsimd_can_idct_2x2(void)
304 return 0;
307 GLOBAL(int)
308 jsimd_can_idct_4x4(void)
310 return 0;
313 GLOBAL(int)
314 jsimd_can_idct_6x6(void)
316 return 0;
319 GLOBAL(int)
320 jsimd_can_idct_12x12(void)
322 return 0;
325 GLOBAL(void)
326 jsimd_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr,
327 JCOEFPTR coef_block, JSAMPARRAY output_buf,
328 JDIMENSION output_col)
332 GLOBAL(void)
333 jsimd_idct_4x4(j_decompress_ptr cinfo, jpeg_component_info *compptr,
334 JCOEFPTR coef_block, JSAMPARRAY output_buf,
335 JDIMENSION output_col)
339 GLOBAL(void)
340 jsimd_idct_6x6(j_decompress_ptr cinfo, jpeg_component_info *compptr,
341 JCOEFPTR coef_block, JSAMPARRAY output_buf,
342 JDIMENSION output_col)
346 GLOBAL(void)
347 jsimd_idct_12x12(j_decompress_ptr cinfo, jpeg_component_info *compptr,
348 JCOEFPTR coef_block, JSAMPARRAY output_buf,
349 JDIMENSION output_col)
353 GLOBAL(int)
354 jsimd_can_idct_islow(void)
356 return 0;
359 GLOBAL(int)
360 jsimd_can_idct_ifast(void)
362 return 0;
365 GLOBAL(int)
366 jsimd_can_idct_float(void)
368 return 0;
371 GLOBAL(void)
372 jsimd_idct_islow(j_decompress_ptr cinfo, jpeg_component_info *compptr,
373 JCOEFPTR coef_block, JSAMPARRAY output_buf,
374 JDIMENSION output_col)
378 GLOBAL(void)
379 jsimd_idct_ifast(j_decompress_ptr cinfo, jpeg_component_info *compptr,
380 JCOEFPTR coef_block, JSAMPARRAY output_buf,
381 JDIMENSION output_col)
385 GLOBAL(void)
386 jsimd_idct_float(j_decompress_ptr cinfo, jpeg_component_info *compptr,
387 JCOEFPTR coef_block, JSAMPARRAY output_buf,
388 JDIMENSION output_col)
392 GLOBAL(int)
393 jsimd_can_huff_encode_one_block(void)
395 return 0;
398 GLOBAL(JOCTET *)
399 jsimd_huff_encode_one_block(void *state, JOCTET *buffer, JCOEFPTR block,
400 int last_dc_val, c_derived_tbl *dctbl,
401 c_derived_tbl *actbl)
403 return NULL;
406 GLOBAL(int)
407 jsimd_can_encode_mcu_AC_first_prepare(void)
409 return 0;
412 GLOBAL(void)
413 jsimd_encode_mcu_AC_first_prepare(const JCOEF *block,
414 const int *jpeg_natural_order_start, int Sl,
415 int Al, UJCOEF *values, size_t *zerobits)
419 GLOBAL(int)
420 jsimd_can_encode_mcu_AC_refine_prepare(void)
422 return 0;
425 GLOBAL(int)
426 jsimd_encode_mcu_AC_refine_prepare(const JCOEF *block,
427 const int *jpeg_natural_order_start, int Sl,
428 int Al, UJCOEF *absvalues, size_t *bits)
430 return 0;