HEVC Test Model (HM)  HM-16.3
TComRom.h File Reference

global variables & functions (header) More...

#include "CommonDef.h"
#include <stdio.h>
#include <iostream>
Include dependency graph for TComRom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define MAX_CU_DEPTH   6
 
#define MAX_CU_SIZE   (1<<(MAX_CU_DEPTH))
 
#define MIN_PU_SIZE   4
 
#define MIN_TU_SIZE   4
 
#define MAX_TU_SIZE   32
 
#define MAX_NUM_SPU_W   (MAX_CU_SIZE/MIN_PU_SIZE)
 
#define SCALING_LIST_REM_NUM   6
 
#define QUANT_SHIFT   14
 
#define IQUANT_SHIFT   6
 
#define SCALE_BITS   15
 
#define SQRT2   11585
 
#define SQRT2_SHIFT   13
 
#define INVSQRT2   11585
 
#define INVSQRT2_SHIFT   14
 
#define ADDITIONAL_MULTIPLIER_BITS   14
 
#define SHIFT_INV_1ST   7
 
#define SHIFT_INV_2ND   12
 
#define CONTEXT_STATE_BITS   6
 
#define LAST_SIGNIFICANT_GROUPS   10
 
#define ENC_DEC_TRACE   1
 
#define COUNTER_START   1
 
#define COUNTER_END   0
 
#define DTRACE_CABAC_F(x)   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%f", x );
 
#define DTRACE_CABAC_V(x)   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%d", x );
 
#define DTRACE_CABAC_VL(x)   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%lld", x );
 
#define DTRACE_CABAC_T(x)   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%s", x );
 
#define DTRACE_CABAC_X(x)   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%x", x );
 
#define DTRACE_CABAC_R(x, y)   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, x, y );
 
#define DTRACE_CABAC_N   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "\n" );
 
#define SCALING_LIST_NUM   (MAX_NUM_COMPONENT * NUMBER_OF_PREDICTION_MODES)
 list number for quantization matrix More...
 
#define SCALING_LIST_START_VALUE   8
 start value for dpcm mode More...
 
#define MAX_MATRIX_COEF_NUM   64
 max coefficient number for quantization matrix More...
 
#define MAX_MATRIX_SIZE_NUM   8
 max size number for quantization matrix More...
 
#define SCALING_LIST_BITS   8
 bit depth of scaling list entries More...
 
#define LOG2_SCALING_LIST_NEUTRAL_VALUE   4
 log2 of the value that, when used in a scaling list, has no effect on quantisation More...
 
#define SCALING_LIST_DC   16
 default DC value More...
 
UInt g_auiZscanToRaster [((1<<(6))/4)*((1<<(6))/4)]
 
UInt g_auiRasterToZscan [((1<<(6))/4)*((1<<(6))/4)]
 
UIntg_scanOrder [SCAN_NUMBER_OF_GROUP_TYPES][SCAN_NUMBER_OF_TYPES][6][6]
 
UInt g_auiRasterToPelX [((1<<(6))/4)*((1<<(6))/4)]
 
UInt g_auiRasterToPelY [((1<<(6))/4)*((1<<(6))/4)]
 
UInt g_uiMaxCUWidth
 
UInt g_uiMaxCUHeight
 
UInt g_uiMaxCUDepth
 
UInt g_uiAddCUDepth
 
UInt g_auiPUOffset [NUMBER_OF_PART_SIZES]
 
Int g_maxTrDynamicRange [MAX_NUM_CHANNEL_TYPE]
 
Int g_quantScales [6]
 
Int g_invQuantScales [6]
 
static const Int g_transformMatrixShift [TRANSFORM_NUMBER_OF_DIRECTIONS] = { 6, 6 }
 
const TMatrixCoeff g_aiT4 [TRANSFORM_NUMBER_OF_DIRECTIONS][4][4]
 
const TMatrixCoeff g_aiT8 [TRANSFORM_NUMBER_OF_DIRECTIONS][8][8]
 
const TMatrixCoeff g_aiT16 [TRANSFORM_NUMBER_OF_DIRECTIONS][16][16]
 
const TMatrixCoeff g_aiT32 [TRANSFORM_NUMBER_OF_DIRECTIONS][32][32]
 
static const Int chromaQPMappingTableSize = 58
 
const UChar g_aucChromaScale [NUM_CHROMA_FORMAT][chromaQPMappingTableSize]
 
const UInt ctxIndMap4x4 [4 *4]
 
const UInt g_uiGroupIdx [32]
 
const UInt g_uiMinInGroup [10]
 
const UChar g_aucIntraModeNumFast [6]
 
const UChar g_chroma422IntraAngleMappingTable [36]
 
Int g_bitDepth [MAX_NUM_CHANNEL_TYPE]
 
Int g_PCMBitDepth [MAX_NUM_CHANNEL_TYPE]
 
const TMatrixCoeff g_as_DST_MAT_4 [TRANSFORM_NUMBER_OF_DIRECTIONS][4][4]
 
Char g_aucConvertToBit [(1<<(6))+1]
 
FILE * g_hTrace
 
Bool g_bJustDoIt
 
const Bool g_bEncDecTraceEnable
 
const Bool g_bEncDecTraceDisable
 
Bool g_HLSTraceEnable
 
UInt64 g_nSymbolCounter
 
const CharMatrixType [SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
 
const CharMatrixType_DC [SCALING_LIST_SIZE_NUM][(MAX_NUM_COMPONENT *NUMBER_OF_PREDICTION_MODES)]
 
Int g_quantTSDefault4x4 [4 *4]
 
Int g_quantIntraDefault8x8 [8 *8]
 
Int g_quantInterDefault8x8 [8 *8]
 
UInt g_scalingListSize [SCALING_LIST_SIZE_NUM]
 
UInt g_scalingListSizeX [SCALING_LIST_SIZE_NUM]
 
UInt g_scalingListNum [SCALING_LIST_SIZE_NUM]
 
Void initROM ()
 
Void destroyROM ()
 
Void initZscanToRaster (Int iMaxDepth, Int iDepth, UInt uiStartVal, UInt *&rpuiCurrIdx)
 
Void initRasterToZscan (UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxDepth)
 
Void initRasterToPelXY (UInt uiMaxCUWidth, UInt uiMaxCUHeight, UInt uiMaxDepth)
 

Detailed Description

global variables & functions (header)

Definition in file TComRom.h.