
Go to the source code of this file.
Functions | |
| void | Init_QOffsetMatrix (void) |
| void | CalculateOffsetParam (void) |
| void | CalculateOffset8Param (void) |
| void | free_QOffsets (void) |
Variables | |
| int ***** | LevelOffset4x4Comp |
| int ***** | LevelOffset8x8Comp |
| short *** | OffsetList4x4 |
| short *** | OffsetList8x8 |
| const int | OffsetBits |
| int | AdaptRndWeight |
| int | AdaptRndCrWeight |
Definition in file q_offsets.h.
| void CalculateOffset8Param | ( | void | ) |
Calculate the quantisation offset parameters.
Definition at line 627 of file q_offsets.c.
References InputParameters::AdaptRoundingFixed, ImageParameters::bitdepth_chroma_qp_scale, ImageParameters::bitdepth_luma_qp_scale, ImageParameters::colour_plane_id, and ImageParameters::type.
Referenced by code_a_plane(), encode_one_slice(), and encode_one_slice_MBAFF().
| void CalculateOffsetParam | ( | void | ) |
Calculation of the quantization offset params at the frame level.
Definition at line 489 of file q_offsets.c.
References InputParameters::AdaptRndCrWFactor, InputParameters::AdaptRndWFactor, InputParameters::AdaptRoundingFixed, ImageParameters::bitdepth_chroma_qp_scale, ImageParameters::bitdepth_luma_qp_scale, ImageParameters::colour_plane_id, ImageParameters::nal_reference_idc, and ImageParameters::type.
Referenced by code_a_plane(), encode_one_slice(), and encode_one_slice_MBAFF().
| void free_QOffsets | ( | void | ) |
Free Q matrix arrays.
Definition at line 188 of file q_offsets.c.
References InputParameters::AdaptRoundingFixed, free_mem2Dshort(), free_mem3Dshort(), and free_mem5Dint().
Referenced by free_global_buffers().

| void Init_QOffsetMatrix | ( | void | ) |
Initialise Q offset matrix values.
Now set up all offset params. This process could be reused if we wish to re-init offsets
Definition at line 386 of file q_offsets.c.
References allocate_QOffsets(), errortext, GetConfigFileContent(), InitOffsetParam(), InputParameters::OffsetMatrixPresentFlag, ParseQOffsetMatrix(), and InputParameters::QOffsetMatrixFile.
Referenced by init_encoder().
