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

global variables & functions More...

#include "TComRom.h"
#include <memory.h>
#include <stdlib.h>
#include <stdio.h>
#include <iomanip>
#include <assert.h>
#include "TComDataCU.h"
#include "Debug.h"
Include dependency graph for TComRom.cpp:

Go to the source code of this file.

Classes

class  ScanGenerator
 
#define DEFINE_DST4x4_MATRIX(a, b, c, d)
 
#define DEFINE_DCT4x4_MATRIX(a, b, c)
 
#define DEFINE_DCT8x8_MATRIX(a, b, c, d, e, f, g)
 
#define DEFINE_DCT16x16_MATRIX(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
 
#define DEFINE_DCT32x32_MATRIX(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E)
 
UInt g_uiMaxCUWidth = (1<<( 6 ))
 
UInt g_uiMaxCUHeight = (1<<( 6 ))
 
UInt g_uiMaxCUDepth = 6
 
UInt g_uiAddCUDepth = 0
 
UInt g_auiZscanToRaster [((1<<(6))/4)*((1<<(6))/4)] = { 0, }
 
UInt g_auiRasterToZscan [((1<<(6))/4)*((1<<(6))/4)] = { 0, }
 
UInt g_auiRasterToPelX [((1<<(6))/4)*((1<<(6))/4)] = { 0, }
 
UInt g_auiRasterToPelY [((1<<(6))/4)*((1<<(6))/4)] = { 0, }
 
UInt g_auiPUOffset [NUMBER_OF_PART_SIZES] = { 0, 8, 4, 4, 2, 10, 1, 5}
 
Int g_maxTrDynamicRange [MAX_NUM_CHANNEL_TYPE]
 
Int g_quantScales [6]
 
Int g_invQuantScales [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]
 
const TMatrixCoeff g_as_DST_MAT_4 [TRANSFORM_NUMBER_OF_DIRECTIONS][4][4]
 
const UChar g_aucChromaScale [NUM_CHROMA_FORMAT][chromaQPMappingTableSize]
 
const UChar g_aucIntraModeNumFast [6]
 
const UChar g_chroma422IntraAngleMappingTable [36]
 
Int g_bitDepth [MAX_NUM_CHANNEL_TYPE] = {8, 8}
 
Int g_PCMBitDepth [MAX_NUM_CHANNEL_TYPE] = {8, 8}
 
Char g_aucConvertToBit [(1<<(6))+1]
 
FILE * g_hTrace = 0
 
const Bool g_bEncDecTraceEnable = true
 
const Bool g_bEncDecTraceDisable = false
 
Bool g_HLSTraceEnable = true
 
Bool g_bJustDoIt = false
 
UInt64 g_nSymbolCounter = 0
 
UIntg_scanOrder [SCAN_NUMBER_OF_GROUP_TYPES][SCAN_NUMBER_OF_TYPES][6][6]
 
const UInt ctxIndMap4x4 [4 *4]
 
const UInt g_uiMinInGroup [10] = {0,1,2,3,4,6,8,12,16,24}
 
const UInt g_uiGroupIdx [32] = {0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9}
 
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] = {16,64,256,1024}
 
UInt g_scalingListSizeX [SCALING_LIST_SIZE_NUM] = { 4, 8, 16, 32}
 
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

Definition in file TComRom.cpp.

Macro Definition Documentation

#define DEFINE_DCT16x16_MATRIX (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
  k,
  l,
  m,
  n,
 
)
Value:
{ \
{ a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a}, \
{ h, i, j, k, l, m, n, o, -o, -n, -m, -l, -k, -j, -i, -h}, \
{ d, e, f, g, -g, -f, -e, -d, -d, -e, -f, -g, g, f, e, d}, \
{ i, l, o, -m, -j, -h, -k, -n, n, k, h, j, m, -o, -l, -i}, \
{ b, c, -c, -b, -b, -c, c, b, b, c, -c, -b, -b, -c, c, b}, \
{ j, o, -k, -i, -n, l, h, m, -m, -h, -l, n, i, k, -o, -j}, \
{ e, -g, -d, -f, f, d, g, -e, -e, g, d, f, -f, -d, -g, e}, \
{ k, -m, -i, o, h, n, -j, -l, l, j, -n, -h, -o, i, m, -k}, \
{ a, -a, -a, a, a, -a, -a, a, a, -a, -a, a, a, -a, -a, a}, \
{ l, -j, -n, h, -o, -i, m, k, -k, -m, i, o, -h, n, j, -l}, \
{ f, -d, g, e, -e, -g, d, -f, -f, d, -g, -e, e, g, -d, f}, \
{ m, -h, l, n, -i, k, o, -j, j, -o, -k, i, -n, -l, h, -m}, \
{ c, -b, b, -c, -c, b, -b, c, c, -b, b, -c, -c, b, -b, c}, \
{ n, -k, h, -j, m, o, -l, i, -i, l, -o, -m, j, -h, k, -n}, \
{ g, -f, e, -d, d, -e, f, -g, -g, f, -e, d, -d, e, -f, g}, \
{ o, -n, m, -l, k, -j, i, -h, h, -i, j, -k, l, -m, n, -o} \
}

