media/libjpeg/jsimd_none.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libjpeg/jsimd_none.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,313 @@
     1.4 +/*
     1.5 + * jsimd_none.c
     1.6 + *
     1.7 + * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
     1.8 + * Copyright 2009-2011 D. R. Commander
     1.9 + * 
    1.10 + * Based on the x86 SIMD extension for IJG JPEG library,
    1.11 + * Copyright (C) 1999-2006, MIYASAKA Masaru.
    1.12 + * For conditions of distribution and use, see copyright notice in jsimdext.inc
    1.13 + *
    1.14 + * This file contains stubs for when there is no SIMD support available.
    1.15 + */
    1.16 +
    1.17 +#define JPEG_INTERNALS
    1.18 +#include "jinclude.h"
    1.19 +#include "jpeglib.h"
    1.20 +#include "jsimd.h"
    1.21 +#include "jdct.h"
    1.22 +#include "jsimddct.h"
    1.23 +
    1.24 +GLOBAL(int)
    1.25 +jsimd_can_rgb_ycc (void)
    1.26 +{
    1.27 +  return 0;
    1.28 +}
    1.29 +
    1.30 +GLOBAL(int)
    1.31 +jsimd_can_rgb_gray (void)
    1.32 +{
    1.33 +  return 0;
    1.34 +}
    1.35 +
    1.36 +GLOBAL(int)
    1.37 +jsimd_can_ycc_rgb (void)
    1.38 +{
    1.39 +  return 0;
    1.40 +}
    1.41 +
    1.42 +GLOBAL(void)
    1.43 +jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
    1.44 +                       JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
    1.45 +                       JDIMENSION output_row, int num_rows)
    1.46 +{
    1.47 +}
    1.48 +
    1.49 +GLOBAL(void)
    1.50 +jsimd_rgb_gray_convert (j_compress_ptr cinfo,
    1.51 +                        JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
    1.52 +                        JDIMENSION output_row, int num_rows)
    1.53 +{
    1.54 +}
    1.55 +
    1.56 +GLOBAL(void)
    1.57 +jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
    1.58 +                       JSAMPIMAGE input_buf, JDIMENSION input_row,
    1.59 +                       JSAMPARRAY output_buf, int num_rows)
    1.60 +{
    1.61 +}
    1.62 +
    1.63 +GLOBAL(int)
    1.64 +jsimd_can_h2v2_downsample (void)
    1.65 +{
    1.66 +  return 0;
    1.67 +}
    1.68 +
    1.69 +GLOBAL(int)
    1.70 +jsimd_can_h2v1_downsample (void)
    1.71 +{
    1.72 +  return 0;
    1.73 +}
    1.74 +
    1.75 +GLOBAL(void)
    1.76 +jsimd_h2v2_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
    1.77 +                       JSAMPARRAY input_data, JSAMPARRAY output_data)
    1.78 +{
    1.79 +}
    1.80 +
    1.81 +GLOBAL(void)
    1.82 +jsimd_h2v1_downsample (j_compress_ptr cinfo, jpeg_component_info * compptr,
    1.83 +                       JSAMPARRAY input_data, JSAMPARRAY output_data)
    1.84 +{
    1.85 +}
    1.86 +
    1.87 +GLOBAL(int)
    1.88 +jsimd_can_h2v2_upsample (void)
    1.89 +{
    1.90 +  return 0;
    1.91 +}
    1.92 +
    1.93 +GLOBAL(int)
    1.94 +jsimd_can_h2v1_upsample (void)
    1.95 +{
    1.96 +  return 0;
    1.97 +}
    1.98 +
    1.99 +GLOBAL(void)
   1.100 +jsimd_h2v2_upsample (j_decompress_ptr cinfo,
   1.101 +                     jpeg_component_info * compptr, 
   1.102 +                     JSAMPARRAY input_data,
   1.103 +                     JSAMPARRAY * output_data_ptr)
   1.104 +{
   1.105 +}
   1.106 +
   1.107 +GLOBAL(void)
   1.108 +jsimd_h2v1_upsample (j_decompress_ptr cinfo,
   1.109 +                     jpeg_component_info * compptr, 
   1.110 +                     JSAMPARRAY input_data,
   1.111 +                     JSAMPARRAY * output_data_ptr)
   1.112 +{
   1.113 +}
   1.114 +
   1.115 +GLOBAL(int)
   1.116 +jsimd_can_h2v2_fancy_upsample (void)
   1.117 +{
   1.118 +  return 0;
   1.119 +}
   1.120 +
   1.121 +GLOBAL(int)
   1.122 +jsimd_can_h2v1_fancy_upsample (void)
   1.123 +{
   1.124 +  return 0;
   1.125 +}
   1.126 +
   1.127 +GLOBAL(void)
   1.128 +jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo,
   1.129 +                           jpeg_component_info * compptr, 
   1.130 +                           JSAMPARRAY input_data,
   1.131 +                           JSAMPARRAY * output_data_ptr)
   1.132 +{
   1.133 +}
   1.134 +
   1.135 +GLOBAL(void)
   1.136 +jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
   1.137 +                           jpeg_component_info * compptr, 
   1.138 +                           JSAMPARRAY input_data,
   1.139 +                           JSAMPARRAY * output_data_ptr)
   1.140 +{
   1.141 +}
   1.142 +
   1.143 +GLOBAL(int)
   1.144 +jsimd_can_h2v2_merged_upsample (void)
   1.145 +{
   1.146 +  return 0;
   1.147 +}
   1.148 +
   1.149 +GLOBAL(int)
   1.150 +jsimd_can_h2v1_merged_upsample (void)
   1.151 +{
   1.152 +  return 0;
   1.153 +}
   1.154 +
   1.155 +GLOBAL(void)
   1.156 +jsimd_h2v2_merged_upsample (j_decompress_ptr cinfo,
   1.157 +                            JSAMPIMAGE input_buf,
   1.158 +                            JDIMENSION in_row_group_ctr,
   1.159 +                            JSAMPARRAY output_buf)
   1.160 +{
   1.161 +}
   1.162 +
   1.163 +GLOBAL(void)
   1.164 +jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
   1.165 +                            JSAMPIMAGE input_buf,
   1.166 +                            JDIMENSION in_row_group_ctr,
   1.167 +                            JSAMPARRAY output_buf)
   1.168 +{
   1.169 +}
   1.170 +
   1.171 +GLOBAL(int)
   1.172 +jsimd_can_convsamp (void)
   1.173 +{
   1.174 +  return 0;
   1.175 +}
   1.176 +
   1.177 +GLOBAL(int)
   1.178 +jsimd_can_convsamp_float (void)
   1.179 +{
   1.180 +  return 0;
   1.181 +}
   1.182 +
   1.183 +GLOBAL(void)
   1.184 +jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col,
   1.185 +                DCTELEM * workspace)
   1.186 +{
   1.187 +}
   1.188 +
   1.189 +GLOBAL(void)
   1.190 +jsimd_convsamp_float (JSAMPARRAY sample_data, JDIMENSION start_col,
   1.191 +                      FAST_FLOAT * workspace)
   1.192 +{
   1.193 +}
   1.194 +
   1.195 +GLOBAL(int)
   1.196 +jsimd_can_fdct_islow (void)
   1.197 +{
   1.198 +  return 0;
   1.199 +}
   1.200 +
   1.201 +GLOBAL(int)
   1.202 +jsimd_can_fdct_ifast (void)
   1.203 +{
   1.204 +  return 0;
   1.205 +}
   1.206 +
   1.207 +GLOBAL(int)
   1.208 +jsimd_can_fdct_float (void)
   1.209 +{
   1.210 +  return 0;
   1.211 +}
   1.212 +
   1.213 +GLOBAL(void)
   1.214 +jsimd_fdct_islow (DCTELEM * data)
   1.215 +{
   1.216 +}
   1.217 +
   1.218 +GLOBAL(void)
   1.219 +jsimd_fdct_ifast (DCTELEM * data)
   1.220 +{
   1.221 +}
   1.222 +
   1.223 +GLOBAL(void)
   1.224 +jsimd_fdct_float (FAST_FLOAT * data)
   1.225 +{
   1.226 +}
   1.227 +
   1.228 +GLOBAL(int)
   1.229 +jsimd_can_quantize (void)
   1.230 +{
   1.231 +  return 0;
   1.232 +}
   1.233 +
   1.234 +GLOBAL(int)
   1.235 +jsimd_can_quantize_float (void)
   1.236 +{
   1.237 +  return 0;
   1.238 +}
   1.239 +
   1.240 +GLOBAL(void)
   1.241 +jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors,
   1.242 +                DCTELEM * workspace)
   1.243 +{
   1.244 +}
   1.245 +
   1.246 +GLOBAL(void)
   1.247 +jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors,
   1.248 +                      FAST_FLOAT * workspace)
   1.249 +{
   1.250 +}
   1.251 +
   1.252 +GLOBAL(int)
   1.253 +jsimd_can_idct_2x2 (void)
   1.254 +{
   1.255 +  return 0;
   1.256 +}
   1.257 +
   1.258 +GLOBAL(int)
   1.259 +jsimd_can_idct_4x4 (void)
   1.260 +{
   1.261 +  return 0;
   1.262 +}
   1.263 +
   1.264 +GLOBAL(void)
   1.265 +jsimd_idct_2x2 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
   1.266 +                JCOEFPTR coef_block, JSAMPARRAY output_buf,
   1.267 +                JDIMENSION output_col)
   1.268 +{
   1.269 +}
   1.270 +
   1.271 +GLOBAL(void)
   1.272 +jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
   1.273 +                JCOEFPTR coef_block, JSAMPARRAY output_buf,
   1.274 +                JDIMENSION output_col)
   1.275 +{
   1.276 +}
   1.277 +
   1.278 +GLOBAL(int)
   1.279 +jsimd_can_idct_islow (void)
   1.280 +{
   1.281 +  return 0;
   1.282 +}
   1.283 +
   1.284 +GLOBAL(int)
   1.285 +jsimd_can_idct_ifast (void)
   1.286 +{
   1.287 +  return 0;
   1.288 +}
   1.289 +
   1.290 +GLOBAL(int)
   1.291 +jsimd_can_idct_float (void)
   1.292 +{
   1.293 +  return 0;
   1.294 +}
   1.295 +
   1.296 +GLOBAL(void)
   1.297 +jsimd_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
   1.298 +                JCOEFPTR coef_block, JSAMPARRAY output_buf,
   1.299 +                JDIMENSION output_col)
   1.300 +{
   1.301 +}
   1.302 +
   1.303 +GLOBAL(void)
   1.304 +jsimd_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
   1.305 +                JCOEFPTR coef_block, JSAMPARRAY output_buf,
   1.306 +                JDIMENSION output_col)
   1.307 +{
   1.308 +}
   1.309 +
   1.310 +GLOBAL(void)
   1.311 +jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
   1.312 +                JCOEFPTR coef_block, JSAMPARRAY output_buf,
   1.313 +                JDIMENSION output_col)
   1.314 +{
   1.315 +}
   1.316 +

mercurial