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