Coverage Report

Created: 2024-05-20 07:14

/src/skia/third_party/externals/libjpeg-turbo/jsimd_none.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * jsimd_none.c
3
 *
4
 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
5
 * Copyright (C) 2009-2011, 2014, D. R. Commander.
6
 * Copyright (C) 2015-2016, 2018, Matthieu Darbois.
7
 * Copyright (C) 2020, Arm Limited.
8
 *
9
 * Based on the x86 SIMD extension for IJG JPEG library,
10
 * Copyright (C) 1999-2006, MIYASAKA Masaru.
11
 * For conditions of distribution and use, see copyright notice in jsimdext.inc
12
 *
13
 * This file contains stubs for when there is no SIMD support available.
14
 */
15
16
#define JPEG_INTERNALS
17
#include "jinclude.h"
18
#include "jpeglib.h"
19
#include "jsimd.h"
20
#include "jdct.h"
21
#include "jsimddct.h"
22
23
GLOBAL(int)
24
jsimd_can_rgb_ycc(void)
25
4.67k
{
26
4.67k
  return 0;
27
4.67k
}
28
29
GLOBAL(int)
30
jsimd_can_rgb_gray(void)
31
0
{
32
0
  return 0;
33
0
}
34
35
GLOBAL(int)
36
jsimd_can_ycc_rgb(void)
37
6.48k
{
38
6.48k
  return 0;
39
6.48k
}
40
41
GLOBAL(int)
42
jsimd_can_ycc_rgb565(void)
43
0
{
44
0
  return 0;
45
0
}
46
47
GLOBAL(int)
48
jsimd_c_can_null_convert(void)
49
0
{
50
0
  return 0;
51
0
}
52
53
GLOBAL(void)
54
jsimd_rgb_ycc_convert(j_compress_ptr cinfo, JSAMPARRAY input_buf,
55
                      JSAMPIMAGE output_buf, JDIMENSION output_row,
56
                      int num_rows)
57
0
{
58
0
}
59
60
GLOBAL(void)
61
jsimd_rgb_gray_convert(j_compress_ptr cinfo, JSAMPARRAY input_buf,
62
                       JSAMPIMAGE output_buf, JDIMENSION output_row,
63
                       int num_rows)
64
0
{
65
0
}
66
67
GLOBAL(void)
68
jsimd_ycc_rgb_convert(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
69
                      JDIMENSION input_row, JSAMPARRAY output_buf,
70
                      int num_rows)
71
0
{
72
0
}
73
74
GLOBAL(void)
75
jsimd_ycc_rgb565_convert(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
76
                         JDIMENSION input_row, JSAMPARRAY output_buf,
77
                         int num_rows)
78
0
{
79
0
}
80
81
GLOBAL(void)
82
jsimd_c_null_convert(j_compress_ptr cinfo, JSAMPARRAY input_buf,
83
                     JSAMPIMAGE output_buf, JDIMENSION output_row,
84
                     int num_rows)
85
0
{
86
0
}
87
88
GLOBAL(int)
89
jsimd_can_h2v2_downsample(void)
90
9.35k
{
91
9.35k
  return 0;
92
9.35k
}
93
94
GLOBAL(int)
95
jsimd_can_h2v1_downsample(void)
96
0
{
97
0
  return 0;
98
0
}
99
100
GLOBAL(int)
101
jsimd_can_h2v2_smooth_downsample(void)
102
0
{
103
0
  return 0;
104
0
}
105
106
GLOBAL(void)
107
jsimd_h2v2_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr,
108
                      JSAMPARRAY input_data, JSAMPARRAY output_data)
109
0
{
110
0
}
111
112
GLOBAL(void)
113
jsimd_h2v2_smooth_downsample(j_compress_ptr cinfo,
114
                             jpeg_component_info *compptr,
115
                             JSAMPARRAY input_data, JSAMPARRAY output_data)
116
0
{
117
0
}
118
119
GLOBAL(void)
120
jsimd_h2v1_downsample(j_compress_ptr cinfo, jpeg_component_info *compptr,
121
                      JSAMPARRAY input_data, JSAMPARRAY output_data)
