media/libjpeg/jsimd_none.c

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /*
     2  * jsimd_none.c
     3  *
     4  * Copyright 2009 Pierre Ossman <ossman@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  */
    14 #define JPEG_INTERNALS
    15 #include "jinclude.h"
    16 #include "jpeglib.h"
    17 #include "jsimd.h"
    18 #include "jdct.h"
    19 #include "jsimddct.h"
    21 GLOBAL(int)
    22 jsimd_can_rgb_ycc (void)
    23 {
    24   return 0;
    25 }
    27 GLOBAL(int)
    28 jsimd_can_rgb_gray (void)
    29 {
    30   return 0;
    31 }
    33 GLOBAL(int)
    34 jsimd_can_ycc_rgb (void)
    35 {
    36   return 0;
    37 }
    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 }
    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 }
    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 }
    60 GLOBAL(int)
    61 jsimd_can_h2v2_downsample (void)
    62 {
    63   return 0;
    64 }
    66 GLOBAL(int)
    67 jsimd_can_h2v1_downsample (void)
    68 {
    69   return 0;
    70 }
    72 GLOBAL(void)
    73 jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
    74                        JSAMPARRAY input_data, JSAMPARRAY output_data)
    75 {
    76 }
    78 GLOBAL(void)
    79 jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
    80                        JSAMPARRAY input_data, JSAMPARRAY output_data)
    81 {
    82 }
    84 GLOBAL(int)
    85 jsimd_can_h2v2_upsample (void)
    86 {
    87   return 0;
    88 }
    90 GLOBAL(int)
    91 jsimd_can_h2v1_upsample (void)
    92 {
    93   return 0;
    94 }
    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 }
   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 }
   112 GLOBAL(int)
   113 jsimd_can_h2v2_fancy_upsample (void)
   114 {
   115   return 0;
   116 }
   118 GLOBAL(int)
   119 jsimd_can_h2v1_fancy_upsample (void)
   120 {
   121   return 0;
   122 }
   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 }
   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 }
   140 GLOBAL(int)
   141 jsimd_can_h2v2_merged_upsample (void)
   142 {
   143   return 0;
   144 }
   146 GLOBAL(int)
   147 jsimd_can_h2v1_merged_upsample (void)
   148 {
   149   return 0;
   150 }
   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 }
   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 }
   168 GLOBAL(int)
   169 jsimd_can_convsamp (void)
   170 {
   171   return 0;
   172 }
   174 GLOBAL(int)
   175 jsimd_can_convsamp_float (void)
   176 {
   177   return 0;
   178 }
   180 GLOBAL(void)
   181 jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
   182                 DCTELEM * workspace)
   183 {
   184 }
   186 GLOBAL(void)
   187 jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
   188                       FAST_FLOAT * workspace)
   189 {
   190 }
   192 GLOBAL(int)
   193 jsimd_can_fdct_islow (void)
   194 {
   195   return 0;
   196 }
   198 GLOBAL(int)
   199 jsimd_can_fdct_ifast (void)
   200 {
   201   return 0;
   202 }
   204 GLOBAL(int)
   205 jsimd_can_fdct_float (void)
   206 {
   207   return 0;
   208 }
   210 GLOBAL(void)
   211 jsimd_fdct_islow (DCTELEM * data)
   212 {
   213 }
   215 GLOBAL(void)
   216 jsimd_fdct_ifast (DCTELEM * data)
   217 {
   218 }
   220 GLOBAL(void)
   221 jsimd_fdct_float (FAST_FLOAT * data)
   222 {
   223 }
   225 GLOBAL(int)
   226 jsimd_can_quantize (void)
   227 {
   228   return 0;
   229 }
   231 GLOBAL(int)
   232 jsimd_can_quantize_float (void)
   233 {
   234   return 0;
   235 }
   237 GLOBAL(void)
   238 jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
   239                 DCTELEM * workspace)
   240 {
   241 }
   243 GLOBAL(void)
   244 jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
   245                       FAST_FLOAT * workspace)
   246 {
   247 }
   249 GLOBAL(int)
   250 jsimd_can_idct_2x2 (void)
   251 {
   252   return 0;
   253 }
   255 GLOBAL(int)
   256 jsimd_can_idct_4x4 (void)
   257 {
   258   return 0;
   259 }
   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 }
   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 }
   275 GLOBAL(int)
   276 jsimd_can_idct_islow (void)
   277 {
   278   return 0;
   279 }
   281 GLOBAL(int)
   282 jsimd_can_idct_ifast (void)
   283 {
   284   return 0;
   285 }
   287 GLOBAL(int)
   288 jsimd_can_idct_float (void)
   289 {
   290   return 0;
   291 }
   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 }
   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 }
   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 }

mercurial