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