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 |
DRC | d729f4d | 2014-08-23 15:47:51 +0000 | [diff] [blame] | 5 | * Copyright 2011, 2014 D. R. Commander |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 6 | * |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 7 | * Based on the x86 SIMD extension for IJG JPEG library, |
| 8 | * Copyright (C) 1999-2006, MIYASAKA Masaru. |
DRC | af1ca9b | 2011-02-02 05:42:37 +0000 | [diff] [blame] | 9 | * For conditions of distribution and use, see copyright notice in jsimdext.inc |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 10 | * |
| 11 | */ |
| 12 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 13 | EXTERN(int) jsimd_can_rgb_ycc (void); |
| 14 | EXTERN(int) jsimd_can_rgb_gray (void); |
| 15 | EXTERN(int) jsimd_can_ycc_rgb (void); |
DRC | d729f4d | 2014-08-23 15:47:51 +0000 | [diff] [blame] | 16 | EXTERN(int) jsimd_can_ycc_rgb565 (void); |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 17 | EXTERN(int) jsimd_c_can_null_convert (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 18 | |
| 19 | EXTERN(void) jsimd_rgb_ycc_convert |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 20 | (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
| 21 | JDIMENSION output_row, int num_rows); |
DRC | c866633 | 2011-02-18 11:23:45 +0000 | [diff] [blame] | 22 | EXTERN(void) jsimd_rgb_gray_convert |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 23 | (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
| 24 | JDIMENSION output_row, int num_rows); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 25 | EXTERN(void) jsimd_ycc_rgb_convert |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 26 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, |
| 27 | JSAMPARRAY output_buf, int num_rows); |
DRC | d729f4d | 2014-08-23 15:47:51 +0000 | [diff] [blame] | 28 | EXTERN(void) jsimd_ycc_rgb565_convert |
| 29 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, |
| 30 | JSAMPARRAY output_buf, int num_rows); |
DRC | 1b3fd7e | 2014-05-15 18:26:01 +0000 | [diff] [blame] | 31 | EXTERN(void) jsimd_c_null_convert |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 32 | (j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
| 33 | JDIMENSION output_row, int num_rows); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 34 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 35 | EXTERN(int) jsimd_can_h2v2_downsample (void); |
| 36 | EXTERN(int) jsimd_can_h2v1_downsample (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 37 | |
| 38 | EXTERN(void) jsimd_h2v2_downsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 39 | (j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 40 | JSAMPARRAY input_data, JSAMPARRAY output_data); |
DRC | 6a61c1e | 2014-05-14 15:00:10 +0000 | [diff] [blame] | 41 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 42 | EXTERN(int) jsimd_can_h2v2_smooth_downsample (void); |
DRC | 6a61c1e | 2014-05-14 15:00:10 +0000 | [diff] [blame] | 43 | |
| 44 | EXTERN(void) jsimd_h2v2_smooth_downsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 45 | (j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 46 | JSAMPARRAY input_data, JSAMPARRAY output_data); |
DRC | 6a61c1e | 2014-05-14 15:00:10 +0000 | [diff] [blame] | 47 | |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 48 | EXTERN(void) jsimd_h2v1_downsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 49 | (j_compress_ptr cinfo, jpeg_component_info * compptr, |
| 50 | JSAMPARRAY input_data, JSAMPARRAY output_data); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 51 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 52 | EXTERN(int) jsimd_can_h2v2_upsample (void); |
| 53 | EXTERN(int) jsimd_can_h2v1_upsample (void); |
DRC | 5ef4630 | 2014-05-18 20:04:47 +0000 | [diff] [blame] | 54 | EXTERN(int) jsimd_can_int_upsample (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 55 | |
| 56 | EXTERN(void) jsimd_h2v2_upsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 57 | (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 58 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 59 | EXTERN(void) jsimd_h2v1_upsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 60 | (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 61 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr); |
DRC | 5ef4630 | 2014-05-18 20:04:47 +0000 | [diff] [blame] | 62 | EXTERN(void) jsimd_int_upsample |
| 63 | (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 64 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 65 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 66 | EXTERN(int) jsimd_can_h2v2_fancy_upsample (void); |
| 67 | EXTERN(int) jsimd_can_h2v1_fancy_upsample (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 68 | |
| 69 | EXTERN(void) jsimd_h2v2_fancy_upsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 70 | (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 71 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 72 | EXTERN(void) jsimd_h2v1_fancy_upsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 73 | (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
| 74 | JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 75 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 76 | EXTERN(int) jsimd_can_h2v2_merged_upsample (void); |
| 77 | EXTERN(int) jsimd_can_h2v1_merged_upsample (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 78 | |
| 79 | EXTERN(void) jsimd_h2v2_merged_upsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 80 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, |
| 81 | JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 82 | EXTERN(void) jsimd_h2v1_merged_upsample |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame] | 83 | (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, |
| 84 | JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf); |