Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * jsimd_none.c |
| 3 | * |
| 4 | * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB |
DRC | 392e048 | 2011-02-18 20:43:04 +0000 | [diff] [blame] | 5 | * Copyright 2009-2011 D. R. Commander |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 6 | * |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 7 | * Based on the x86 SIMD extension for IJG JPEG library, |
| 8 | * Copyright (C) 1999-2006, MIYASAKA Masaru. |
DRC | af1ca9b | 2011-02-02 05:42:37 +0000 | [diff] [blame] | 9 | * For conditions of distribution and use, see copyright notice in jsimdext.inc |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 10 | * |
| 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 | |
| 21 | GLOBAL(int) |
| 22 | jsimd_can_rgb_ycc (void) |
| 23 | { |
| 24 | return 0; |
| 25 | } |
| 26 | |
| 27 | GLOBAL(int) |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame] | 28 | jsimd_can_rgb_gray (void) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | GLOBAL(int) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 34 | jsimd_can_ycc_rgb (void) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
DRC | 1b3fd7e | 2014-05-15 18:26:01 +0000 | [diff] [blame] | 39 | GLOBAL(int) |
| 40 | jsimd_c_can_null_convert (void) |
| 41 | { |
| 42 | return 0; |
| 43 | } |
| 44 | |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 45 | GLOBAL(void) |
| 46 | jsimd_rgb_ycc_convert (j_compress_ptr cinfo, |
| 47 | JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
| 48 | JDIMENSION output_row, int num_rows) |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | GLOBAL(void) |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame] | 53 | jsimd_rgb_gray_convert (j_compress_ptr cinfo, |
| 54 | JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
| 55 | JDIMENSION output_row, int num_rows) |
| 56 | { |
| 57 | } |
| 58 | |
| 59 | GLOBAL(void) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 60 | jsimd_ycc_rgb_convert (j_decompress_ptr cinfo, |
| 61 | JSAMPIMAGE input_buf, JDIMENSION input_row, |
| 62 | JSAMPARRAY output_buf, int num_rows) |
| 63 | { |
| 64 | } |
| 65 | |
DRC | 1b3fd7e | 2014-05-15 18:26:01 +0000 | [diff] [blame] | 66 | GLOBAL(void) |
| 67 | jsimd_c_null_convert (j_compress_ptr cinfo, |
| 68 | JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
| 69 | JDIMENSION output_row, int num_rows) |
| 70 | { |
| 71 | } |
| 72 | |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 73 | GLOBAL(int) |
| 74 | jsimd_can_h2v2_downsample (void) |
| 75 | { |
| 76 | return 0; |
| 77 | } |
| 78 | |
| 79 | GLOBAL(int) |
| 80 | jsimd_can_h2v1_downsample (void) |
| 81 | { |
| 82 | return 0; |
| 83 | } |
| 84 | |
DRC | 6a61c1e | 2014-05-14 15:00:10 +0000 | [diff] [blame] | 85 | GLOBAL(int) |
| 86 | jsimd_can_h2v2_smooth_downsample (void) |
| 87 | { |
| 88 | return 0; |
| 89 | } |
| 90 | |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 91 | GLOBAL(void) |
| 92 | jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 93 | JSAMPARRAY input_data, JSAMPARRAY output_data) |
| 94 | { |
| 95 | } |
| 96 | |
| 97 | GLOBAL(void) |
DRC | 6a61c1e | 2014-05-14 15:00:10 +0000 | [diff] [blame] | 98 | jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 99 | JSAMPARRAY input_data, JSAMPARRAY output_data) |
| 100 | { |
| 101 | } |
| 102 | |
| 103 | GLOBAL(void) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 104 | jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 105 | JSAMPARRAY input_data, JSAMPARRAY output_data) |
| 106 | { |
| 107 | } |
| 108 | |
| 109 | GLOBAL(int) |
| 110 | jsimd_can_h2v2_upsample (void) |
| 111 | { |
| 112 | return 0; |
| 113 | } |
| 114 | |
| 115 | GLOBAL(int) |
| 116 | jsimd_can_h2v1_upsample (void) |
| 117 | { |
| 118 | return 0; |
| 119 | } |
| 120 | |
DRC | 5ef4630 | 2014-05-18 20:04:47 +0000 | [diff] [blame^] | 121 | GLOBAL(int) |
| 122 | jsimd_can_int_upsample (void) |
| 123 | { |
| 124 | return 0; |
| 125 | } |
| 126 | |
| 127 | GLOBAL(void) |
| 128 | jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 129 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr) |
| 130 | { |
| 131 | } |
| 132 | |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 133 | GLOBAL(void) |
| 134 | jsimd_h2v2_upsample (j_decompress_ptr cinfo, |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 135 | jpeg_component_info * compptr, |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 136 | JSAMPARRAY input_data, |
| 137 | JSAMPARRAY * output_data_ptr) |
| 138 | { |
| 139 | } |
| 140 | |
| 141 | GLOBAL(void) |
| 142 | jsimd_h2v1_upsample (j_decompress_ptr cinfo, |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 143 | jpeg_component_info * compptr, |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 144 | JSAMPARRAY input_data, |
| 145 | JSAMPARRAY * output_data_ptr) |
| 146 | { |
| 147 | } |
| 148 | |
| 149 | GLOBAL(int) |
| 150 | jsimd_can_h2v2_fancy_upsample (void) |
| 151 | { |
| 152 | return 0; |
| 153 | } |
| 154 | |
| 155 | GLOBAL(int) |
| 156 | jsimd_can_h2v1_fancy_upsample (void) |
| 157 | { |
| 158 | return 0; |
| 159 | } |
| 160 | |
| 161 | GLOBAL(void) |
| 162 | jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo, |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 163 | jpeg_component_info * compptr, |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 164 | JSAMPARRAY input_data, |
| 165 | JSAMPARRAY * output_data_ptr) |
| 166 | { |
| 167 | } |
| 168 | |
| 169 | GLOBAL(void) |
| 170 | jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo, |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 171 | jpeg_component_info * compptr, |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 172 | JSAMPARRAY input_data, |
| 173 | JSAMPARRAY * output_data_ptr) |
| 174 | { |
| 175 | } |
| 176 | |
| 177 | GLOBAL(int) |
| 178 | jsimd_can_h2v2_merged_upsample (void) |
| 179 | { |
| 180 | return 0; |
| 181 | } |
| 182 | |
| 183 | GLOBAL(int) |
| 184 | jsimd_can_h2v1_merged_upsample (void) |
| 185 | { |
| 186 | return 0; |
| 187 | } |
| 188 | |
| 189 | GLOBAL(void) |
| 190 | jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo, |
| 191 | JSAMPIMAGE input_buf, |
| 192 | JDIMENSION in_row_group_ctr, |
| 193 | JSAMPARRAY output_buf) |
| 194 | { |
| 195 | } |
| 196 | |
| 197 | GLOBAL(void) |
| 198 | jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo, |
| 199 | JSAMPIMAGE input_buf, |
| 200 | JDIMENSION in_row_group_ctr, |
| 201 | JSAMPARRAY output_buf) |
| 202 | { |
| 203 | } |
| 204 | |
| 205 | GLOBAL(int) |
| 206 | jsimd_can_convsamp (void) |
| 207 | { |
| 208 | return 0; |
| 209 | } |
| 210 | |
| 211 | GLOBAL(int) |
| 212 | jsimd_can_convsamp_float (void) |
| 213 | { |
| 214 | return 0; |
| 215 | } |
| 216 | |
| 217 | GLOBAL(void) |
| 218 | jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col, |
| 219 | DCTELEM * workspace) |
| 220 | { |
| 221 | } |
| 222 | |
| 223 | GLOBAL(void) |
| 224 | jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col, |
| 225 | FAST_FLOAT * workspace) |
| 226 | { |
| 227 | } |
| 228 | |
| 229 | GLOBAL(int) |
| 230 | jsimd_can_fdct_islow (void) |
| 231 | { |
| 232 | return 0; |
| 233 | } |
| 234 | |
| 235 | GLOBAL(int) |
| 236 | jsimd_can_fdct_ifast (void) |
| 237 | { |
| 238 | return 0; |
| 239 | } |
| 240 | |
| 241 | GLOBAL(int) |
| 242 | jsimd_can_fdct_float (void) |
| 243 | { |
| 244 | return 0; |
| 245 | } |
| 246 | |
| 247 | GLOBAL(void) |
| 248 | jsimd_fdct_islow (DCTELEM * data) |
| 249 | { |
| 250 | } |
| 251 | |
| 252 | GLOBAL(void) |
| 253 | jsimd_fdct_ifast (DCTELEM * data) |
| 254 | { |
| 255 | } |
| 256 | |
| 257 | GLOBAL(void) |
| 258 | jsimd_fdct_float (FAST_FLOAT * data) |
| 259 | { |
| 260 | } |
| 261 | |
| 262 | GLOBAL(int) |
| 263 | jsimd_can_quantize (void) |
| 264 | { |
| 265 | return 0; |
| 266 | } |
| 267 | |
| 268 | GLOBAL(int) |
| 269 | jsimd_can_quantize_float (void) |
| 270 | { |
| 271 | return 0; |
| 272 | } |
| 273 | |
| 274 | GLOBAL(void) |
| 275 | jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, |
| 276 | DCTELEM * workspace) |
| 277 | { |
| 278 | } |
| 279 | |
| 280 | GLOBAL(void) |
| 281 | jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors, |
| 282 | FAST_FLOAT * workspace) |
| 283 | { |
| 284 | } |
| 285 | |
| 286 | GLOBAL(int) |
| 287 | jsimd_can_idct_2x2 (void) |
| 288 | { |
| 289 | return 0; |
| 290 | } |
| 291 | |
| 292 | GLOBAL(int) |
| 293 | jsimd_can_idct_4x4 (void) |
| 294 | { |
| 295 | return 0; |
| 296 | } |
| 297 | |
DRC | e500591 | 2013-09-27 17:51:08 +0000 | [diff] [blame] | 298 | GLOBAL(int) |
| 299 | jsimd_can_idct_6x6 (void) |
| 300 | { |
| 301 | return 0; |
| 302 | } |
| 303 | |
| 304 | GLOBAL(int) |
| 305 | jsimd_can_idct_12x12 (void) |
| 306 | { |
| 307 | return 0; |
| 308 | } |
| 309 | |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 310 | GLOBAL(void) |
| 311 | jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 312 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 313 | JDIMENSION output_col) |
| 314 | { |
| 315 | } |
| 316 | |
| 317 | GLOBAL(void) |
| 318 | jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 319 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 320 | JDIMENSION output_col) |
| 321 | { |
| 322 | } |
| 323 | |
DRC | e500591 | 2013-09-27 17:51:08 +0000 | [diff] [blame] | 324 | GLOBAL(void) |
| 325 | jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 326 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 327 | JDIMENSION output_col) |
| 328 | { |
| 329 | } |
| 330 | |
| 331 | GLOBAL(void) |
| 332 | jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 333 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 334 | JDIMENSION output_col) |
| 335 | { |
| 336 | } |
| 337 | |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 338 | GLOBAL(int) |
| 339 | jsimd_can_idct_islow (void) |
| 340 | { |
| 341 | return 0; |
| 342 | } |
| 343 | |
| 344 | GLOBAL(int) |
| 345 | jsimd_can_idct_ifast (void) |
| 346 | { |
| 347 | return 0; |
| 348 | } |
| 349 | |
| 350 | GLOBAL(int) |
| 351 | jsimd_can_idct_float (void) |
| 352 | { |
| 353 | return 0; |
| 354 | } |
| 355 | |
| 356 | GLOBAL(void) |
| 357 | jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
DRC | 1419852 | 2014-05-15 19:45:11 +0000 | [diff] [blame] | 358 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 359 | JDIMENSION output_col) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 360 | { |
| 361 | } |
| 362 | |
| 363 | GLOBAL(void) |
| 364 | jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
DRC | 1419852 | 2014-05-15 19:45:11 +0000 | [diff] [blame] | 365 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 366 | JDIMENSION output_col) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 367 | { |
| 368 | } |
| 369 | |
| 370 | GLOBAL(void) |
| 371 | jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
DRC | 1419852 | 2014-05-15 19:45:11 +0000 | [diff] [blame] | 372 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 373 | JDIMENSION output_col) |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 374 | { |
| 375 | } |
| 376 | |