Definition at line 369 of file TComRom.cpp.

#define DEFINE_DCT32x32_MATRIX (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
  k,
  l,
  m,
  n,
  o,
  p,
  q,
  r,
  s,
  t,
  u,
  v,
  w,
  x,
  y,
  z,
  A,
  B,
  C,
  D,
 
)

Definition at line 389 of file TComRom.cpp.

#define DEFINE_DCT4x4_MATRIX (   a,
  b,
 
)
Value:
{ \
{ a, a, a, a}, \
{ b, c, -c, -b}, \
{ a, -a, -a, a}, \
{ c, -b, b, -c} \
}

Definition at line 349 of file TComRom.cpp.

#define DEFINE_DCT8x8_MATRIX (   a,
  b,
  c,
  d,
  e,
  f,
 
)
Value:
{ \
{ a, a, a, a, a, a, a, a}, \
{ d, e, f, g, -g, -f, -e, -d}, \
{ b, c, -c, -b, -b, -c, c, b}, \
{ e, -g, -d, -f, f, d, g, -e}, \
{ a, -a, -a, a, a, -a, -a, a}, \
{ f, -d, g, e, -e, -g, d, -f}, \
{ c, -b, b, -c, -c, b, -b, c}, \
{ g, -f, e, -d, d, -e, f, -g} \
}

Definition at line 357 of file TComRom.cpp.

#define DEFINE_DST4x4_MATRIX (   a,
  b,
  c,
 
)
Value:
{ \
{ a, b, c, d }, \
{ c, c, 0, -c }, \
{ d, -a, -c, b }, \
{ b, -d, c, -a }, \
}

Definition at line 341 of file TComRom.cpp.

Function Documentation

Void destroyROM ( )

Definition at line 230 of file TComRom.cpp.

Void initRasterToPelXY ( UInt  uiMaxCUWidth,
UInt  uiMaxCUHeight,
UInt  uiMaxDepth 
)

Definition at line 295 of file TComRom.cpp.

Void initRasterToZscan ( UInt  uiMaxCUWidth,
UInt  uiMaxCUHeight,
UInt  uiMaxDepth 
)

Definition at line 281 of file TComRom.cpp.

Void initROM ( )

Definition at line 146 of file TComRom.cpp.

Void initZscanToRaster ( Int  iMaxDepth,
Int  iDepth,
UInt  uiStartVal,
UInt *&  rpuiCurrIdx 
)

Definition at line 262 of file TComRom.cpp.

Variable Documentation

const UInt ctxIndMap4x4[4 *4]
Initial value:
=
{
0, 1, 4, 5,
2, 3, 4, 5,
6, 6, 8, 8,
7, 7, 8, 8
}

Definition at line 575 of file TComRom.cpp.

Initial value:
=
{
{ { 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 }, { 90 , 87 , 80 , 70 , 57 , 43 , 25 , 9 , - 9 , - 25 , - 43 , - 57 , - 70 , - 80 , - 87 , - 90 }, { 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 , - 89 , - 75 , - 50 , - 18 , 18 , 50 , 75 , 89 }, { 87 , 57 , 9 , - 43 , - 80 , - 90 , - 70 , - 25 , 25 , 70 , 90 , 80 , 43 , - 9 , - 57 , - 87 }, { 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 }, { 80 , 9 , - 70 , - 87 , - 25 , 57 , 90 , 43 , - 43 , - 90 , - 57 , 25 , 87 , 70 , - 9 , - 80 }, { 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 , - 75 , 18 , 89 , 50 , - 50 , - 89 , - 18 , 75 }, { 70 , - 43 , - 87 , 9 , 90 , 25 , - 80 , - 57 , 57 , 80 , - 25 , - 90 , - 9 , 87 , 43 , - 70 }, { 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 }, { 57 , - 80 , - 25 , 90 , - 9 , - 87 , 43 , 70 , - 70 , - 43 , 87 , 9 , - 90 , 25 , 80 , - 57 }, { 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 , - 50 , 89 , - 18 , - 75 , 75 , 18 , - 89 , 50 }, { 43 , - 90 , 57 , 25 , - 87 , 70 , 9 , - 80 , 80 , - 9 , - 70 , 87 , - 25 , - 57 , 90 , - 43 }, { 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 }, { 25 , - 70 , 90 , - 80 , 43 , 9 , - 57 , 87 , - 87 , 57 , - 9 , - 43 , 80 , - 90 , 70 , - 25 }, { 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 , - 18 , 50 , - 75 , 89 , - 89 , 75 , - 50 , 18 }, { 9 , - 25 , 43 , - 57 , 70 , - 80 , 87 , - 90 , 90 , - 87 , 80 , - 70 , 57 , - 43 , 25 , - 9 } },
{ { 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 }, { 90 , 87 , 80 , 70 , 57 , 43 , 25 , 9 , - 9 , - 25 , - 43 , - 57 , - 70 , - 80 , - 87 , - 90 }, { 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 , - 89 , - 75 , - 50 , - 18 , 18 , 50 , 75 , 89 }, { 87 , 57 , 9 , - 43 , - 80 , - 90 , - 70 , - 25 , 25 , 70 , 90 , 80 , 43 , - 9 , - 57 , - 87 }, { 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 }, { 80 , 9 , - 70 , - 87 , - 25 , 57 , 90 , 43 , - 43 , - 90 , - 57 , 25 , 87 , 70 , - 9 , - 80 }, { 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 , - 75 , 18 , 89 , 50 , - 50 , - 89 , - 18 , 75 }, { 70 , - 43 , - 87 , 9 , 90 , 25 , - 80 , - 57 , 57 , 80 , - 25 , - 90 , - 9 , 87 , 43 , - 70 }, { 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 }, { 57 , - 80 , - 25 , 90 , - 9 , - 87 , 43 , 70 , - 70 , - 43 , 87 , 9 , - 90 , 25 , 80 , - 57 }, { 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 , - 50 , 89 , - 18 , - 75 , 75 , 18 , - 89 , 50 }, { 43 , - 90 , 57 , 25 , - 87 , 70 , 9 , - 80 , 80 , - 9 , - 70 , 87 , - 25 , - 57 , 90 , - 43 }, { 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 }, { 25 , - 70 , 90 , - 80 , 43 , 9 , - 57 , 87 , - 87 , 57 , - 9 , - 43 , 80 , - 90 , 70 , - 25 }, { 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 , - 18 , 50 , - 75 , 89 , - 89 , 75 , - 50 , 18 }, { 9 , - 25 , 43 , - 57 , 70 , - 80 , 87 , - 90 , 90 , - 87 , 80 , - 70 , 57 , - 43 , 25 , - 9 } }
}

