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