q_offsets.h File Reference

Headerfile for q_offsets array. More...

This graph shows which files directly or indirectly include this file:

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


Detailed Description

Headerfile for q_offsets array.

q_offsets.h

Date:
18. Nov 2004

Definition in file q_offsets.h.


Function Documentation

void CalculateOffset4x4Param ( ImageParameters p_Img,
InputParameters p_Inp 
)

Calculation of the quantization offset parameters at the frame level.

Input:
none
Output:
none

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Documentation generated with DoxyGen