Definition at line 474 of file TComRom.cpp.

Initial value:
=
{
{ { 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 }, { 90 , 90 , 88 , 85 , 82 , 78 , 73 , 67 , 61 , 54 , 46 , 38 , 31 , 22 , 13 , 4 , - 4 , - 13 , - 22 , - 31 , - 38 , - 46 , - 54 , - 61 , - 67 , - 73 , - 78 , - 82 , - 85 , - 88 , - 90 , - 90 }, { 90 , 87 , 80 , 70 , 57 , 43 , 25 , 9 , - 9 , - 25 , - 43 , - 57 , - 70 , - 80 , - 87 , - 90 , - 90 , - 87 , - 80 , - 70 , - 57 , - 43 , - 25 , - 9 , 9 , 25 , 43 , 57 , 70 , 80 , 87 , 90 }, { 90 , 82 , 67 , 46 , 22 , - 4 , - 31 , - 54 , - 73 , - 85 , - 90 , - 88 , - 78 , - 61 , - 38 , - 13 , 13 , 38 , 61 , 78 , 88 , 90 , 85 , 73 , 54 , 31 , 4 , - 22 , - 46 , - 67 , - 82 , - 90 }, { 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 , - 89 , - 75 , - 50 , - 18 , 18 , 50 , 75 , 89 , 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 , - 89 , - 75 , - 50 , - 18 , 18 , 50 , 75 , 89 }, { 88 , 67 , 31 , - 13 , - 54 , - 82 , - 90 , - 78 , - 46 , - 4 , 38 , 73 , 90 , 85 , 61 , 22 , - 22 , - 61 , - 85 , - 90 , - 73 , - 38 , 4 , 46 , 78 , 90 , 82 , 54 , 13 , - 31 , - 67 , - 88 }, { 87 , 57 , 9 , - 43 , - 80 , - 90 , - 70 , - 25 , 25 , 70 , 90 , 80 , 43 , - 9 , - 57 , - 87 , - 87 , - 57 , - 9 , 43 , 80 , 90 , 70 , 25 , - 25 , - 70 , - 90 , - 80 , - 43 , 9 , 57 , 87 }, { 85 , 46 , - 13 , - 67 , - 90 , - 73 , - 22 , 38 , 82 , 88 , 54 , - 4 , - 61 , - 90 , - 78 , - 31 , 31 , 78 , 90 , 61 , 4 , - 54 , - 88 , - 82 , - 38 , 22 , 73 , 90 , 67 , 13 , - 46 , - 85 }, { 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 }, { 82 , 22 , - 54 , - 90 , - 61 , 13 , 78 , 85 , 31 , - 46 , - 90 , - 67 , 4 , 73 , 88 , 38 , - 38 , - 88 , - 73 , - 4 , 67 , 90 , 46 , - 31 , - 85 , - 78 , - 13 , 61 , 90 , 54 , - 22 , - 82 }, { 80 , 9 , - 70 , - 87 , - 25 , 57 , 90 , 43 , - 43 , - 90 , - 57 , 25 , 87 , 70 , - 9 , - 80 , - 80 , - 9 , 70 , 87 , 25 , - 57 , - 90 , - 43 , 43 , 90 , 57 , - 25 , - 87 , - 70 , 9 , 80 }, { 78 , - 4 , - 82 , - 73 , 13 , 85 , 67 , - 22 , - 88 , - 61 , 31 , 90 , 54 , - 38 , - 90 , - 46 , 46 , 90 , 38 , - 54 , - 90 , - 31 , 61 , 88 , 22 , - 67 , - 85 , - 13 , 73 , 82 , 4 , - 78 }, { 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 , - 75 , 18 , 89 , 50 , - 50 , - 89 , - 18 , 75 , 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 , - 75 , 18 , 89 , 50 , - 50 , - 89 , - 18 , 75 }, { 73 , - 31 , - 90 , - 22 , 78 , 67 , - 38 , - 90 , - 13 , 82 , 61 , - 46 , - 88 , - 4 , 85 , 54 , - 54 , - 85 , 4 , 88 , 46 , - 61 , - 82 , 13 , 90 , 38 , - 67 , - 78 , 22 , 90 , 31 , - 73 }, { 70 , - 43 , - 87 , 9 , 90 , 25 , - 80 , - 57 , 57 , 80 , - 25 , - 90 , - 9 , 87 , 43 , - 70 , - 70 , 43 , 87 , - 9 , - 90 , - 25 , 80 , 57 , - 57 , - 80 , 25 , 90 , 9 , - 87 , - 43 , 70 }, { 67 , - 54 , - 78 , 38 , 85 , - 22 , - 90 , 4 , 90 , 13 , - 88 , - 31 , 82 , 46 , - 73 , - 61 , 61 , 73 , - 46 , - 82 , 31 , 88 , - 13 , - 90 , - 4 , 90 , 22 , - 85 , - 38 , 78 , 54 , - 67 }, { 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 }, { 61 , - 73 , - 46 , 82 , 31 , - 88 , - 13 , 90 , - 4 , - 90 , 22 , 85 , - 38 , - 78 , 54 , 67 , - 67 , - 54 , 78 , 38 , - 85 , - 22 , 90 , 4 , - 90 , 13 , 88 , - 31 , - 82 , 46 , 73 , - 61 }, { 57 , - 80 , - 25 , 90 , - 9 , - 87 , 43 , 70 , - 70 , - 43 , 87 , 9 , - 90 , 25 , 80 , - 57 , - 57 , 80 , 25 , - 90 , 9 , 87 , - 43 , - 70 , 70 , 43 , - 87 , - 9 , 90 , - 25 , - 80 , 57 }, { 54 , - 85 , - 4 , 88 , - 46 , - 61 , 82 , 13 , - 90 , 38 , 67 , - 78 , - 22 , 90 , - 31 , - 73 , 73 , 31 , - 90 , 22 , 78 , - 67 , - 38 , 90 , - 13 , - 82 , 61 , 46 , - 88 , 4 , 85 , - 54 }, { 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 , - 50 , 89 , - 18 , - 75 , 75 , 18 , - 89 , 50 , 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 , - 50 , 89 , - 18 , - 75 , 75 , 18 , - 89 , 50 }, { 46 , - 90 , 38 , 54 , - 90 , 31 , 61 , - 88 , 22 , 67 , - 85 , 13 , 73 , - 82 , 4 , 78 , - 78 , - 4 , 82 , - 73 , - 13 , 85 , - 67 , - 22 , 88 , - 61 , - 31 , 90 , - 54 , - 38 , 90 , - 46 }, { 43 , - 90 , 57 , 25 , - 87 , 70 , 9 , - 80 , 80 , - 9 , - 70 , 87 , - 25 , - 57 , 90 , - 43 , - 43 , 90 , - 57 , - 25 , 87 , - 70 , - 9 , 80 , - 80 , 9 , 70 , - 87 , 25 , 57 , - 90 , 43 }, { 38 , - 88 , 73 , - 4 , - 67 , 90 , - 46 , - 31 , 85 , - 78 , 13 , 61 , - 90 , 54 , 22 , - 82 , 82 , - 22 , - 54 , 90 , - 61 , - 13 , 78 , - 85 , 31 , 46 , - 90 , 67 , 4 , - 73 , 88 , - 38 }, { 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 }, { 31 , - 78 , 90 , - 61 , 4 , 54 , - 88 , 82 , - 38 , - 22 , 73 , - 90 , 67 , - 13 , - 46 , 85 , - 85 , 46 , 13 , - 67 , 90 , - 73 , 22 , 38 , - 82 , 88 , - 54 , - 4 , 61 , - 90 , 78 , - 31 }, { 25 , - 70 , 90 , - 80 , 43 , 9 , - 57 , 87 , - 87 , 57 , - 9 , - 43 , 80 , - 90 , 70 , - 25 , - 25 , 70 , - 90 , 80 , - 43 , - 9 , 57 , - 87 , 87 , - 57 , 9 , 43 , - 80 , 90 , - 70 , 25 }, { 22 , - 61 , 85 , - 90 , 73 , - 38 , - 4 , 46 , - 78 , 90 , - 82 , 54 , - 13 , - 31 , 67 , - 88 , 88 , - 67 , 31 , 13 , - 54 , 82 , - 90 , 78 , - 46 , 4 , 38 , - 73 , 90 , - 85 , 61 , - 22 }, { 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 , - 18 , 50 , - 75 , 89 , - 89 , 75 , - 50 , 18 , 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 , - 18 , 50 , - 75 , 89 , - 89 , 75 , - 50 , 18 }, { 13 , - 38 , 61 , - 78 , 88 , - 90 , 85 , - 73 , 54 , - 31 , 4 , 22 , - 46 , 67 , - 82 , 90 , - 90 , 82 , - 67 , 46 , - 22 , - 4 , 31 , - 54 , 73 , - 85 , 90 , - 88 , 78 , - 61 , 38 , - 13 }, { 9 , - 25 , 43 , - 57 , 70 , - 80 , 87 , - 90 , 90 , - 87 , 80 , - 70 , 57 , - 43 , 25 , - 9 , - 9 , 25 , - 43 , 57 , - 70 , 80 , - 87 , 90 , - 90 , 87 , - 80 , 70 , - 57 , 43 , - 25 , 9 }, { 4 , - 13 , 22 , - 31 , 38 , - 46 , 54 , - 61 , 67 , - 73 , 78 , - 82 , 85 , - 88 , 90 , - 90 , 90 , - 90 , 88 , - 85 , 82 , - 78 , 73 , - 67 , 61 , - 54 , 46 , - 38 , 31 , - 22 , 13 , - 4 } },
{ { 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 }, { 90 , 90 , 88 , 85 , 82 , 78 , 73 , 67 , 61 , 54 , 46 , 38 , 31 , 22 , 13 , 4 , - 4 , - 13 , - 22 , - 31 , - 38 , - 46 , - 54 , - 61 , - 67 , - 73 , - 78 , - 82 , - 85 , - 88 , - 90 , - 90 }, { 90 , 87 , 80 , 70 , 57 , 43 , 25 , 9 , - 9 , - 25 , - 43 , - 57 , - 70 , - 80 , - 87 , - 90 , - 90 , - 87 , - 80 , - 70 , - 57 , - 43 , - 25 , - 9 , 9 , 25 , 43 , 57 , 70 , 80 , 87 , 90 }, { 90 , 82 , 67 , 46 , 22 , - 4 , - 31 , - 54 , - 73 , - 85 , - 90 , - 88 , - 78 , - 61 , - 38 , - 13 , 13 , 38 , 61 , 78 , 88 , 90 , 85 , 73 , 54 , 31 , 4 , - 22 , - 46 , - 67 , - 82 , - 90 }, { 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 , - 89 , - 75 , - 50 , - 18 , 18 , 50 , 75 , 89 , 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 , - 89 , - 75 , - 50 , - 18 , 18 , 50 , 75 , 89 }, { 88 , 67 , 31 , - 13 , - 54 , - 82 , - 90 , - 78 , - 46 , - 4 , 38 , 73 , 90 , 85 , 61 , 22 , - 22 , - 61 , - 85 , - 90 , - 73 , - 38 , 4 , 46 , 78 , 90 , 82 , 54 , 13 , - 31 , - 67 , - 88 }, { 87 , 57 , 9 , - 43 , - 80 , - 90 , - 70 , - 25 , 25 , 70 , 90 , 80 , 43 , - 9 , - 57 , - 87 , - 87 , - 57 , - 9 , 43 , 80 , 90 , 70 , 25 , - 25 , - 70 , - 90 , - 80 , - 43 , 9 , 57 , 87 }, { 85 , 46 , - 13 , - 67 , - 90 , - 73 , - 22 , 38 , 82 , 88 , 54 , - 4 , - 61 , - 90 , - 78 , - 31 , 31 , 78 , 90 , 61 , 4 , - 54 , - 88 , - 82 , - 38 , 22 , 73 , 90 , 67 , 13 , - 46 , - 85 }, { 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 , 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 }, { 82 , 22 , - 54 , - 90 , - 61 , 13 , 78 , 85 , 31 , - 46 , - 90 , - 67 , 4 , 73 , 88 , 38 , - 38 , - 88 , - 73 , - 4 , 67 , 90 , 46 , - 31 , - 85 , - 78 , - 13 , 61 , 90 , 54 , - 22 , - 82 }, { 80 , 9 , - 70 , - 87 , - 25 , 57 , 90 , 43 , - 43 , - 90 , - 57 , 25 , 87 , 70 , - 9 , - 80 , - 80 , - 9 , 70 , 87 , 25 , - 57 , - 90 , - 43 , 43 , 90 , 57 , - 25 , - 87 , - 70 , 9 , 80 }, { 78 , - 4 , - 82 , - 73 , 13 , 85 , 67 , - 22 , - 88 , - 61 , 31 , 90 , 54 , - 38 , - 90 , - 46 , 46 , 90 , 38 , - 54 , - 90 , - 31 , 61 , 88 , 22 , - 67 , - 85 , - 13 , 73 , 82 , 4 , - 78 }, { 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 , - 75 , 18 , 89 , 50 , - 50 , - 89 , - 18 , 75 , 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 , - 75 , 18 , 89 , 50 , - 50 , - 89 , - 18 , 75 }, { 73 , - 31 , - 90 , - 22 , 78 , 67 , - 38 , - 90 , - 13 , 82 , 61 , - 46 , - 88 , - 4 , 85 , 54 , - 54 , - 85 , 4 , 88 , 46 , - 61 , - 82 , 13 , 90 , 38 , - 67 , - 78 , 22 , 90 , 31 , - 73 }, { 70 , - 43 , - 87 , 9 , 90 , 25 , - 80 , - 57 , 57 , 80 , - 25 , - 90 , - 9 , 87 , 43 , - 70 , - 70 , 43 , 87 , - 9 , - 90 , - 25 , 80 , 57 , - 57 , - 80 , 25 , 90 , 9 , - 87 , - 43 , 70 }, { 67 , - 54 , - 78 , 38 , 85 , - 22 , - 90 , 4 , 90 , 13 , - 88 , - 31 , 82 , 46 , - 73 , - 61 , 61 , 73 , - 46 , - 82 , 31 , 88 , - 13 , - 90 , - 4 , 90 , 22 , - 85 , - 38 , 78 , 54 , - 67 }, { 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 }, { 61 , - 73 , - 46 , 82 , 31 , - 88 , - 13 , 90 , - 4 , - 90 , 22 , 85 , - 38 , - 78 , 54 , 67 , - 67 , - 54 , 78 , 38 , - 85 , - 22 , 90 , 4 , - 90 , 13 , 88 , - 31 , - 82 , 46 , 73 , - 61 }, { 57 , - 80 , - 25 , 90 , - 9 , - 87 , 43 , 70 , - 70 , - 43 , 87 , 9 , - 90 , 25 , 80 , - 57 , - 57 , 80 , 25 , - 90 , 9 , 87 , - 43 , - 70 , 70 , 43 , - 87 , - 9 , 90 , - 25 , - 80 , 57 }, { 54 , - 85 , - 4 , 88 , - 46 , - 61 , 82 , 13 , - 90 , 38 , 67 , - 78 , - 22 , 90 , - 31 , - 73 , 73 , 31 , - 90 , 22 , 78 , - 67 , - 38 , 90 , - 13 , - 82 , 61 , 46 , - 88 , 4 , 85 , - 54 }, { 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 , - 50 , 89 , - 18 , - 75 , 75 , 18 , - 89 , 50 , 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 , - 50 , 89 , - 18 , - 75 , 75 , 18 , - 89 , 50 }, { 46 , - 90 , 38 , 54 , - 90 , 31 , 61 , - 88 , 22 , 67 , - 85 , 13 , 73 , - 82 , 4 , 78 , - 78 , - 4 , 82 , - 73 , - 13 , 85 , - 67 , - 22 , 88 , - 61 , - 31 , 90 , - 54 , - 38 , 90 , - 46 }, { 43 , - 90 , 57 , 25 , - 87 , 70 , 9 , - 80 , 80 , - 9 , - 70 , 87 , - 25 , - 57 , 90 , - 43 , - 43 , 90 , - 57 , - 25 , 87 , - 70 , - 9 , 80 , - 80 , 9 , 70 , - 87 , 25 , 57 , - 90 , 43 }, { 38 , - 88 , 73 , - 4 , - 67 , 90 , - 46 , - 31 , 85 , - 78 , 13 , 61 , - 90 , 54 , 22 , - 82 , 82 , - 22 , - 54 , 90 , - 61 , - 13 , 78 , - 85 , 31 , 46 , - 90 , 67 , 4 , - 73 , 88 , - 38 }, { 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 , 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 }, { 31 , - 78 , 90 , - 61 , 4 , 54 , - 88 , 82 , - 38 , - 22 , 73 , - 90 , 67 , - 13 , - 46 , 85 , - 85 , 46 , 13 , - 67 , 90 , - 73 , 22 , 38 , - 82 , 88 , - 54 , - 4 , 61 , - 90 , 78 , - 31 }, { 25 , - 70 , 90 , - 80 , 43 , 9 , - 57 , 87 , - 87 , 57 , - 9 , - 43 , 80 , - 90 , 70 , - 25 , - 25 , 70 , - 90 , 80 , - 43 , - 9 , 57 , - 87 , 87 , - 57 , 9 , 43 , - 80 , 90 , - 70 , 25 }, { 22 , - 61 , 85 , - 90 , 73 , - 38 , - 4 , 46 , - 78 , 90 , - 82 , 54 , - 13 , - 31 , 67 , - 88 , 88 , - 67 , 31 , 13 , - 54 , 82 , - 90 , 78 , - 46 , 4 , 38 , - 73 , 90 , - 85 , 61 , - 22 }, { 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 , - 18 , 50 , - 75 , 89 , - 89 , 75 , - 50 , 18 , 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 , - 18 , 50 , - 75 , 89 , - 89 , 75 , - 50 , 18 }, { 13 , - 38 , 61 , - 78 , 88 , - 90 , 85 , - 73 , 54 , - 31 , 4 , 22 , - 46 , 67 , - 82 , 90 , - 90 , 82 , - 67 , 46 , - 22 , - 4 , 31 , - 54 , 73 , - 85 , 90 , - 88 , 78 , - 61 , 38 , - 13 }, { 9 , - 25 , 43 , - 57 , 70 , - 80 , 87 , - 90 , 90 , - 87 , 80 , - 70 , 57 , - 43 , 25 , - 9 , - 9 , 25 , - 43 , 57 , - 70 , 80 , - 87 , 90 , - 90 , 87 , - 80 , 70 , - 57 , 43 , - 25 , 9 }, { 4 , - 13 , 22 , - 31 , 38 , - 46 , 54 , - 61 , 67 , - 73 , 78 , - 82 , 85 , - 88 , 90 , - 90 , 90 , - 90 , 88 , - 85 , 82 , - 78 , 73 , - 67 , 61 , - 54 , 46 , - 38 , 31 , - 22 , 13 , - 4 } }
}

