quantChroma_trellis.c File Reference

Quantization process for a Chroma block (trellis based). More...

#include "contributors.h"
#include <math.h>
#include "global.h"
#include "q_matrix.h"
#include "quant4x4.h"
#include "quantChroma.h"
#include "rdoq.h"

Include dependency graph for quantChroma_trellis.c:

Go to the source code of this file.

Functions

int quant_dc2x2_trellis (Macroblock *currMB, int **tblock, int qp, int *DCLevel, int *DCRun, LevelQuantParams *q_params_4x4, int **fadjust, const byte(*pos_scan)[2])
int quant_dc4x2_trellis (Macroblock *currMB, int **tblock, int qp, int *DCLevel, int *DCRun, LevelQuantParams *q_params_4x4, int **fadjust, const byte(*pos_scan)[2])
void rdoq_dc_cr_CAVLC (Macroblock *currMB, int **tblock, int qp_per, int qp_rem, LevelQuantParams *q_params_4x4, const byte(*pos_scan)[2], int levelTrellis[], int type)
void rdoq_dc_cr_CABAC (Macroblock *currMB, int **tblock, int qp_per, int qp_rem, LevelQuantParams *q_params_4x4, const byte(*pos_scan)[2], int levelTrellis[], int type)


Detailed Description

Quantization process for a Chroma block (trellis based).

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file quantChroma_trellis.c.


Function Documentation

int quant_dc2x2_trellis ( Macroblock currMB,
int **  tblock,
int  qp,
int *  DCLevel,
int *  DCRun,
LevelQuantParams *  q_params_4x4,
int **  fadjust,
const byte(*)  pos_scan[2] 
)

Quantization process for All coefficients for a 2x2 DC block.

Input:
Output:

Definition at line 37 of file quantChroma_trellis.c.

References macroblock::p_Img, and macroblock::p_slice.

Referenced by init_quant_Chroma().

int quant_dc4x2_trellis ( Macroblock currMB,
int **  tblock,
int  qp,
int *  DCLevel,
int *  DCRun,
LevelQuantParams *  q_params_4x4,
int **  fadjust,
const byte(*)  pos_scan[2] 
)

Quantization process for All coefficients for a 2x2 DC block.

Input:
Output:

Definition at line 114 of file quantChroma_trellis.c.

References macroblock::p_Img, and macroblock::p_slice.

Referenced by init_quant_Chroma().

void rdoq_dc_cr_CABAC ( Macroblock currMB,
int **  tblock,
int  qp_per,
int  qp_rem,
LevelQuantParams *  q_params_4x4,
const byte(*)  pos_scan[2],
int  levelTrellis[],
int  type 
)

Rate distortion optimized Quantization process for all coefficients in a chroma DC block.

Definition at line 215 of file quantChroma_trellis.c.

References est_write_and_store_CBP_block_bit(), est_writeRunLevel_CABAC(), init_trellis_data_DC_cr_CABAC(), img_par::lambda_md, img_par::masterQP, and macroblock::p_Img.

Referenced by init_quant_Chroma().

Here is the call graph for this function:

void rdoq_dc_cr_CAVLC ( Macroblock currMB,
int **  tblock,
int  qp_per,
int  qp_rem,
LevelQuantParams *  q_params_4x4,
const byte(*)  pos_scan[2],
int  levelTrellis[],
int  type 
)

Rate distortion optimized Quantization process for all coefficients in a chroma DC block.

Definition at line 186 of file quantChroma_trellis.c.

References est_RunLevel_CAVLC(), init_trellis_data_DC_cr_CAVLC(), img_par::lambda_md, img_par::masterQP, and macroblock::p_Img.

Referenced by init_quant_Chroma().

Here is the call graph for this function:


Documentation generated with DoxyGen