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