Definition at line 480 of file TComRom.cpp.

Initial value:
=
{
{ { 64 , 64 , 64 , 64 }, { 83 , 36 , - 36 , - 83 }, { 64 , - 64 , - 64 , 64 }, { 36 , - 83 , 83 , - 36 } },
{ { 64 , 64 , 64 , 64 }, { 83 , 36 , - 36 , - 83 }, { 64 , - 64 , - 64 , 64 }, { 36 , - 83 , 83 , - 36 } }
}

Definition at line 462 of file TComRom.cpp.

Initial value:
=
{
{ { 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 }, { 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 }, { 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 }, { 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 }, { 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 }, { 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 }, { 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 }, { 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 } },
{ { 64 , 64 , 64 , 64 , 64 , 64 , 64 , 64 }, { 89 , 75 , 50 , 18 , - 18 , - 50 , - 75 , - 89 }, { 83 , 36 , - 36 , - 83 , - 83 , - 36 , 36 , 83 }, { 75 , - 18 , - 89 , - 50 , 50 , 89 , 18 , - 75 }, { 64 , - 64 , - 64 , 64 , 64 , - 64 , - 64 , 64 }, { 50 , - 89 , 18 , 75 , - 75 , - 18 , 89 , - 50 }, { 36 , - 83 , 83 , - 36 , - 36 , 83 , - 83 , 36 }, { 18 , - 50 , 75 , - 89 , 89 , - 75 , 50 , - 18 } }
}

