#include "contributors.h"
#include "global.h"
#include "memalloc.h"
#include "block.h"
#include "image.h"
#include "mb_access.h"
#include "transform.h"
#include "quant.h"

Go to the source code of this file.
Functions | |
| void | init_qp_process (ImageParameters *img) |
| void | free_qp_matrices (void) |
| void | AssignQuantParam (pic_parameter_set_rbsp_t *pps, seq_parameter_set_rbsp_t *sps) |
| void | CalculateQuantParam () |
| void | CalculateQuant8Param () |
Variables | |
| const int | dequant_coef8 [6][8][8] |
| const int | dequant_coef [6][4][4] |
| const int | quant_coef [6][4][4] |
| const int | A [4][4] |
| int | quant_intra_default [16] |
| int | quant_inter_default [16] |
| int | quant8_intra_default [64] |
| int | quant8_inter_default [64] |
| int | quant_org [16] |
| int | quant8_org [64] |
| int * | qp_per_matrix |
| int * | qp_rem_matrix |
| int | InvLevelScale4x4_Intra [3][6][4][4] |
| int | InvLevelScale4x4_Inter [3][6][4][4] |
| int | InvLevelScale8x8_Intra [3][6][8][8] |
| int | InvLevelScale8x8_Inter [3][6][8][8] |
| int * | qmatrix [12] |
Definition in file quant.c.
| void AssignQuantParam | ( | 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.
| pps | Picture parameter set | |
| sps | Sequence parameter set |
Definition at line 277 of file quant.c.
References CalculateQuant8Param(), CalculateQuantParam(), and YUV444.
Referenced by read_new_slice().

| void CalculateQuant8Param | ( | void | ) |
Calculate the quantisation and inverse quantisation parameters.
Definition at line 435 of file quant.c.
Referenced by AssignQuantParam().
| void CalculateQuantParam | ( | void | ) |
For calculating the quantisation values at frame level.
Definition at line 405 of file quant.c.
References dequant_coef.
Referenced by AssignQuantParam().
| void init_qp_process | ( | ImageParameters * | img | ) |
Initiate quantization process arrays.
Definition at line 234 of file quant.c.
References no_mem_exit().
Referenced by init_frext().

| const int A[4][4] |
| const int dequant_coef[6][4][4] |
Dequantization coefficients.
Definition at line 91 of file quant.c.
Referenced by CalculateQuantParam(), and itrans_sp().
| int quant8_inter_default[64] |
| int quant8_intra_default[64] |
| int quant8_org[64] |
| int quant_inter_default[16] |
| int quant_intra_default[16] |
| int quant_org[16] |