Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: jsimd_none.c

Issue 1953443002: Update to libjpeg_turbo 1.4.90 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « jsimd.h ('k') | jsimddct.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * jsimd_none.c 2 * jsimd_none.c
3 * 3 *
4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB 4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
5 * Copyright 2009-2011, 2014 D. R. Commander 5 * Copyright 2009-2011, 2014 D. R. Commander
6 * 6 * Copyright 2015 Matthieu Darbois
7 *
7 * Based on the x86 SIMD extension for IJG JPEG library, 8 * Based on the x86 SIMD extension for IJG JPEG library,
8 * Copyright (C) 1999-2006, MIYASAKA Masaru. 9 * Copyright (C) 1999-2006, MIYASAKA Masaru.
9 * For conditions of distribution and use, see copyright notice in jsimdext.inc 10 * For conditions of distribution and use, see copyright notice in jsimdext.inc
10 * 11 *
11 * This file contains stubs for when there is no SIMD support available. 12 * This file contains stubs for when there is no SIMD support available.
12 */ 13 */
13 14
14 #define JPEG_INTERNALS 15 #define JPEG_INTERNALS
15 #include "jinclude.h" 16 #include "jinclude.h"
16 #include "jpeglib.h" 17 #include "jpeglib.h"
(...skipping 18 matching lines...) Expand all
35 { 36 {
36 return 0; 37 return 0;
37 } 38 }
38 39
39 GLOBAL(int) 40 GLOBAL(int)
40 jsimd_can_ycc_rgb565 (void) 41 jsimd_can_ycc_rgb565 (void)
41 { 42 {
42 return 0; 43 return 0;
43 } 44 }
44 45
46 GLOBAL(int)
47 jsimd_c_can_null_convert (void)
48 {
49 return 0;
50 }
51
45 GLOBAL(void) 52 GLOBAL(void)
46 jsimd_rgb_ycc_convert (j_compress_ptr cinfo, 53 jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
47 JSAMPARRAY input_buf, JSAMPIMAGE output_buf, 54 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
48 JDIMENSION output_row, int num_rows) 55 JDIMENSION output_row, int num_rows)
49 { 56 {
50 } 57 }
51 58
52 GLOBAL(void) 59 GLOBAL(void)
53 jsimd_rgb_gray_convert (j_compress_ptr cinfo, 60 jsimd_rgb_gray_convert (j_compress_ptr cinfo,
54 JSAMPARRAY input_buf, JSAMPIMAGE output_buf, 61 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
55 JDIMENSION output_row, int num_rows) 62 JDIMENSION output_row, int num_rows)
56 { 63 {
57 } 64 }
58 65
59 GLOBAL(void) 66 GLOBAL(void)
60 jsimd_ycc_rgb_convert (j_decompress_ptr cinfo, 67 jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
61 JSAMPIMAGE input_buf, JDIMENSION input_row, 68 JSAMPIMAGE input_buf, JDIMENSION input_row,
62 JSAMPARRAY output_buf, int num_rows) 69 JSAMPARRAY output_buf, int num_rows)
63 { 70 {
64 } 71 }
65 72
66 GLOBAL(void) 73 GLOBAL(void)
67 jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo, 74 jsimd_ycc_rgb565_convert (j_decompress_ptr cinfo,
68 JSAMPIMAGE input_buf, JDIMENSION input_row, 75 JSAMPIMAGE input_buf, JDIMENSION input_row,
69 JSAMPARRAY output_buf, int num_rows) 76 JSAMPARRAY output_buf, int num_rows)
70 { 77 {
71 } 78 }
72 79
80 GLOBAL(void)
81 jsimd_c_null_convert (j_compress_ptr cinfo,
82 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
83 JDIMENSION output_row, int num_rows)
84 {
85 }
86
73 GLOBAL(int) 87 GLOBAL(int)
74 jsimd_can_h2v2_downsample (void) 88 jsimd_can_h2v2_downsample (void)
75 { 89 {
76 return 0; 90 return 0;
77 } 91 }
78 92
79 GLOBAL(int) 93 GLOBAL(int)
80 jsimd_can_h2v1_downsample (void) 94 jsimd_can_h2v1_downsample (void)
81 { 95 {
82 return 0; 96 return 0;
83 } 97 }
84 98
99 GLOBAL(int)
100 jsimd_can_h2v2_smooth_downsample (void)
101 {
102 return 0;
103 }
104
85 GLOBAL(void) 105 GLOBAL(void)
86 jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, 106 jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info *compptr,
87 JSAMPARRAY input_data, JSAMPARRAY output_data) 107 JSAMPARRAY input_data, JSAMPARRAY output_data)
88 { 108 {
89 } 109 }
90 110
91 GLOBAL(void) 111 GLOBAL(void)
92 jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr, 112 jsimd_h2v2_smooth_downsample (j_compress_ptr cinfo,
113 jpeg_component_info *compptr,
114 JSAMPARRAY input_data, JSAMPARRAY output_data)
115 {
116 }
117
118 GLOBAL(void)
119 jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info *compptr,
93 JSAMPARRAY input_data, JSAMPARRAY output_data) 120 JSAMPARRAY input_data, JSAMPARRAY output_data)
94 { 121 {
95 } 122 }
96 123
97 GLOBAL(int) 124 GLOBAL(int)
98 jsimd_can_h2v2_upsample (void) 125 jsimd_can_h2v2_upsample (void)
99 { 126 {
100 return 0; 127 return 0;
101 } 128 }
102 129
103 GLOBAL(int) 130 GLOBAL(int)
104 jsimd_can_h2v1_upsample (void) 131 jsimd_can_h2v1_upsample (void)
105 { 132 {
106 return 0; 133 return 0;
107 } 134 }
108 135
136 GLOBAL(int)
137 jsimd_can_int_upsample (void)
138 {
139 return 0;
140 }
141
109 GLOBAL(void) 142 GLOBAL(void)
143 jsimd_int_upsample (j_decompress_ptr cinfo, jpeg_component_info *compptr,
144 JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
145 {
146 }
147
148 GLOBAL(void)
110 jsimd_h2v2_upsample (j_decompress_ptr cinfo, 149 jsimd_h2v2_upsample (j_decompress_ptr cinfo,
111 jpeg_component_info * compptr, 150 jpeg_component_info *compptr,
112 JSAMPARRAY input_data, 151 JSAMPARRAY input_data,
113 JSAMPARRAY * output_data_ptr) 152 JSAMPARRAY *output_data_ptr)
114 { 153 {
115 } 154 }
116 155
117 GLOBAL(void) 156 GLOBAL(void)
118 jsimd_h2v1_upsample (j_decompress_ptr cinfo, 157 jsimd_h2v1_upsample (j_decompress_ptr cinfo,
119 jpeg_component_info * compptr, 158 jpeg_component_info *compptr,
120 JSAMPARRAY input_data, 159 JSAMPARRAY input_data,
121 JSAMPARRAY * output_data_ptr) 160 JSAMPARRAY *output_data_ptr)
122 { 161 {
123 } 162 }
124 163
125 GLOBAL(int) 164 GLOBAL(int)
126 jsimd_can_h2v2_fancy_upsample (void) 165 jsimd_can_h2v2_fancy_upsample (void)
127 { 166 {
128 return 0; 167 return 0;
129 } 168 }
130 169
131 GLOBAL(int) 170 GLOBAL(int)
132 jsimd_can_h2v1_fancy_upsample (void) 171 jsimd_can_h2v1_fancy_upsample (void)
133 { 172 {
134 return 0; 173 return 0;
135 } 174 }
136 175
137 GLOBAL(void) 176 GLOBAL(void)
138 jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo, 177 jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
139 jpeg_component_info * compptr, 178 jpeg_component_info *compptr,
140 JSAMPARRAY input_data, 179 JSAMPARRAY input_data,
141 JSAMPARRAY * output_data_ptr) 180 JSAMPARRAY *output_data_ptr)
142 { 181 {
143 } 182 }
144 183
145 GLOBAL(void) 184 GLOBAL(void)
146 jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo, 185 jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
147 jpeg_component_info * compptr, 186 jpeg_component_info *compptr,
148 JSAMPARRAY input_data, 187 JSAMPARRAY input_data,
149 JSAMPARRAY * output_data_ptr) 188 JSAMPARRAY *output_data_ptr)
150 { 189 {
151 } 190 }
152 191
153 GLOBAL(int) 192 GLOBAL(int)
154 jsimd_can_h2v2_merged_upsample (void) 193 jsimd_can_h2v2_merged_upsample (void)
155 { 194 {
156 return 0; 195 return 0;
157 } 196 }
158 197
159 GLOBAL(int) 198 GLOBAL(int)
(...skipping 25 matching lines...) Expand all
185 } 224 }
186 225
187 GLOBAL(int) 226 GLOBAL(int)
188 jsimd_can_convsamp_float (void) 227 jsimd_can_convsamp_float (void)
189 { 228 {
190 return 0; 229 return 0;
191 } 230 }
192 231
193 GLOBAL(void) 232 GLOBAL(void)
194 jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col, 233 jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
195 DCTELEM * workspace) 234 DCTELEM *workspace)
196 { 235 {
197 } 236 }
198 237
199 GLOBAL(void) 238 GLOBAL(void)
200 jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col, 239 jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
201 FAST_FLOAT * workspace) 240 FAST_FLOAT *workspace)
202 { 241 {
203 } 242 }
204 243
205 GLOBAL(int) 244 GLOBAL(int)
206 jsimd_can_fdct_islow (void) 245 jsimd_can_fdct_islow (void)
207 { 246 {
208 return 0; 247 return 0;
209 } 248 }
210 249
211 GLOBAL(int) 250 GLOBAL(int)
212 jsimd_can_fdct_ifast (void) 251 jsimd_can_fdct_ifast (void)
213 { 252 {
214 return 0; 253 return 0;
215 } 254 }
216 255
217 GLOBAL(int) 256 GLOBAL(int)
218 jsimd_can_fdct_float (void) 257 jsimd_can_fdct_float (void)
219 { 258 {
220 return 0; 259 return 0;
221 } 260 }
222 261
223 GLOBAL(void) 262 GLOBAL(void)
224 jsimd_fdct_islow (DCTELEM * data) 263 jsimd_fdct_islow (DCTELEM *data)
225 { 264 {
226 } 265 }
227 266
228 GLOBAL(void) 267 GLOBAL(void)
229 jsimd_fdct_ifast (DCTELEM * data) 268 jsimd_fdct_ifast (DCTELEM *data)
230 { 269 {
231 } 270 }
232 271
233 GLOBAL(void) 272 GLOBAL(void)
234 jsimd_fdct_float (FAST_FLOAT * data) 273 jsimd_fdct_float (FAST_FLOAT *data)
235 { 274 {
236 } 275 }
237 276
238 GLOBAL(int) 277 GLOBAL(int)
239 jsimd_can_quantize (void) 278 jsimd_can_quantize (void)
240 { 279 {
241 return 0; 280 return 0;
242 } 281 }
243 282
244 GLOBAL(int) 283 GLOBAL(int)
245 jsimd_can_quantize_float (void) 284 jsimd_can_quantize_float (void)
246 { 285 {
247 return 0; 286 return 0;
248 } 287 }
249 288
250 GLOBAL(void) 289 GLOBAL(void)
251 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, 290 jsimd_quantize (JCOEFPTR coef_block, DCTELEM *divisors,
252 DCTELEM * workspace) 291 DCTELEM *workspace)
253 { 292 {
254 } 293 }
255 294
256 GLOBAL(void) 295 GLOBAL(void)
257 jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors, 296 jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT *divisors,
258 FAST_FLOAT * workspace) 297 FAST_FLOAT *workspace)
259 { 298 {
260 } 299 }
261 300
262 GLOBAL(int) 301 GLOBAL(int)
263 jsimd_can_idct_2x2 (void) 302 jsimd_can_idct_2x2 (void)
264 { 303 {
265 return 0; 304 return 0;
266 } 305 }
267 306
268 GLOBAL(int) 307 GLOBAL(int)
269 jsimd_can_idct_4x4 (void) 308 jsimd_can_idct_4x4 (void)
270 { 309 {
271 return 0; 310 return 0;
272 } 311 }
273 312
313 GLOBAL(int)
314 jsimd_can_idct_6x6 (void)
315 {
316 return 0;
317 }
318
319 GLOBAL(int)
320 jsimd_can_idct_12x12 (void)
321 {
322 return 0;
323 }
324
274 GLOBAL(void) 325 GLOBAL(void)
275 jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 326 jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
276 JCOEFPTR coef_block, JSAMPARRAY output_buf, 327 JCOEFPTR coef_block, JSAMPARRAY output_buf,
277 JDIMENSION output_col) 328 JDIMENSION output_col)
278 { 329 {
279 } 330 }
280 331
281 GLOBAL(void) 332 GLOBAL(void)
282 jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr, 333 jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
283 JCOEFPTR coef_block, JSAMPARRAY output_buf, 334 JCOEFPTR coef_block, JSAMPARRAY output_buf,
284 JDIMENSION output_col) 335 JDIMENSION output_col)
285 { 336 {
286 } 337 }
287 338
339 GLOBAL(void)
340 jsimd_idct_6x6 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
341 JCOEFPTR coef_block, JSAMPARRAY output_buf,
342 JDIMENSION output_col)
343 {
344 }
345
346 GLOBAL(void)
347 jsimd_idct_12x12 (j_decompress_ptr cinfo, jpeg_component_info *compptr,
348 JCOEFPTR coef_block, JSAMPARRAY output_buf,
349 JDIMENSION output_col)
350 {
351 }
352
288 GLOBAL(int) 353 GLOBAL(int)
289 jsimd_can_idct_islow (void) 354 jsimd_can_idct_islow (void)
290 { 355 {
291 return 0; 356 return 0;
292 } 357 }
293 358
294 GLOBAL(int) 359 GLOBAL(int)
295 jsimd_can_idct_ifast (void) 360 jsimd_can_idct_ifast (void)
296 { 361 {
297 return 0; 362 return 0;
298 } 363 }
299 364
300 GLOBAL(int) 365 GLOBAL(int)
301 jsimd_can_idct_float (void) 366 jsimd_can_idct_float (void)
302 { 367 {
303 return 0; 368 return 0;
304 } 369 }
305 370
306 GLOBAL(void) 371 GLOBAL(void)
307 jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr, 372 jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info *compptr,
308 JCOEFPTR coef_block, JSAMPARRAY output_buf, 373 JCOEFPTR coef_block, JSAMPARRAY output_buf,
309 JDIMENSION output_col) 374 JDIMENSION output_col)
310 { 375 {
311 } 376 }
312 377
313 GLOBAL(void) 378 GLOBAL(void)
314 jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr, 379 jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info *compptr,
315 JCOEFPTR coef_block, JSAMPARRAY output_buf, 380 JCOEFPTR coef_block, JSAMPARRAY output_buf,
316 JDIMENSION output_col) 381 JDIMENSION output_col)
317 { 382 {
318 } 383 }
319 384
320 GLOBAL(void) 385 GLOBAL(void)
321 jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr, 386 jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info *compptr,
322 JCOEFPTR coef_block, JSAMPARRAY output_buf, 387 JCOEFPTR coef_block, JSAMPARRAY output_buf,
323 JDIMENSION output_col) 388 JDIMENSION output_col)
324 { 389 {
325 } 390 }
326 391
392 GLOBAL(int)
393 jsimd_can_huff_encode_one_block (void)
394 {
395 return 0;
396 }
397
398 GLOBAL(JOCTET*)
399 jsimd_huff_encode_one_block (void *state, JOCTET *buffer, JCOEFPTR block,
400 int last_dc_val, c_derived_tbl *dctbl,
401 c_derived_tbl *actbl)
402 {
403 return NULL;
404 }
OLDNEW
« no previous file with comments | « jsimd.h ('k') | jsimddct.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698