Definition at line 468 of file TComRom.cpp.

const TMatrixCoeff g_as_DST_MAT_4[TRANSFORM_NUMBER_OF_DIRECTIONS][4][4]
Initial value:
=
{
{ { 29 , 55 , 74 , 84 }, { 74 , 74 , 0, - 74 }, { 84 , - 29 , - 74 , 55 }, { 55 , - 84 , 74 , - 29 }, },
{ { 29 , 55 , 74 , 84 }, { 74 , 74 , 0, - 74 }, { 84 , - 29 , - 74 , 55 }, { 55 , - 84 , 74 , - 29 }, }
}

Definition at line 486 of file TComRom.cpp.

Initial value:
=
{
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,29,30,31,32,33,33,34,34,35,35,36,36,37,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,51,51,51,51,51,51 },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,51,51,51,51,51,51 }
}

Definition at line 505 of file TComRom.cpp.

Char g_aucConvertToBit[(1<<(6))+1]

Definition at line 558 of file TComRom.cpp.

const UChar g_aucIntraModeNumFast[6]
Initial value:
=
{
3,
8,
8,
3,
3,
3
}

Definition at line 519 of file TComRom.cpp.

UInt g_auiPUOffset[NUMBER_OF_PART_SIZES] = { 0, 8, 4, 4, 2, 10, 1, 5}

