Go to the source code of this file.
Defines | |
#define | Q_BITS 15 |
#define | DQ_BITS 6 |
#define | Q_BITS_8 16 |
#define | DQ_BITS_8 6 |
Functions | |
void | init_qp_process (ImageParameters *p_Img) |
void | free_qp_matrices (ImageParameters *p_Img) |
void | assign_quant_params (Slice *currslice, pic_parameter_set_rbsp_t *pps, seq_parameter_set_rbsp_t *sps) |
void | CalculateQuant4x4Param (Slice *currslice) |
void | CalculateQuant8x8Param (Slice *currslice) |
Variables | |
static const int | dequant_coef8 [6][8][8] |
static const int | dequant_coef [6][4][4] |
static const int | quant_coef [6][4][4] |
static const int | A [4][4] |
Definition in file quant.h.
void assign_quant_params | ( | Slice * | currSlice, | |
pic_parameter_set_rbsp_t * | pps, | |||
seq_parameter_set_rbsp_t * | sps | |||
) |
For mapping the q-matrix to the active id and calculate quantisation values.
currSlice | Slice pointer | |
pps | Picture parameter set | |
sps | Sequence parameter set |
Definition at line 137 of file quant.c.
References CalculateQuant4x4Param(), CalculateQuant8x8Param(), and YUV444.
Referenced by read_new_slice().
void CalculateQuant4x4Param | ( | Slice * | currslice | ) |
For calculating the quantisation values at frame level.
Definition at line 265 of file quant.c.
References dequant_coef.
Referenced by assign_quant_params().
void CalculateQuant8x8Param | ( | Slice * | currslice | ) |
Calculate the quantisation and inverse quantisation parameters.
Definition at line 295 of file quant.c.
Referenced by assign_quant_params().
void init_qp_process | ( | ImageParameters * | p_Img | ) |
Initiate quantization process arrays.
Definition at line 86 of file quant.c.
References no_mem_exit().
Referenced by init_global_buffers().
const int A[4][4] [static] |
const int dequant_coef[6][4][4] [static] |
Dequantization coefficients.
Definition at line 90 of file quant.h.
Referenced by CalculateQuant4x4Param(), and itrans_sp().