x264-dsp
quant.h
1 /*****************************************************************************
2  * quant.h: quantization and level-run
3  *****************************************************************************/
4 
5 #ifndef X264_QUANT_H
6 #define X264_QUANT_H
7 
8 typedef struct
9 {
10  int (*quant_4x4)(dctcoef dct[16], udctcoef mf[16], udctcoef bias[16]);
11  int (*quant_4x4_dc)(dctcoef dct[16], int mf, int bias);
12  int (*quant_2x2_dc)(dctcoef dct[4], int mf, int bias);
13 
14  void (*dequant_4x4)(dctcoef dct[16], int dequant_mf[6][16], int i_qp);
15  void (*dequant_4x4_dc)(dctcoef dct[16], int dequant_mf[6][16], int i_qp);
16 
17  int (*optimize_chroma_2x2_dc)(dctcoef dct[4], int dequant_mf);
18 
19  void (*denoise_dct)(dctcoef *dct, uint32_t *sum, udctcoef *offset, int size);
20 
21  int (*decimate_score15)(dctcoef *dct);
22  int (*decimate_score16)(dctcoef *dct);
23 
24  int (*coeff_last[14])(dctcoef *dct);
25  int (*coeff_last4)(dctcoef *dct);
26  int (*coeff_last8)(dctcoef *dct);
27  int (*coeff_level_run[13])(dctcoef *dct, x264_run_level_t *runlevel);
28  int (*coeff_level_run4)(dctcoef *dct, x264_run_level_t *runlevel);
29  int (*coeff_level_run8)(dctcoef *dct, x264_run_level_t *runlevel);
30 
32 
33 void x264_quant_init(x264_t *h, int cpu, x264_quant_function_t *pf);
34 
35 #endif
Definition: quant.h:9
Definition: bitstream.h:33
Definition: common.h:499