4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 * Copyright 2009-2011 D. R. Commander
7 * Based on the x86 SIMD extension for IJG JPEG library,
8 * Copyright (C) 1999-2006, MIYASAKA Masaru.
9 * For conditions of distribution and use, see copyright notice in jsimdext.inc
11 * This file contains stubs for when there is no SIMD support available.
14 #define JPEG_INTERNALS
22 jsimd_can_rgb_ycc (void)
28 jsimd_can_rgb_gray (void)
34 jsimd_can_ycc_rgb (void)
40 jsimd_rgb_ycc_convert (j_compress_ptr cinfo
,
41 JSAMPARRAY input_buf
, JSAMPIMAGE output_buf
,
42 JDIMENSION output_row
, int num_rows
)
47 jsimd_rgb_gray_convert (j_compress_ptr cinfo
,
48 JSAMPARRAY input_buf
, JSAMPIMAGE output_buf
,
49 JDIMENSION output_row
, int num_rows
)
54 jsimd_ycc_rgb_convert (j_decompress_ptr cinfo
,
55 JSAMPIMAGE input_buf
, JDIMENSION input_row
,
56 JSAMPARRAY output_buf
, int num_rows
)
61 jsimd_can_h2v2_downsample (void)
67 jsimd_can_h2v1_downsample (void)
73 jsimd_h2v2_downsample (j_compress_ptr cinfo
, jpeg_component_info
* compptr
,
74 JSAMPARRAY input_data
, JSAMPARRAY output_data
)
79 jsimd_h2v1_downsample (j_compress_ptr cinfo
, jpeg_component_info
* compptr
,
80 JSAMPARRAY input_data
, JSAMPARRAY output_data
)
85 jsimd_can_h2v2_upsample (void)
91 jsimd_can_h2v1_upsample (void)
97 jsimd_h2v2_upsample (j_decompress_ptr cinfo
,
98 jpeg_component_info
* compptr
,
99 JSAMPARRAY input_data
,
100 JSAMPARRAY
* output_data_ptr
)
105 jsimd_h2v1_upsample (j_decompress_ptr cinfo
,
106 jpeg_component_info
* compptr
,
107 JSAMPARRAY input_data
,
108 JSAMPARRAY
* output_data_ptr
)
113 jsimd_can_h2v2_fancy_upsample (void)
119 jsimd_can_h2v1_fancy_upsample (void)
125 jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo
,
126 jpeg_component_info
* compptr
,
127 JSAMPARRAY input_data
,
128 JSAMPARRAY
* output_data_ptr
)
133 jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo
,
134 jpeg_component_info
* compptr
,
135 JSAMPARRAY input_data
,
136 JSAMPARRAY
* output_data_ptr
)
141 jsimd_can_h2v2_merged_upsample (void)
147 jsimd_can_h2v1_merged_upsample (void)
153 jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo
,
154 JSAMPIMAGE input_buf
,
155 JDIMENSION in_row_group_ctr
,
156 JSAMPARRAY output_buf
)
161 jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo
,
162 JSAMPIMAGE input_buf
,
163 JDIMENSION in_row_group_ctr
,
164 JSAMPARRAY output_buf
)
169 jsimd_can_convsamp (void)
175 jsimd_can_convsamp_float (void)
181 jsimd_convsamp (JSAMPARRAY sample_data
, JDIMENSION start_col
,
187 jsimd_convsamp_float (JSAMPARRAY sample_data
, JDIMENSION start_col
,
188 FAST_FLOAT
* workspace
)
193 jsimd_can_fdct_islow (void)
199 jsimd_can_fdct_ifast (void)
205 jsimd_can_fdct_float (void)
211 jsimd_fdct_islow (DCTELEM
* data
)
216 jsimd_fdct_ifast (DCTELEM
* data
)
221 jsimd_fdct_float (FAST_FLOAT
* data
)
226 jsimd_can_quantize (void)
232 jsimd_can_quantize_float (void)
238 jsimd_quantize (JCOEFPTR coef_block
, DCTELEM
* divisors
,
244 jsimd_quantize_float (JCOEFPTR coef_block
, FAST_FLOAT
* divisors
,
245 FAST_FLOAT
* workspace
)
250 jsimd_can_idct_2x2 (void)
256 jsimd_can_idct_4x4 (void)
262 jsimd_idct_2x2 (j_decompress_ptr cinfo
, jpeg_component_info
* compptr
,
263 JCOEFPTR coef_block
, JSAMPARRAY output_buf
,
264 JDIMENSION output_col
)
269 jsimd_idct_4x4 (j_decompress_ptr cinfo
, jpeg_component_info
* compptr
,
270 JCOEFPTR coef_block
, JSAMPARRAY output_buf
,
271 JDIMENSION output_col
)
276 jsimd_can_idct_islow (void)
282 jsimd_can_idct_ifast (void)
288 jsimd_can_idct_float (void)
294 jsimd_idct_islow (j_decompress_ptr cinfo
, jpeg_component_info
* compptr
,
295 JCOEFPTR coef_block
, JSAMPARRAY output_buf
,
296 JDIMENSION output_col
)
301 jsimd_idct_ifast (j_decompress_ptr cinfo
, jpeg_component_info
* compptr
,
302 JCOEFPTR coef_block
, JSAMPARRAY output_buf
,
303 JDIMENSION output_col
)
308 jsimd_idct_float (j_decompress_ptr cinfo
, jpeg_component_info
* compptr
,
309 JCOEFPTR coef_block
, JSAMPARRAY output_buf
,
310 JDIMENSION output_col
)