Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 1 | /* |
| 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. |
DRC | af1ca9b | 2011-02-02 05:42:37 +0000 | [diff] [blame] | 8 | * For conditions of distribution and use, see copyright notice in jsimdext.inc |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 9 | * |
| 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 |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame^] | 16 | #define jsimd_can_rgb_gray jSCanRgbGry |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 17 | #define jsimd_can_ycc_rgb jSCanYccRgb |
| 18 | #define jsimd_rgb_ycc_convert jSRgbYccConv |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame^] | 19 | #define jsimd_rgb_gray_convert jSRgbGryConv |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 20 | #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 | |
| 39 | EXTERN(int) jsimd_can_rgb_ycc JPP((void)); |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame^] | 40 | EXTERN(int) jsimd_can_rgb_gray JPP((void)); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 41 | EXTERN(int) jsimd_can_ycc_rgb JPP((void)); |
| 42 | |
| 43 | EXTERN(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)); |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame^] | 47 | EXTERN(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 Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 51 | EXTERN(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 | |
| 56 | EXTERN(int) jsimd_can_h2v2_downsample JPP((void)); |
| 57 | EXTERN(int) jsimd_can_h2v1_downsample JPP((void)); |
| 58 | |
| 59 | EXTERN(void) jsimd_h2v2_downsample |
| 60 | JPP((j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 61 | JSAMPARRAY input_data, JSAMPARRAY output_data)); |
| 62 | EXTERN(void) jsimd_h2v1_downsample |
| 63 | JPP((j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 64 | JSAMPARRAY input_data, JSAMPARRAY output_data)); |
| 65 | |
| 66 | EXTERN(int) jsimd_can_h2v2_upsample JPP((void)); |
| 67 | EXTERN(int) jsimd_can_h2v1_upsample JPP((void)); |
| 68 | |
| 69 | EXTERN(void) jsimd_h2v2_upsample |
| 70 | JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 71 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)); |
| 72 | EXTERN(void) jsimd_h2v1_upsample |
| 73 | JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 74 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)); |
| 75 | |
| 76 | EXTERN(int) jsimd_can_h2v2_fancy_upsample JPP((void)); |
| 77 | EXTERN(int) jsimd_can_h2v1_fancy_upsample JPP((void)); |
| 78 | |
| 79 | EXTERN(void) jsimd_h2v2_fancy_upsample |
| 80 | JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 81 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)); |
| 82 | EXTERN(void) jsimd_h2v1_fancy_upsample |
| 83 | JPP((j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 84 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr)); |
| 85 | |
| 86 | EXTERN(int) jsimd_can_h2v2_merged_upsample JPP((void)); |
| 87 | EXTERN(int) jsimd_can_h2v1_merged_upsample JPP((void)); |
| 88 | |
| 89 | EXTERN(void) jsimd_h2v2_merged_upsample |
| 90 | JPP((j_decompress_ptr cinfo, |
| 91 | JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr, |
| 92 | JSAMPARRAY output_buf)); |
| 93 | EXTERN(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 | |