Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 1 | /* |
| 2 | * jsimddct.h |
| 3 | * |
| 4 | * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB |
DRC | 1a45b81 | 2014-05-09 18:06:58 +0000 | [diff] [blame] | 5 | * |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 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 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 12 | EXTERN(int) jsimd_can_convsamp (void); |
| 13 | EXTERN(int) jsimd_can_convsamp_float (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 14 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 15 | EXTERN(void) jsimd_convsamp (JSAMPARRAY sample_data, JDIMENSION start_col, |
| 16 | DCTELEM * workspace); |
| 17 | EXTERN(void) jsimd_convsamp_float (JSAMPARRAY sample_data, |
| 18 | JDIMENSION start_col, |
| 19 | FAST_FLOAT * workspace); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 20 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 21 | EXTERN(int) jsimd_can_fdct_islow (void); |
| 22 | EXTERN(int) jsimd_can_fdct_ifast (void); |
| 23 | EXTERN(int) jsimd_can_fdct_float (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 24 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 25 | EXTERN(void) jsimd_fdct_islow (DCTELEM * data); |
| 26 | EXTERN(void) jsimd_fdct_ifast (DCTELEM * data); |
| 27 | EXTERN(void) jsimd_fdct_float (FAST_FLOAT * data); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 28 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 29 | EXTERN(int) jsimd_can_quantize (void); |
| 30 | EXTERN(int) jsimd_can_quantize_float (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 31 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 32 | EXTERN(void) jsimd_quantize (JCOEFPTR coef_block, DCTELEM * divisors, |
| 33 | DCTELEM * workspace); |
| 34 | EXTERN(void) jsimd_quantize_float (JCOEFPTR coef_block, FAST_FLOAT * divisors, |
| 35 | FAST_FLOAT * workspace); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 36 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 37 | EXTERN(int) jsimd_can_idct_2x2 (void); |
| 38 | EXTERN(int) jsimd_can_idct_4x4 (void); |
| 39 | EXTERN(int) jsimd_can_idct_6x6 (void); |
| 40 | EXTERN(int) jsimd_can_idct_12x12 (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 41 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 42 | EXTERN(void) jsimd_idct_2x2 (j_decompress_ptr cinfo, |
| 43 | jpeg_component_info * compptr, |
| 44 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 45 | JDIMENSION output_col); |
| 46 | EXTERN(void) jsimd_idct_4x4 (j_decompress_ptr cinfo, |
| 47 | jpeg_component_info * compptr, |
| 48 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 49 | JDIMENSION output_col); |
| 50 | EXTERN(void) jsimd_idct_6x6 (j_decompress_ptr cinfo, |
| 51 | jpeg_component_info * compptr, |
| 52 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 53 | JDIMENSION output_col); |
| 54 | EXTERN(void) jsimd_idct_12x12 (j_decompress_ptr cinfo, |
| 55 | jpeg_component_info * compptr, |
| 56 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 57 | JDIMENSION output_col); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 58 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 59 | EXTERN(int) jsimd_can_idct_islow (void); |
| 60 | EXTERN(int) jsimd_can_idct_ifast (void); |
| 61 | EXTERN(int) jsimd_can_idct_float (void); |
Pierre Ossman | 59a3938 | 2009-03-09 13:15:56 +0000 | [diff] [blame] | 62 | |
DRC | bc56b75 | 2014-05-16 10:43:44 +0000 | [diff] [blame^] | 63 | EXTERN(void) jsimd_idct_islow (j_decompress_ptr cinfo, |
| 64 | jpeg_component_info * compptr, |
| 65 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 66 | JDIMENSION output_col); |
| 67 | EXTERN(void) jsimd_idct_ifast (j_decompress_ptr cinfo, |
| 68 | jpeg_component_info * compptr, |
| 69 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 70 | JDIMENSION output_col); |
| 71 | EXTERN(void) jsimd_idct_float (j_decompress_ptr cinfo, |
| 72 | jpeg_component_info * compptr, |
| 73 | JCOEFPTR coef_block, JSAMPARRAY output_buf, |
| 74 | JDIMENSION output_col); |