122
0
{
123
0
}
124
125
GLOBAL(int)
126
jsimd_can_h2v2_upsample(void)
127
245
{
128
245
  return 0;
129
245
}
130
131
GLOBAL(int)
132
jsimd_can_h2v1_upsample(void)
133
994
{
134
994
  return 0;
135
994
}
136
137
GLOBAL(int)
138
jsimd_can_int_upsample(void)
139
0
{
140
0
  return 0;
141
0
}
142
143
GLOBAL(void)
144
jsimd_int_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
145
                   JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
146
0
{
147
0
}
148
149
GLOBAL(void)
150
jsimd_h2v2_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
151
                    JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
152
0
{
153
0
}
154
155
GLOBAL(void)
156
jsimd_h2v1_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
157
                    JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
158
0
{
159
0
}
160
161
GLOBAL(int)
162
jsimd_can_h2v2_fancy_upsample(void)
163
2.59k
{
164
2.59k
  return 0;
165
2.59k
}
166
167
GLOBAL(int)
168
jsimd_can_h2v1_fancy_upsample(void)
169
4.05k
{
170
4.05k
  return 0;
171
4.05k
}
172
173
GLOBAL(int)
174
jsimd_can_h1v2_fancy_upsample(void)
175
0
{
176
0
  return 0;
177
0
}
178
179
GLOBAL(void)
180
jsimd_h2v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
181
                          JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
182
0
{
183
0
}
184
185
GLOBAL(void)
186
jsimd_h2v1_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
187
                          JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
188
0
{
189
0
}
190
191
GLOBAL(void)
192
jsimd_h1v2_fancy_upsample(j_decompress_ptr cinfo, jpeg_component_info *compptr,
193
                          JSAMPARRAY input_data, JSAMPARRAY *output_data_ptr)
194
0
{
195
0
}
196
197
GLOBAL(int)
198
jsimd_can_h2v2_merged_upsample(void)
199
0
{
200
0
  return 0;
201
0
}
202
203
GLOBAL(int)
204
jsimd_can_h2v1_merged_upsample(void)
205
0
{
206
0
  return 0;
207
0
}
208
209
GLOBAL(void)
210
jsimd_h2v2_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
211
                           JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
212
0
{
213
0
}
214
215
GLOBAL(void)
216
jsimd_h2v1_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
217
                           JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
218
0
{
219
0
}
220
221
GLOBAL(int)
222
jsimd_can_convsamp(void)
223
4.67k
{
224
4.67k
  return 0;
225
4.67k
}
226
227
GLOBAL(int)
228
jsimd_can_convsamp_float(void)
229
0
{
230
0
  return 0;
231
0
}
232
233
GLOBAL(void)
234
jsimd_convsamp(JSAMPARRAY sample_data, JDIMENSION start_col,
235
               DCTELEM *workspace)
236
0
{
237
0
}
238
239
GLOBAL(void)
240
jsimd_convsamp_float(JSAMPARRAY sample_data, JDIMENSION start_col,
241
                     FAST_FLOAT *workspace)
242
0
{
243
0
}
244
245
GLOBAL(int)
246
jsimd_can_fdct_islow(void)
247
4.67k
{
248
4.67k
  return 0;
249
4.67k
}
250
251
GLOBAL(int)
252
jsimd_can_fdct_ifast(void)
253
0
{
254
0
  return 0;
255
0
}
256
257
GLOBAL(int)
258
jsimd_can_fdct_float(void)
259
0
{
260
0
  return 0;
261
0
}
262
263
GLOBAL(void)
264
jsimd_fdct_islow(DCTELEM *data)
265
0
{
266
0
}
267
268
GLOBAL(void)
269
jsimd_fdct_ifast(DCTELEM *data)
270
0
{
271
0
}
272
273
GLOBAL(void)
274
jsimd_fdct_float(FAST_FLOAT *data)
275
0
{
276
0
}
277
278
GLOBAL(int)
279
jsimd_can_quantize(void)
280
4.67k
{
281
4.67k
  return 0;
282
4.67k
}
283
284
GLOBAL(int)
285
jsimd_can_quantize_float(void)
286
0
{
287
0
  return 0;
288
0
}
289
290
GLOBAL(void)
291
jsimd_quantize(JCOEFPTR coef_block, DCTELEM *divisors, DCTELEM *workspace)
292
0
{
293
0
}
294
295
GLOBAL(void)
296
jsimd_quantize_float(JCOEFPTR coef_block, FAST_FLOAT *divisors,
297
                     FAST_FLOAT *workspace)