Definition at line 260 of file TComRom.cpp.

UInt g_auiRasterToPelX[((1<<(6))/4)*((1<<(6))/4)] = { 0, }

Definition at line 257 of file TComRom.cpp.

UInt g_auiRasterToPelY[((1<<(6))/4)*((1<<(6))/4)] = { 0, }

Definition at line 258 of file TComRom.cpp.

UInt g_auiRasterToZscan[((1<<(6))/4)*((1<<(6))/4)] = { 0, }

Definition at line 256 of file TComRom.cpp.

UInt g_auiZscanToRaster[((1<<(6))/4)*((1<<(6))/4)] = { 0, }

Definition at line 255 of file TComRom.cpp.

const Bool g_bEncDecTraceDisable = false

Definition at line 563 of file TComRom.cpp.

const Bool g_bEncDecTraceEnable = true

Definition at line 562 of file TComRom.cpp.

Int g_bitDepth[MAX_NUM_CHANNEL_TYPE] = {8, 8}

Definition at line 548 of file TComRom.cpp.

Bool g_bJustDoIt = false

Definition at line 565 of file TComRom.cpp.

const UChar g_chroma422IntraAngleMappingTable[36]
Initial value:
=
{ 0, 1, 2, 2, 2, 2, 3, 5, 7, 8, 10, 12, 13, 15, 17, 18, 19, 20, 21, 22, 23, 23, 24, 24, 25, 25, 26, 27, 27, 28, 28, 29, 29, 30, 31, 36 }

