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