media/libjpeg/jsimd.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libjpeg/jsimd.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,98 @@
     1.4 +/*
     1.5 + * jsimd.h
     1.6 + *
     1.7 + * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
     1.8 + * Copyright 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 + */
    1.15 +
    1.16 +/* Short forms of external names for systems with brain-damaged linkers. */
    1.17 +
    1.18 +#ifdef NEED_SHORT_EXTERNAL_NAMES
    1.19 +#define jsimd_can_rgb_ycc                 jSCanRgbYcc
    1.20 +#define jsimd_can_rgb_gray                jSCanRgbGry
    1.21 +#define jsimd_can_ycc_rgb                 jSCanYccRgb
    1.22 +#define jsimd_rgb_ycc_convert             jSRgbYccConv
    1.23 +#define jsimd_rgb_gray_convert            jSRgbGryConv
    1.24 +#define jsimd_ycc_rgb_convert             jSYccRgbConv
    1.25 +#define jsimd_can_h2v2_downsample         jSCanH2V2Down
    1.26 +#define jsimd_can_h2v1_downsample         jSCanH2V1Down
    1.27 +#define jsimd_h2v2_downsample             jSH2V2Down
    1.28 +#define jsimd_h2v1_downsample             jSH2V1Down
    1.29 +#define jsimd_can_h2v2_upsample           jSCanH2V2Up
    1.30 +#define jsimd_can_h2v1_upsample           jSCanH2V1Up
    1.31 +#define jsimd_h2v2_upsample               jSH2V2Up
    1.32 +#define jsimd_h2v1_upsample               jSH2V1Up
    1.33 +#define jsimd_can_h2v2_fancy_upsample     jSCanH2V2FUp
    1.34 +#define jsimd_can_h2v1_fancy_upsample     jSCanH2V1FUp
    1.35 +#define jsimd_h2v2_fancy_upsample         jSH2V2FUp
    1.36 +#define jsimd_h2v1_fancy_upsample         jSH2V1FUp
    1.37 +#define jsimd_can_h2v2_merged_upsample    jSCanH2V2MUp
    1.38 +#define jsimd_can_h2v1_merged_upsample    jSCanH2V1MUp
    1.39 +#define jsimd_h2v2_merged_upsample        jSH2V2MUp
    1.40 +#define jsimd_h2v1_merged_upsample        jSH2V1MUp
    1.41 +#endif /* NEED_SHORT_EXTERNAL_NAMES */
    1.42 +
    1.43 +EXTERN(int) jsimd_can_rgb_ycc JPP((void));
    1.44 +EXTERN(int) jsimd_can_rgb_gray JPP((void));
    1.45 +EXTERN(int) jsimd_can_ycc_rgb JPP((void));
    1.46 +
    1.47 +EXTERN(void) jsimd_rgb_ycc_convert
    1.48 +        JPP((j_compress_ptr cinfo,
    1.49 +             JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
    1.50 +             JDIMENSION output_row, int num_rows));
    1.51 +EXTERN(void) jsimd_rgb_gray_convert
    1.52 +        JPP((j_compress_ptr cinfo,
    1.53 +             JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
    1.54 +             JDIMENSION output_row, int num_rows));
    1.55 +EXTERN(void) jsimd_ycc_rgb_convert
    1.56 +        JPP((j_decompress_ptr cinfo,
    1.57 +             JSAMPIMAGE input_buf, JDIMENSION input_row,
    1.58 +             JSAMPARRAY output_buf, int num_rows));
    1.59 +
    1.60 +EXTERN(int) jsimd_can_h2v2_downsample JPP((void));
    1.61 +EXTERN(int) jsimd_can_h2v1_downsample JPP((void));
    1.62 +
    1.63 +EXTERN(void) jsimd_h2v2_downsample
    1.64 +        JPP((j_compress_ptr cinfo, jpeg_component_info * compptr,
    1.65 +             JSAMPARRAY input_data, JSAMPARRAY output_data));
    1.66 +EXTERN(void) jsimd_h2v1_downsample
    1.67 +        JPP((j_compress_ptr cinfo, jpeg_component_info * compptr,
    1.68 +             JSAMPARRAY input_data, JSAMPARRAY output_data));
    1.69 +
    1.70 +EXTERN(int) jsimd_can_h2v2_upsample JPP((void));
    1.71 +EXTERN(int) jsimd_can_h2v1_upsample JPP((void));
    1.72 +
    1.73 +EXTERN(void) jsimd_h2v2_upsample
    1.74 +        JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
    1.75 +             JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
    1.76 +EXTERN(void) jsimd_h2v1_upsample
    1.77 +        JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
    1.78 +             JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
    1.79 +
    1.80 +EXTERN(int) jsimd_can_h2v2_fancy_upsample JPP((void));
    1.81 +EXTERN(int) jsimd_can_h2v1_fancy_upsample JPP((void));
    1.82 +
    1.83 +EXTERN(void) jsimd_h2v2_fancy_upsample
    1.84 +        JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
    1.85 +             JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
    1.86 +EXTERN(void) jsimd_h2v1_fancy_upsample
    1.87 +        JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
    1.88 +             JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
    1.89 +
    1.90 +EXTERN(int) jsimd_can_h2v2_merged_upsample JPP((void));
    1.91 +EXTERN(int) jsimd_can_h2v1_merged_upsample JPP((void));
    1.92 +
    1.93 +EXTERN(void) jsimd_h2v2_merged_upsample
    1.94 +        JPP((j_decompress_ptr cinfo,
    1.95 +             JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,
    1.96 +             JSAMPARRAY output_buf));
    1.97 +EXTERN(void) jsimd_h2v1_merged_upsample
    1.98 +        JPP((j_decompress_ptr cinfo,
    1.99 +             JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,
   1.100 +             JSAMPARRAY output_buf));
   1.101 +

mercurial