rdoq.c File Reference

Rate Distortion Optimized Quantization based on VCEG-AH21. More...

#include "contributors.h"
#include <math.h>
#include <float.h>
#include "global.h"
#include "image.h"
#include "fmo.h"
#include "macroblock.h"
#include "mb_access.h"
#include "ratectl.h"
#include "rdoq.h"
#include "mv-search.h"

Include dependency graph for rdoq.c:

Go to the source code of this file.

Defines

#define RDOQ_BASE   0

Functions

void init_rdoq_slice (int slice_type, int symbol_mode)
int init_trellis_data_DC_cr_CAVLC (int **tblock, int qp_per, int qp_rem, int levelscale, int leveloffset, const byte *p_scan, Macroblock *currMB, levelDataStruct *dataLevel)
int init_trellis_data_DC_cr_CABAC (int **tblock, int qp_per, int qp_rem, int levelscale, int leveloffset, const byte *p_scan, Macroblock *currMB, levelDataStruct *dataLevel, int *kStart, int *kStop)
void trellis_mp (Slice *currSlice, Macroblock *currMB, int CurrentMbAddr, Boolean prev_recode_mb)
void trellis_sp (Slice *currSlice, Macroblock *currMB, int CurrentMbAddr, Boolean prev_recode_mb)
void trellis_coding (Slice *currSlice, Macroblock *currMB, int CurrentMbAddr, Boolean prev_recode_mb)
void RDOQ_update_mode (RD_PARAMS *enc_mb, int bslice)
void copy_rddata_trellis (RD_DATA *dest, RD_DATA *src)
void updateMV_mp (int *m_cost, short ref, int list, int h, int v, int blocktype, int *lambda_factor, int block8x8)

Variables

const int estErr4x4 [6][4][4]
const int estErr8x8 [6][8][8]
double norm_factor_4x4
double norm_factor_8x8


Detailed Description

Rate Distortion Optimized Quantization based on VCEG-AH21.

Definition in file rdoq.c.


Function Documentation

void init_rdoq_slice ( int  slice_type,
int  symbol_mode 
)

Initialize the parameters related to RDO_Q in slice level.

Definition at line 139 of file rdoq.c.

Referenced by init_slice().

int init_trellis_data_DC_cr_CABAC ( int **  tblock,
int  qp_per,
int  qp_rem,
int  levelscale,
int  leveloffset,
const byte *  p_scan,
Macroblock *  currMB,
levelDataStruct *  dataLevel,
int *  kStart,
int *  kStop 
)

Initialize levelData for Chroma DC.

Definition at line 232 of file rdoq.c.

References ImageParameters::num_cdc_coeff.

Referenced by rdoq_dc_cr_CABAC().

int init_trellis_data_DC_cr_CAVLC ( int **  tblock,
int  qp_per,
int  qp_rem,
int  levelscale,
int  leveloffset,
const byte *  p_scan,
Macroblock *  currMB,
levelDataStruct *  dataLevel 
)

Initialize levelData for Chroma DC.

Definition at line 152 of file rdoq.c.

References ImageParameters::num_cdc_coeff.

Referenced by rdoq_dc_cr_CAVLC().


Documentation generated with DoxyGen