Definition at line 540 of file TComRom.cpp.

Bool g_HLSTraceEnable = true

Definition at line 564 of file TComRom.cpp.

FILE* g_hTrace = 0

Definition at line 561 of file TComRom.cpp.

Int g_invQuantScales[6]
Initial value:
=
{
40,45,51,57,64,72
}

Definition at line 332 of file TComRom.cpp.

Int g_maxTrDynamicRange[MAX_NUM_CHANNEL_TYPE]

Definition at line 325 of file TComRom.cpp.

UInt64 g_nSymbolCounter = 0

Definition at line 566 of file TComRom.cpp.

Int g_PCMBitDepth[MAX_NUM_CHANNEL_TYPE] = {8, 8}

Definition at line 552 of file TComRom.cpp.

Int g_quantInterDefault8x8[8 *8]
Initial value:
=
{
16,16,16,16,17,18,20,24,
16,16,16,17,18,20,24,25,
16,16,17,18,20,24,25,28,
16,17,18,20,24,25,28,33,
17,18,20,24,25,28,33,41,
18,20,24,25,28,33,41,54,
20,24,25,28,33,41,54,71,
24,25,28,33,41,54,71,91
}

Definition at line 666 of file TComRom.cpp.

Int g_quantIntraDefault8x8[8 *8]
Initial value:
=
{
16,16,16,16,17,18,21,24,
16,16,16,16,17,19,22,25,
16,16,17,18,20,22,25,29,
16,16,18,21,24,27,31,36,
17,17,20,24,30,35,41,47,
18,19,22,27,35,44,54,65,
21,22,25,31,41,54,70,88,
24,25,29,36,47,65,88,115
}

