q_around.c File Reference

Quantization Adaptive Rounding (JVT-N011). More...

#include "global.h"
#include "memalloc.h"
#include "q_offsets.h"
#include "q_around.h"

Include dependency graph for q_around.c:

Go to the source code of this file.

Functions

void store_adaptive_rounding_4x4 (ImageParameters *p_Img, int ****ARCofAdj, int mode, int block_y, int block_x)
void update_adaptive_rounding_4x4 (ImageParameters *p_Img, int ****ARCofAdj, int mode, int block_y, int block_x)
void store_adaptive_rounding_16x16 (ImageParameters *p_Img, int ****ARCofAdj, int mode)
void update_adaptive_rounding_16x16 (ImageParameters *p_Img, int ****ARCofAdj, int mode)
void update_offset_params (Macroblock *currMB, int mode, Boolean luma_transform_size_8x8_flag)
void reset_adaptive_rounding (ImageParameters *p_Img)
void reset_adaptive_rounding_direct (ImageParameters *p_Img)
void update_adaptive_rounding_8x8 (ImageParameters *p_Img, InputParameters *p_Inp, RD_8x8DATA *dataTr, int ****ARCofAdj)

Variables

static const int AdaptRndCrPos [2][5]
static const int AdaptRndPos [4][5]


Detailed Description

Quantization Adaptive Rounding (JVT-N011).

Author:

Definition in file q_around.c.


Function Documentation

void reset_adaptive_rounding ( ImageParameters p_Img  ) 

void reset_adaptive_rounding_direct ( ImageParameters p_Img  ) 

resets adaptive rounding p_Inp for the direct mode to zero

Definition at line 247 of file q_around.c.

References img_par::ARCofAdj4x4, img_par::ARCofAdj8x8, and YUV400.

Referenced by compute_mode_RD_cost().

void store_adaptive_rounding_16x16 ( ImageParameters p_Img,
int ****  ARCofAdj,
int  mode 
)

copy data from to a temporary location

Definition at line 96 of file q_around.c.

Referenced by store_macroblock_parameters().

void store_adaptive_rounding_4x4 ( ImageParameters p_Img,
int ****  ARCofAdj,
int  mode,
int  block_y,
int  block_x 
)

copy data from to a temporary location

Definition at line 43 of file q_around.c.

Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High(), and Mode_Decision_for_4x4IntraBlocks_JM_High444().

void update_adaptive_rounding_16x16 ( ImageParameters p_Img,
int ****  ARCofAdj,
int  mode 
)

copy data from a temporary location to the actual location

Definition at line 113 of file q_around.c.

Referenced by compute_mode_RD_cost().

void update_adaptive_rounding_4x4 ( ImageParameters p_Img,
int ****  ARCofAdj,
int  mode,
int  block_y,
int  block_x 
)

copy data from a temporary location to the actual location

Definition at line 70 of file q_around.c.

Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High(), and Mode_Decision_for_4x4IntraBlocks_JM_High444().

void update_adaptive_rounding_8x8 ( ImageParameters p_Img,
InputParameters p_Inp,
RD_8x8DATA *  dataTr,
int ****  ARCofAdj 
)

copy data from a temporary location to the actual location for mode P8x8

Definition at line 266 of file q_around.c.

References inp_par_enc::AdaptiveRounding.

Referenced by submacroblock_mode_decision(), and submacroblock_mode_decision_low().

void update_offset_params ( Macroblock currMB,
int  mode,
Boolean  luma_transform_size_8x8_flag 
)


Variable Documentation

const int AdaptRndCrPos[2][5] [static]

Initial value:

{
  
  {   4,   7,   1,   4,   1}, 
  {  10,  13,  10,  10,  10}  
}

Definition at line 20 of file q_around.c.

const int AdaptRndPos[4][5] [static]

Initial value:

{
  
  {   3,   6,   0,   3,   0}, 
  {   1,   2,   0,   1,   2}, 
  {   9,  12,   9,   9,   9}, 
  {   3,   4,   3,   3,   3}, 
}

Definition at line 27 of file q_around.c.


Documentation generated with DoxyGen