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 *img, int ****ARCofAdj, int mode, int block_y, int block_x)
void update_adaptive_rounding_4x4 (ImageParameters *img, int ****ARCofAdj, int mode, int block_y, int block_x)
void store_adaptive_rounding_16x16 (ImageParameters *img, int ****ARCofAdj, int mode)
void update_adaptive_rounding_16x16 (ImageParameters *img, int ****ARCofAdj, int mode)
void update_offset_params (Macroblock *currMB, int mode, int luma_transform_size_8x8_flag)
void reset_adaptive_rounding ()
void reset_adaptive_rounding_direct ()
void update_adaptive_rounding_8x8 (RD_8x8DATA *dataTr, int ****ARCofAdj)

Variables

static const int AdaptRndCrPos [2][5]
static const int AdaptRndPos [4][5]
int ** fadjust8x8 = NULL
int ** fadjust4x4 = NULL
int *** fadjust4x4Cr = NULL
int *** fadjust8x8Cr = NULL


Detailed Description

Quantization Adaptive Rounding (JVT-N011).

Author:

Definition in file q_around.c.


Function Documentation

void reset_adaptive_rounding (  ) 

void reset_adaptive_rounding_direct (  ) 

resets adaptive rounding params for the direct mode to zero

Definition at line 245 of file q_around.c.

References ImageParameters::ARCofAdj4x4, ImageParameters::ARCofAdj8x8, ImageParameters::P444_joined, YUV400, and ImageParameters::yuv_format.

Referenced by compute_mode_RD_cost().

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

copy data from to a temporary location

Definition at line 98 of file q_around.c.

References ImageParameters::P444_joined.

Referenced by store_macroblock_parameters().

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

copy data from to a temporary location

Definition at line 45 of file q_around.c.

References ImageParameters::P444_joined.

Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High().

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

copy data from a temporary location to the actual location

Definition at line 115 of file q_around.c.

References ImageParameters::P444_joined.

Referenced by compute_mode_RD_cost().

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

copy data from a temporary location to the actual location

Definition at line 72 of file q_around.c.

References ImageParameters::P444_joined.

Referenced by Mode_Decision_for_4x4IntraBlocks_JM_High().

void update_adaptive_rounding_8x8 ( RD_8x8DATA *  dataTr,
int ****  ARCofAdj 
)

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

Definition at line 264 of file q_around.c.

References InputParameters::AdaptiveRounding, and ImageParameters::P444_joined.

Referenced by submacroblock_mode_decision(), and submacroblock_mode_decision_low().

void update_offset_params ( Macroblock *  currMB,
int  mode,
int  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