]> git.sesse.net Git - x264/blob - common/x86/quant.h
Update source file headers
[x264] / common / x86 / quant.h
1 /*****************************************************************************
2  * quant.h: x86 quantization and level-run
3  *****************************************************************************
4  * Copyright (C) 2005-2010 x264 project
5  *
6  * Authors: Loren Merritt <lorenm@u.washington.edu>
7  *          Fiona Glaser <fiona@x264.com>
8  *          Christian Heine <sennindemokrit@gmx.net>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
23  *
24  * This program is also available under a commercial proprietary license.
25  * For more information, contact us at licensing@x264.com.
26  *****************************************************************************/
27
28 #ifndef X264_I386_QUANT_H
29 #define X264_I386_QUANT_H
30
31 int x264_quant_2x2_dc_mmxext( int16_t dct[4], int mf, int bias );
32 int x264_quant_4x4_dc_mmxext( int16_t dct[16], int mf, int bias );
33 int x264_quant_4x4_mmx( int16_t dct[16], uint16_t mf[16], uint16_t bias[16] );
34 int x264_quant_8x8_mmx( int16_t dct[64], uint16_t mf[64], uint16_t bias[64] );
35 int x264_quant_4x4_dc_sse2( int16_t dct[16], int mf, int bias );
36 int x264_quant_4x4_sse2( int16_t dct[16], uint16_t mf[16], uint16_t bias[16] );
37 int x264_quant_8x8_sse2( int16_t dct[64], uint16_t mf[64], uint16_t bias[64] );
38 int x264_quant_2x2_dc_ssse3( int16_t dct[4], int mf, int bias );
39 int x264_quant_4x4_dc_ssse3( int16_t dct[16], int mf, int bias );
40 int x264_quant_4x4_ssse3( int16_t dct[16], uint16_t mf[16], uint16_t bias[16] );
41 int x264_quant_8x8_ssse3( int16_t dct[64], uint16_t mf[64], uint16_t bias[64] );
42 int x264_quant_4x4_dc_sse4( int16_t dct[16], int mf, int bias );
43 int x264_quant_4x4_sse4( int16_t dct[16], uint16_t mf[16], uint16_t bias[16] );
44 int x264_quant_8x8_sse4( int16_t dct[64], uint16_t mf[64], uint16_t bias[64] );
45 void x264_dequant_4x4_mmx( int16_t dct[16], int dequant_mf[6][16], int i_qp );
46 void x264_dequant_4x4dc_mmxext( int16_t dct[16], int dequant_mf[6][16], int i_qp );
47 void x264_dequant_8x8_mmx( int16_t dct[64], int dequant_mf[6][64], int i_qp );
48 void x264_dequant_4x4_sse2( int16_t dct[16], int dequant_mf[6][16], int i_qp );
49 void x264_dequant_4x4dc_sse2( int16_t dct[16], int dequant_mf[6][16], int i_qp );
50 void x264_dequant_8x8_sse2( int16_t dct[64], int dequant_mf[6][64], int i_qp );
51 void x264_dequant_4x4_flat16_mmx( int16_t dct[16], int dequant_mf[6][16], int i_qp );
52 void x264_dequant_8x8_flat16_mmx( int16_t dct[64], int dequant_mf[6][64], int i_qp );
53 void x264_dequant_4x4_flat16_sse2( int16_t dct[16], int dequant_mf[6][16], int i_qp );
54 void x264_dequant_8x8_flat16_sse2( int16_t dct[64], int dequant_mf[6][64], int i_qp );
55 void x264_denoise_dct_mmx( int16_t *dct, uint32_t *sum, uint16_t *offset, int size );
56 void x264_denoise_dct_sse2( int16_t *dct, uint32_t *sum, uint16_t *offset, int size );
57 void x264_denoise_dct_ssse3( int16_t *dct, uint32_t *sum, uint16_t *offset, int size );
58 int x264_decimate_score15_mmxext( int16_t *dct );
59 int x264_decimate_score15_sse2  ( int16_t *dct );
60 int x264_decimate_score15_ssse3 ( int16_t *dct );
61 int x264_decimate_score16_mmxext( int16_t *dct );
62 int x264_decimate_score16_sse2  ( int16_t *dct );
63 int x264_decimate_score16_ssse3 ( int16_t *dct );
64 int x264_decimate_score15_mmxext_slowctz( int16_t *dct );
65 int x264_decimate_score15_sse2_slowctz  ( int16_t *dct );
66 int x264_decimate_score15_ssse3_slowctz ( int16_t *dct );
67 int x264_decimate_score16_mmxext_slowctz( int16_t *dct );
68 int x264_decimate_score16_sse2_slowctz  ( int16_t *dct );
69 int x264_decimate_score16_ssse3_slowctz ( int16_t *dct );
70 int x264_decimate_score64_mmxext( int16_t *dct );
71 int x264_decimate_score64_sse2  ( int16_t *dct );
72 int x264_decimate_score64_ssse3 ( int16_t *dct );
73 int x264_coeff_last4_mmxext( int16_t *dct );
74 int x264_coeff_last15_mmxext( int16_t *dct );
75 int x264_coeff_last16_mmxext( int16_t *dct );
76 int x264_coeff_last64_mmxext( int16_t *dct );
77 int x264_coeff_last15_sse2( int16_t *dct );
78 int x264_coeff_last16_sse2( int16_t *dct );
79 int x264_coeff_last64_sse2( int16_t *dct );
80 int x264_coeff_last4_mmxext_lzcnt( int16_t *dct );
81 int x264_coeff_last15_sse2_lzcnt( int16_t *dct );
82 int x264_coeff_last16_sse2_lzcnt( int16_t *dct );
83 int x264_coeff_last64_sse2_lzcnt( int16_t *dct );
84 int x264_coeff_level_run16_mmxext( int16_t *dct, x264_run_level_t *runlevel );
85 int x264_coeff_level_run16_sse2( int16_t *dct, x264_run_level_t *runlevel );
86 int x264_coeff_level_run16_sse2_lzcnt( int16_t *dct, x264_run_level_t *runlevel );
87 int x264_coeff_level_run15_mmxext( int16_t *dct, x264_run_level_t *runlevel );
88 int x264_coeff_level_run15_sse2( int16_t *dct, x264_run_level_t *runlevel );
89 int x264_coeff_level_run15_sse2_lzcnt( int16_t *dct, x264_run_level_t *runlevel );
90 int x264_coeff_level_run4_mmxext( int16_t *dct, x264_run_level_t *runlevel );
91 int x264_coeff_level_run4_mmxext_lzcnt( int16_t *dct, x264_run_level_t *runlevel );
92
93 #endif