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