media/libjpeg/jsimd.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /*
michael@0 2 * jsimd.h
michael@0 3 *
michael@0 4 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
michael@0 5 * Copyright 2011 D. R. Commander
michael@0 6 *
michael@0 7 * Based on the x86 SIMD extension for IJG JPEG library,
michael@0 8 * Copyright (C) 1999-2006, MIYASAKA Masaru.
michael@0 9 * For conditions of distribution and use, see copyright notice in jsimdext.inc
michael@0 10 *
michael@0 11 */
michael@0 12
michael@0 13 /* Short forms of external names for systems with brain-damaged linkers. */
michael@0 14
michael@0 15 #ifdef NEED_SHORT_EXTERNAL_NAMES
michael@0 16 #define jsimd_can_rgb_ycc jSCanRgbYcc
michael@0 17 #define jsimd_can_rgb_gray jSCanRgbGry
michael@0 18 #define jsimd_can_ycc_rgb jSCanYccRgb
michael@0 19 #define jsimd_rgb_ycc_convert jSRgbYccConv
michael@0 20 #define jsimd_rgb_gray_convert jSRgbGryConv
michael@0 21 #define jsimd_ycc_rgb_convert jSYccRgbConv
michael@0 22 #define jsimd_can_h2v2_downsample jSCanH2V2Down
michael@0 23 #define jsimd_can_h2v1_downsample jSCanH2V1Down
michael@0 24 #define jsimd_h2v2_downsample jSH2V2Down
michael@0 25 #define jsimd_h2v1_downsample jSH2V1Down
michael@0 26 #define jsimd_can_h2v2_upsample jSCanH2V2Up
michael@0 27 #define jsimd_can_h2v1_upsample jSCanH2V1Up
michael@0 28 #define jsimd_h2v2_upsample jSH2V2Up
michael@0 29 #define jsimd_h2v1_upsample jSH2V1Up
michael@0 30 #define jsimd_can_h2v2_fancy_upsample jSCanH2V2FUp
michael@0 31 #define jsimd_can_h2v1_fancy_upsample jSCanH2V1FUp
michael@0 32 #define jsimd_h2v2_fancy_upsample jSH2V2FUp
michael@0 33 #define jsimd_h2v1_fancy_upsample jSH2V1FUp
michael@0 34 #define jsimd_can_h2v2_merged_upsample jSCanH2V2MUp
michael@0 35 #define jsimd_can_h2v1_merged_upsample jSCanH2V1MUp
michael@0 36 #define jsimd_h2v2_merged_upsample jSH2V2MUp
michael@0 37 #define jsimd_h2v1_merged_upsample jSH2V1MUp
michael@0 38 #endif /* NEED_SHORT_EXTERNAL_NAMES */
michael@0 39
michael@0 40 EXTERN(int) jsimd_can_rgb_ycc JPP((void));
michael@0 41 EXTERN(int) jsimd_can_rgb_gray JPP((void));
michael@0 42 EXTERN(int) jsimd_can_ycc_rgb JPP((void));
michael@0 43
michael@0 44 EXTERN(void) jsimd_rgb_ycc_convert
michael@0 45 JPP((j_compress_ptr cinfo,
michael@0 46 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
michael@0 47 JDIMENSION output_row, int num_rows));
michael@0 48 EXTERN(void) jsimd_rgb_gray_convert
michael@0 49 JPP((j_compress_ptr cinfo,
michael@0 50 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
michael@0 51 JDIMENSION output_row, int num_rows));
michael@0 52 EXTERN(void) jsimd_ycc_rgb_convert
michael@0 53 JPP((j_decompress_ptr cinfo,
michael@0 54 JSAMPIMAGE input_buf, JDIMENSION input_row,
michael@0 55 JSAMPARRAY output_buf, int num_rows));
michael@0 56
michael@0 57 EXTERN(int) jsimd_can_h2v2_downsample JPP((void));
michael@0 58 EXTERN(int) jsimd_can_h2v1_downsample JPP((void));
michael@0 59
michael@0 60 EXTERN(void) jsimd_h2v2_downsample
michael@0 61 JPP((j_compress_ptr cinfo, jpeg_component_info * compptr,
michael@0 62 JSAMPARRAY input_data, JSAMPARRAY output_data));
michael@0 63 EXTERN(void) jsimd_h2v1_downsample
michael@0 64 JPP((j_compress_ptr cinfo, jpeg_component_info * compptr,
michael@0 65 JSAMPARRAY input_data, JSAMPARRAY output_data));
michael@0 66
michael@0 67 EXTERN(int) jsimd_can_h2v2_upsample JPP((void));
michael@0 68 EXTERN(int) jsimd_can_h2v1_upsample JPP((void));
michael@0 69
michael@0 70 EXTERN(void) jsimd_h2v2_upsample
michael@0 71 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
michael@0 72 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
michael@0 73 EXTERN(void) jsimd_h2v1_upsample
michael@0 74 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
michael@0 75 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
michael@0 76
michael@0 77 EXTERN(int) jsimd_can_h2v2_fancy_upsample JPP((void));
michael@0 78 EXTERN(int) jsimd_can_h2v1_fancy_upsample JPP((void));
michael@0 79
michael@0 80 EXTERN(void) jsimd_h2v2_fancy_upsample
michael@0 81 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
michael@0 82 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
michael@0 83 EXTERN(void) jsimd_h2v1_fancy_upsample
michael@0 84 JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr,
michael@0 85 JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr));
michael@0 86
michael@0 87 EXTERN(int) jsimd_can_h2v2_merged_upsample JPP((void));
michael@0 88 EXTERN(int) jsimd_can_h2v1_merged_upsample JPP((void));
michael@0 89
michael@0 90 EXTERN(void) jsimd_h2v2_merged_upsample
michael@0 91 JPP((j_decompress_ptr cinfo,
michael@0 92 JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,
michael@0 93 JSAMPARRAY output_buf));
michael@0 94 EXTERN(void) jsimd_h2v1_merged_upsample
michael@0 95 JPP((j_decompress_ptr cinfo,
michael@0 96 JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,
michael@0 97 JSAMPARRAY output_buf));
michael@0 98

mercurial