Definition at line 654 of file TComRom.cpp.

Int g_quantScales[6]
Initial value:
=
{
26214,23302,20560,18396,16384,14564
}

Definition at line 327 of file TComRom.cpp.

Int g_quantTSDefault4x4[4 *4]
Initial value:
=
{
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16
}

Definition at line 646 of file TComRom.cpp.

UInt g_scalingListSize[SCALING_LIST_SIZE_NUM] = {16,64,256,1024}

Definition at line 678 of file TComRom.cpp.

UInt g_scalingListSizeX[SCALING_LIST_SIZE_NUM] = { 4, 8, 16, 32}

Definition at line 679 of file TComRom.cpp.

Definition at line 573 of file TComRom.cpp.

UInt g_uiAddCUDepth = 0

Definition at line 254 of file TComRom.cpp.

const UInt g_uiGroupIdx[32] = {0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9}

Definition at line 584 of file TComRom.cpp.

UInt g_uiMaxCUDepth = 6

Definition at line 253 of file TComRom.cpp.

UInt g_uiMaxCUHeight = (1<<( 6 ))

Definition at line 252 of file TComRom.cpp.

UInt g_uiMaxCUWidth = (1<<( 6 ))

Definition at line 251 of file TComRom.cpp.

const UInt g_uiMinInGroup[10] = {0,1,2,3,4,6,8,12,16,24}

Definition at line 583 of file TComRom.cpp.

Definition at line 586 of file TComRom.cpp.

Initial value:
=
{
{
},
{
},
{
"INTRA16X16_LUMA_DC",
"INTRA16X16_CHROMAU_DC",
"INTRA16X16_CHROMAV_DC",
"INTER16X16_LUMA_DC",
"INTER16X16_CHROMAU_DC",
"INTER16X16_CHROMAV_DC"
},
{
"INTRA32X32_LUMA_DC",
"INTRA32X32_CHROMAU_DC_FROM16x16_CHROMAU",
"INTRA32X32_CHROMAV_DC_FROM16x16_CHROMAV",
"INTER32X32_LUMA_DC",
"INTER32X32_CHROMAU_DC_FROM16x16_CHROMAU",
"INTER32X32_CHROMAV_DC_FROM16x16_CHROMAV"
},
}

Definition at line 622 of file TComRom.cpp.