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