Go to the source code of this file.
Functions | |
void | Init_QOffsetMatrix (ImageParameters *p_Img, InputParameters *p_Inp) |
void | CalculateOffset4x4Param (ImageParameters *p_Img, InputParameters *p_Inp) |
void | CalculateOffset8x8Param (ImageParameters *p_Img, InputParameters *p_Inp) |
void | free_QOffsets (QuantParameters *p_Quant, InputParameters *p_Inp) |
Variables | |
static const int | OffsetBits = 11 |
Definition in file q_offsets.h.
void CalculateOffset4x4Param | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
Calculation of the quantization offset parameters at the frame level.
Definition at line 497 of file q_offsets.c.
References inp_par_enc::AdaptRndCrWFactor, inp_par_enc::AdaptRndWFactor, and inp_par_enc::AdaptRoundingFixed.
Referenced by code_a_plane(), encode_one_slice(), and encode_one_slice_MBAFF().
void CalculateOffset8x8Param | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
Calculate the quantisation offset parameters.
Definition at line 581 of file q_offsets.c.
References inp_par_enc::AdaptRoundingFixed.
Referenced by code_a_plane(), encode_one_slice(), and encode_one_slice_MBAFF().
void free_QOffsets | ( | QuantParameters * | p_Quant, | |
InputParameters * | p_Inp | |||
) |
Free Q matrix arrays.
Definition at line 196 of file q_offsets.c.
References inp_par_enc::AdaptRoundingFixed, free_mem2Dshort(), and free_mem3Dshort().
Referenced by free_global_buffers().
void Init_QOffsetMatrix | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
Initialise Q offset matrix values.
Now set up all offset p_Inp. This process could be reused if we wish to re-init offsets
Definition at line 394 of file q_offsets.c.
References allocate_QOffsets(), errortext, GetConfigFileContent(), InitOffsetParam(), inp_par_enc::OffsetMatrixPresentFlag, ParseQOffsetMatrix(), and inp_par_enc::QOffsetMatrixFile.
Referenced by init_encoder().