298
0
{
299
0
}
300
301
GLOBAL(int)
302
jsimd_can_idct_2x2(void)
303
574
{
304
574
  return 0;
305
574
}
306
307
GLOBAL(int)
308
jsimd_can_idct_4x4(void)
309
4.90k
{
310
4.90k
  return 0;
311
4.90k
}
312
313
GLOBAL(int)
314
jsimd_can_idct_6x6(void)
315
0
{
316
0
  return 0;
317
0
}
318
319
GLOBAL(int)
320
jsimd_can_idct_12x12(void)
321
0
{
322
0
  return 0;
323
0
}
324
325
GLOBAL(void)
326
jsimd_idct_2x2(j_decompress_ptr cinfo, jpeg_component_info *compptr,
327
               JCOEFPTR coef_block, JSAMPARRAY output_buf,
328
               JDIMENSION output_col)
329
0
{
330
0
}
331
332
GLOBAL(void)
333
jsimd_idct_4x4(j_decompress_ptr cinfo, jpeg_component_info *compptr,
334
               JCOEFPTR coef_block, JSAMPARRAY output_buf,
335
               JDIMENSION output_col)
336
0
{
337
0
}
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
0
{
344
0
}
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
0
{
351
0
}
352
353
GLOBAL(int)
354
jsimd_can_idct_islow(void)
355
7.42k
{
356
7.42k
  return 0;
357
7.42k
}
358
359
GLOBAL(int)
360
jsimd_can_idct_ifast(void)
361
0
{
362
0
  return 0;
363
0
}
364
365
GLOBAL(int)
366
jsimd_can_idct_float(void)
367
0
{
368
0
  return 0;
369
0
}
370
371
GLOBAL(void)
372
jsimd_idct_islow(j_decompress_ptr cinfo, jpeg_component_info *compptr,
373
                 JCOEFPTR coef_block, JSAMPARRAY output_buf,
374
                 JDIMENSION output_col)
375
0
{
376
0
}
377
378
GLOBAL(void)
379
jsimd_idct_ifast(j_decompress_ptr cinfo, jpeg_component_info *compptr,
380
                 JCOEFPTR coef_block, JSAMPARRAY output_buf,
381
                 JDIMENSION output_col)
382
0
{
383
0
}
384
385
GLOBAL(void)
386
jsimd_idct_float(j_decompress_ptr cinfo, jpeg_component_info *compptr,
387
                 JCOEFPTR coef_block, JSAMPARRAY output_buf,
388
                 JDIMENSION output_col)
389
0
{
390
0
}
391
392
GLOBAL(int)
393
jsimd_can_huff_encode_one_block(void)
394
9.35k
{
395
9.35k
  return 0;
396
9.35k
}
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
0
{
403
0
  return NULL;
404
0
}
405
406
GLOBAL(int)
407
jsimd_can_encode_mcu_AC_first_prepare(void)
408
0
{
409
0
  return 0;
410
0
}
411
412
GLOBAL(void)
413
jsimd_encode_mcu_AC_first_prepare(const JCOEF *block,
414
                                  const int *jpeg_natural_order_start, int Sl,
415
                                  int Al, JCOEF *values, size_t *zerobits)
416
0
{
417
0
}
418
419
GLOBAL(int)
420
jsimd_can_encode_mcu_AC_refine_prepare(void)
421
0
{
422
0
  return 0;
423
0
}
424
425
GLOBAL(int)
426
jsimd_encode_mcu_AC_refine_prepare(const JCOEF *block,
427
                                   const int *jpeg_natural_order_start, int Sl,
428
                                   int Al, JCOEF *absvalues, size_t *bits)
429
0
{
430
0
  return 0;
431
0
}