HEVC Test Model (HM)  HM-16.3
Classes | Enumerations
TLibCommon - Library containing functionality that is shared between encoder and decoder

Classes

class  AccessUnit
 
class  ContextModel
 context model class More...
 
class  ContextModel3DBuffer
 context model 3D buffer class More...
 
class  TComBitCounter
 class for counting bits More...
 
class  TComBitIf
 pure virtual class for basic bit handling More...
 
class  TComCABACTables
 static class for CABAC tables More...
 
class  TComList< C >
 list template More...
 
struct  _AMVPInfo
 parameters for AMVP More...
 
class  TComMv
 basic motion vector class More...
 
class  TComPic
 picture class (symbol + YUV buffers) More...
 
class  TComTile
 
class  TComPicYuv
 picture YUV buffer class More...
 
class  ScanGenerator
 
class  TComYuv
 general YUV buffer class More...
 

Enumerations

enum  TComPic::PIC_YUV_T { TComPic::PIC_YUV_ORG =0, TComPic::PIC_YUV_REC =1, TComPic::PIC_YUV_TRUE_ORG =2, TComPic::NUM_PIC_YUV =3 }
 
enum  NalUnitType {
  NAL_UNIT_CODED_SLICE_TRAIL_N = 0, NAL_UNIT_CODED_SLICE_TRAIL_R, NAL_UNIT_CODED_SLICE_TSA_N, NAL_UNIT_CODED_SLICE_TSA_R,
  NAL_UNIT_CODED_SLICE_STSA_N, NAL_UNIT_CODED_SLICE_STSA_R, NAL_UNIT_CODED_SLICE_RADL_N, NAL_UNIT_CODED_SLICE_RADL_R,
  NAL_UNIT_CODED_SLICE_RASL_N, NAL_UNIT_CODED_SLICE_RASL_R, NAL_UNIT_RESERVED_VCL_N10, NAL_UNIT_RESERVED_VCL_R11,
  NAL_UNIT_RESERVED_VCL_N12, NAL_UNIT_RESERVED_VCL_R13, NAL_UNIT_RESERVED_VCL_N14, NAL_UNIT_RESERVED_VCL_R15,
  NAL_UNIT_CODED_SLICE_BLA_W_LP, NAL_UNIT_CODED_SLICE_BLA_W_RADL, NAL_UNIT_CODED_SLICE_BLA_N_LP, NAL_UNIT_CODED_SLICE_IDR_W_RADL,
  NAL_UNIT_CODED_SLICE_IDR_N_LP, NAL_UNIT_CODED_SLICE_CRA, NAL_UNIT_RESERVED_IRAP_VCL22, NAL_UNIT_RESERVED_IRAP_VCL23,
  NAL_UNIT_RESERVED_VCL24, NAL_UNIT_RESERVED_VCL25, NAL_UNIT_RESERVED_VCL26, NAL_UNIT_RESERVED_VCL27,
  NAL_UNIT_RESERVED_VCL28, NAL_UNIT_RESERVED_VCL29, NAL_UNIT_RESERVED_VCL30, NAL_UNIT_RESERVED_VCL31,
  NAL_UNIT_VPS, NAL_UNIT_SPS, NAL_UNIT_PPS, NAL_UNIT_ACCESS_UNIT_DELIMITER,
  NAL_UNIT_EOS, NAL_UNIT_EOB, NAL_UNIT_FILLER_DATA, NAL_UNIT_PREFIX_SEI,
  NAL_UNIT_SUFFIX_SEI, NAL_UNIT_RESERVED_NVCL41, NAL_UNIT_RESERVED_NVCL42, NAL_UNIT_RESERVED_NVCL43,
  NAL_UNIT_RESERVED_NVCL44, NAL_UNIT_RESERVED_NVCL45, NAL_UNIT_RESERVED_NVCL46, NAL_UNIT_RESERVED_NVCL47,
  NAL_UNIT_UNSPECIFIED_48, NAL_UNIT_UNSPECIFIED_49, NAL_UNIT_UNSPECIFIED_50, NAL_UNIT_UNSPECIFIED_51,
  NAL_UNIT_UNSPECIFIED_52, NAL_UNIT_UNSPECIFIED_53, NAL_UNIT_UNSPECIFIED_54, NAL_UNIT_UNSPECIFIED_55,
  NAL_UNIT_UNSPECIFIED_56, NAL_UNIT_UNSPECIFIED_57, NAL_UNIT_UNSPECIFIED_58, NAL_UNIT_UNSPECIFIED_59,
  NAL_UNIT_UNSPECIFIED_60, NAL_UNIT_UNSPECIFIED_61, NAL_UNIT_UNSPECIFIED_62, NAL_UNIT_UNSPECIFIED_63,
  NAL_UNIT_INVALID
}
 
Int g_bitDepth [MAX_NUM_CHANNEL_TYPE]
 
template<typename T >
Clip3 (const T minVal, const T maxVal, const T a)
 general min/max clip More...
 
template<typename T >
ClipBD (const T x, const Int bitDepth)
 
template<typename T >
Clip (const T x, const ChannelType type)
 
template<typename T >
Void Check3 (T minVal, T maxVal, T a)
 general min/max clip More...
 
template<typename ValueType >
ValueType leftShift (const ValueType value, const Int shift)
 
template<typename ValueType >
ValueType rightShift (const ValueType value, const Int shift)
 
template<typename ValueType >
ValueType leftShift_round (const ValueType value, const Int shift)
 
template<typename ValueType >
ValueType rightShift_round (const ValueType value, const Int shift)
 
#define NV_VERSION   "16.3"
 Current software version. More...
 
#define NVM_COMPILEDBY   "[Unk-CXX]"
 
#define NVM_ONOS   "[Unk-OS]"
 
#define NVM_BITS   "[%d bit] ", (sizeof(Void*) == 8 ? 64 : 32)
 used for checking 64-bit O/S More...
 
#define NULL   0
 
#define _SUMMARY_OUT_   0
 print-out PSNR results of all slices to summary.txt More...
 
#define _SUMMARY_PIC_   0
 print-out PSNR results for each slice type to summary.txt More...
 
#define MAX_GOP   64
 max. value of hierarchical GOP size More...
 
#define MAX_NUM_REF_PICS   16
 max. number of pictures used for reference More...
 
#define MAX_NUM_REF   16
 max. number of entries in picture reference list More...
 
#define MAX_UINT   0xFFFFFFFFU
 max. value of unsigned 32-bit integer More...
 
#define MAX_INT   2147483647
 max. value of signed 32-bit integer More...
 
#define MAX_INT64   0x7FFFFFFFFFFFFFFFLL
 max. value of signed 64-bit integer More...
 
#define MAX_INTERMEDIATE_INT   MAX_INT
 
#define MAX_DOUBLE   1.7e+308
 max. value of Double-type value More...
 
#define MIN_QP   0
 
#define MAX_QP   51
 
#define NOT_VALID   -1
 
#define DATA_ALIGN   1
 use 32-bit aligned malloc/free More...
 
#define xMalloc(type, len)   malloc ( sizeof(type)*(len) )
 
#define xFree(ptr)   free ( ptr )
 
#define FATAL_ERROR_0(MESSAGE, EXITCODE)
 
#define AMVP_MAX_NUM_CANDS   2
 max number of final candidates More...
 
#define AMVP_MAX_NUM_CANDS_MEM   3
 max number of candidates More...
 
#define MRG_MAX_NUM_CANDS   5
 
#define DYN_REF_FREE   0
 dynamic free of reference memories More...
 
#define MAX_TLAYER   7
 max number of temporal layer More...
 
#define HB_LAMBDA_FOR_LDC   1
 use of B-style lambda for non-key pictures in low-delay mode More...
 
#define GPB_SIMPLE   1
 Simple GPB mode. More...
 
#define GPB_SIMPLE_UNI   1
 Simple mode for uni-direction. More...
 
#define FASTME_SMOOTHER_MV   1
 reduce ME time using faster option More...
 
#define ADAPT_SR_SCALE   1
 division factor for adaptive search range More...
 
#define CLIP_TO_709_RANGE   0
 
#define EARLY_SKIP_THRES   1.50
 if RD < thres*avg[BestSkipRD] More...
 
#define MAX_CHROMA_FORMAT_IDC   3
 
Void ContextModel::init (Int qp, Int initValue)
 initialize state with initial probability More...
 
 ContextModel3DBuffer::ContextModel3DBuffer (UInt uiSizeZ, UInt uiSizeY, UInt uiSizeX, ContextModel *basePtr, Int &count)
 
Void ContextModel3DBuffer::initBuffer (SliceType eSliceType, Int iQp, UChar *ctxModel)
 initialize 3D buffer by slice type & QP More...
 
UInt ContextModel3DBuffer::calcCost (SliceType sliceType, Int qp, UChar *ctxModel)
 determine cost of choosing a probability table based on current probabilities More...
 
static const UInt significanceMapContextSetStart [MAX_NUM_CHANNEL_TYPE][CONTEXT_NUMBER_OF_TYPES] = { {0, 9, 21, 27}, {0, 9, 12, 15} }
 
static const UInt significanceMapContextSetSize [MAX_NUM_CHANNEL_TYPE][CONTEXT_NUMBER_OF_TYPES] = { {9, 12, 6, 1}, {9, 3, 3, 1} }
 
static const UInt nonDiagonalScan8x8ContextOffset [MAX_NUM_CHANNEL_TYPE] = { 6, 0 }
 
static const UInt notFirstGroupNeighbourhoodContextOffset [MAX_NUM_CHANNEL_TYPE] = { 3, 0 }
 
static const UChar INIT_CU_TRANSQUANT_BYPASS_FLAG [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_SPLIT_FLAG [NUMBER_OF_SLICE_TYPES][3]
 
static const UChar INIT_SKIP_FLAG [NUMBER_OF_SLICE_TYPES][3]
 
static const UChar INIT_MERGE_FLAG_EXT [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_MERGE_IDX_EXT [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_PART_SIZE [NUMBER_OF_SLICE_TYPES][4]
 
static const UChar INIT_PRED_MODE [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_INTRA_PRED_MODE [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_CHROMA_PRED_MODE [NUMBER_OF_SLICE_TYPES][2]
 
static const UChar INIT_INTER_DIR [NUMBER_OF_SLICE_TYPES][5]
 
static const UChar INIT_MVD [NUMBER_OF_SLICE_TYPES][2]
 
static const UChar INIT_REF_PIC [NUMBER_OF_SLICE_TYPES][2]
 
static const UChar INIT_DQP [NUMBER_OF_SLICE_TYPES][3]
 
static const UChar INIT_CHROMA_QP_ADJ_FLAG [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_CHROMA_QP_ADJ_IDC [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_QT_CBF [NUMBER_OF_SLICE_TYPES][2 *5]
 
static const UChar INIT_QT_ROOT_CBF [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_LAST [NUMBER_OF_SLICE_TYPES][2 *15]
 
static const UChar INIT_SIG_CG_FLAG [NUMBER_OF_SLICE_TYPES][2 *2]
 
static const UChar INIT_SIG_FLAG [NUMBER_OF_SLICE_TYPES][(28+16)]
 
static const UChar INIT_ONE_FLAG [NUMBER_OF_SLICE_TYPES][((4 *4)+(4 *2))]
 
static const UChar INIT_ABS_FLAG [NUMBER_OF_SLICE_TYPES][((1 *4)+(1 *2))]
 
static const UChar INIT_MVP_IDX [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_SAO_MERGE_FLAG [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_SAO_TYPE_IDX [NUMBER_OF_SLICE_TYPES][1]
 
static const UChar INIT_TRANS_SUBDIV_FLAG [NUMBER_OF_SLICE_TYPES][3]
 
static const UChar INIT_TRANSFORMSKIP_FLAG [NUMBER_OF_SLICE_TYPES][2 *1]
 
static const UChar INIT_EXPLICIT_RDPCM_FLAG [NUMBER_OF_SLICE_TYPES][2 *1]
 
static const UChar INIT_EXPLICIT_RDPCM_DIR [NUMBER_OF_SLICE_TYPES][2 *1]
 
static const UChar INIT_CROSS_COMPONENT_PREDICTION [NUMBER_OF_SLICE_TYPES][10]
 
#define MAX_NUM_CTX_MOD   512
 maximum number of supported contexts More...
 
#define NUM_SPLIT_FLAG_CTX   3
 number of context models for split flag More...
 
#define NUM_SKIP_FLAG_CTX   3
 number of context models for skip flag More...
 
#define NUM_MERGE_FLAG_EXT_CTX   1
 number of context models for merge flag of merge extended More...
 
#define NUM_MERGE_IDX_EXT_CTX   1
 number of context models for merge index of merge extended More...
 
#define NUM_PART_SIZE_CTX   4
 number of context models for partition size More...
 
#define NUM_PRED_MODE_CTX   1
 number of context models for prediction mode More...
 
#define NUM_ADI_CTX   1
 number of context models for intra prediction More...
 
#define NUM_CHROMA_PRED_CTX   2
 number of context models for intra prediction (chroma) More...
 
#define NUM_INTER_DIR_CTX   5
 number of context models for inter prediction direction More...
 
#define NUM_MV_RES_CTX   2
 number of context models for motion vector difference More...
 
#define NUM_CHROMA_QP_ADJ_FLAG_CTX   1
 number of context models for chroma_qp_adjustment_flag More...
 
#define NUM_CHROMA_QP_ADJ_IDC_CTX   1
 number of context models for chroma_qp_adjustment_idc More...
 
#define NUM_REF_NO_CTX   2
 number of context models for reference index More...
 
#define NUM_TRANS_SUBDIV_FLAG_CTX   3
 number of context models for transform subdivision flags More...
 
#define NUM_QT_ROOT_CBF_CTX   1
 number of context models for QT ROOT CBF More...
 
#define NUM_DELTA_QP_CTX   3
 number of context models for dQP More...
 
#define NUM_SIG_CG_FLAG_CTX   2
 number of context models for MULTI_LEVEL_SIGNIFICANCE More...
 
#define NUM_EXPLICIT_RDPCM_FLAG_CTX   1
 number of context models for the flag which specifies whether to use RDPCM on inter coded residues More...
 
#define NUM_EXPLICIT_RDPCM_DIR_CTX   1
 number of context models for the flag which specifies which RDPCM direction is used on inter coded residues More...
 
#define NUM_SIG_FLAG_CTX_LUMA   28
 number of context models for luma sig flag More...
 
#define NUM_SIG_FLAG_CTX_CHROMA   16
 number of context models for chroma sig flag More...
 
#define NEIGHBOURHOOD_00_CONTEXT_1_THRESHOLD_4x4   3
 
#define NEIGHBOURHOOD_00_CONTEXT_2_THRESHOLD_4x4   1
 
#define FIRST_SIG_FLAG_CTX_LUMA   0
 
#define FIRST_SIG_FLAG_CTX_CHROMA   (FIRST_SIG_FLAG_CTX_LUMA + NUM_SIG_FLAG_CTX_LUMA)
 
#define NUM_SIG_FLAG_CTX   (NUM_SIG_FLAG_CTX_LUMA + NUM_SIG_FLAG_CTX_CHROMA)
 number of context models for sig flag More...
 
#define NUM_CTX_LAST_FLAG_SETS   2
 
#define NUM_CTX_LAST_FLAG_XY   15
 number of context models for last coefficient position More...
 
#define NUM_ONE_FLAG_CTX_PER_SET   4
 number of context models for greater than 1 flag in a set More...
 
#define NUM_ABS_FLAG_CTX_PER_SET   1
 number of context models for greater than 2 flag in a set More...
 
#define NUM_CTX_SETS_LUMA   4
 number of context model sets for luminance More...
 
#define NUM_CTX_SETS_CHROMA   2
 number of context model sets for combined chrominance More...
 
#define FIRST_CTX_SET_LUMA   0
 index of first luminance context set More...
 
#define NUM_ONE_FLAG_CTX_LUMA   (NUM_ONE_FLAG_CTX_PER_SET * NUM_CTX_SETS_LUMA)
 number of context models for greater than 1 flag of luma More...
 
#define NUM_ONE_FLAG_CTX_CHROMA   (NUM_ONE_FLAG_CTX_PER_SET * NUM_CTX_SETS_CHROMA)
 number of context models for greater than 1 flag of chroma More...
 
#define NUM_ABS_FLAG_CTX_LUMA   (NUM_ABS_FLAG_CTX_PER_SET * NUM_CTX_SETS_LUMA)
 number of context models for greater than 2 flag of luma More...
 
#define NUM_ABS_FLAG_CTX_CHROMA   (NUM_ABS_FLAG_CTX_PER_SET * NUM_CTX_SETS_CHROMA)
 number of context models for greater than 2 flag of chroma More...
 
#define NUM_ONE_FLAG_CTX   (NUM_ONE_FLAG_CTX_LUMA + NUM_ONE_FLAG_CTX_CHROMA)
 number of context models for greater than 1 flag More...
 
#define NUM_ABS_FLAG_CTX   (NUM_ABS_FLAG_CTX_LUMA + NUM_ABS_FLAG_CTX_CHROMA)
 number of context models for greater than 2 flag More...
 
#define FIRST_CTX_SET_CHROMA   (FIRST_CTX_SET_LUMA + NUM_CTX_SETS_LUMA)
 index of first chrominance context set More...
 
#define NUM_QT_CBF_CTX_SETS   2
 
#define NUM_QT_CBF_CTX_PER_SET   5
 number of context models for QT CBF More...
 
#define FIRST_CBF_CTX_LUMA   0
 index of first luminance CBF context More...
 
#define FIRST_CBF_CTX_CHROMA   (FIRST_CBF_CTX_LUMA + NUM_QT_CBF_CTX_PER_SET)
 index of first chrominance CBF context More...
 
#define NUM_MVP_IDX_CTX   1
 number of context models for MVP index More...
 
#define NUM_SAO_MERGE_FLAG_CTX   1
 number of context models for SAO merge flags More...
 
#define NUM_SAO_TYPE_IDX_CTX   1
 number of context models for SAO type index More...
 
#define NUM_TRANSFORMSKIP_FLAG_CTX   1
 number of context models for transform skipping More...
 
#define NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX   1
 
#define NUM_CROSS_COMPONENT_PREDICTION_CTX   10
 
#define CNU   154
 dummy initialization value for unused context models 'Context model Not Used' More...
 
#define BSLICE_LUMA_CBF_CONTEXT   153, 111, CNU, CNU, CNU
 
#define PSLICE_LUMA_CBF_CONTEXT   153, 111, CNU, CNU, CNU
 
#define ISLICE_LUMA_CBF_CONTEXT   111, 141, CNU, CNU, CNU
 
#define BSLICE_CHROMA_CBF_CONTEXT   149, 92, 167, 154, 154
 
#define PSLICE_CHROMA_CBF_CONTEXT   149, 107, 167, 154, 154
 
#define ISLICE_CHROMA_CBF_CONTEXT   94, 138, 182, 154, 154
 
#define BSLICE_LUMA_LAST_POSITION_CONTEXT   125, 110, 124, 110, 95, 94, 125, 111, 111, 79, 125, 126, 111, 111, 79
 
#define PSLICE_LUMA_LAST_POSITION_CONTEXT   125, 110, 94, 110, 95, 79, 125, 111, 110, 78, 110, 111, 111, 95, 94
 
#define ISLICE_LUMA_LAST_POSITION_CONTEXT   110, 110, 124, 125, 140, 153, 125, 127, 140, 109, 111, 143, 127, 111, 79
 
#define BSLICE_CHROMA_LAST_POSITION_CONTEXT   108, 123, 93, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
 
#define PSLICE_CHROMA_LAST_POSITION_CONTEXT   108, 123, 108, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
 
#define ISLICE_CHROMA_LAST_POSITION_CONTEXT   108, 123, 63, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU
 
#define BSLICE_LUMA_SIGNIFICANCE_CONTEXT   170, 154, 139, 153, 139, 123, 123, 63, 124, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 140
 
#define PSLICE_LUMA_SIGNIFICANCE_CONTEXT   155, 154, 139, 153, 139, 123, 123, 63, 153, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 140
 
#define ISLICE_LUMA_SIGNIFICANCE_CONTEXT   111, 111, 125, 110, 110, 94, 124, 108, 124, 107, 125, 141, 179, 153, 125, 107, 125, 141, 179, 153, 125, 107, 125, 141, 179, 153, 125, 141
 
#define BSLICE_CHROMA_SIGNIFICANCE_CONTEXT   170, 153, 138, 138, 122, 121, 122, 121, 167, 151, 183, 140, 151, 183, 140, 140
 
#define PSLICE_CHROMA_SIGNIFICANCE_CONTEXT   170, 153, 123, 123, 107, 121, 107, 121, 167, 151, 183, 140, 151, 183, 140, 140
 
#define ISLICE_CHROMA_SIGNIFICANCE_CONTEXT   140, 139, 182, 182, 152, 136, 152, 136, 153, 136, 139, 111, 136, 139, 111, 111
 
#define BSLICE_LUMA_ONE_CONTEXT   154, 196, 167, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 122
 
#define PSLICE_LUMA_ONE_CONTEXT   154, 196, 196, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 137
 
#define ISLICE_LUMA_ONE_CONTEXT   140, 92, 137, 138, 140, 152, 138, 139, 153, 74, 149, 92, 139, 107, 122, 152
 
#define BSLICE_LUMA_ABS_CONTEXT   107, 167, 91, 107
 
#define PSLICE_LUMA_ABS_CONTEXT   107, 167, 91, 122
 
#define ISLICE_LUMA_ABS_CONTEXT   138, 153, 136, 167
 
#define BSLICE_CHROMA_ONE_CONTEXT   169, 208, 166, 167, 154, 152, 167, 182
 
#define PSLICE_CHROMA_ONE_CONTEXT   169, 194, 166, 167, 154, 167, 137, 182
 
#define ISLICE_CHROMA_ONE_CONTEXT   140, 179, 166, 182, 140, 227, 122, 197
 
#define BSLICE_CHROMA_ABS_CONTEXT   107, 167
 
#define PSLICE_CHROMA_ABS_CONTEXT   107, 167
 
#define ISLICE_CHROMA_ABS_CONTEXT   152, 152
 
 TComOutputBitstream::TComOutputBitstream ()
 this value is always msb-aligned, bigendian. More...
 
 TComOutputBitstream::~TComOutputBitstream ()
 
Void TComOutputBitstream::write (UInt uiBits, UInt uiNumberOfBits)
 
Void TComOutputBitstream::writeAlignOne ()
 
Void TComOutputBitstream::writeAlignZero ()
 
CharTComOutputBitstream::getByteStream () const
 
UInt TComOutputBitstream::getByteStreamLength ()
 
Void TComOutputBitstream::clear ()
 
Void TComOutputBitstream::insertAt (const TComOutputBitstream &src, UInt pos)
 
Void TComOutputBitstream::addSubstream (TComOutputBitstream *pcSubstream)
 
Void TComOutputBitstream::writeByteAlignment ()
 
Int TComOutputBitstream::countStartCodeEmulations ()
 returns the number of start code emulations contained in the current buffer More...
 
static const UChar TComCABACTables::sm_aucLPSTable [1<< 6][4]
 
static const UChar TComCABACTables::sm_aucRenormTable [32]
 
static TCoeffTComDataCU::m_pcGlbArlCoeff [MAX_NUM_COMPONENT] = { 0 , 0 , 0 }
 
Bool TComDataCU::xAddMVPCand (AMVPInfo *pInfo, RefPicList eRefPicList, Int iRefIdx, UInt uiPartUnitIdx, MVP_DIR eDir)
 add possible motion vector predictor candidates More...
 
Bool TComDataCU::xAddMVPCandOrder (AMVPInfo *pInfo, RefPicList eRefPicList, Int iRefIdx, UInt uiPartUnitIdx, MVP_DIR eDir)
 
Void TComDataCU::deriveRightBottomIdx (UInt uiPartIdx, UInt &ruiPartIdxRB)
 
Bool TComDataCU::xGetColMVP (RefPicList eRefPicList, Int ctuRsAddr, Int uiPartUnitIdx, TComMv &rcMv, Int &riRefIdx)
 
UInt TComDataCU::xGetMvdBits (TComMv cMvd)
 compute required bits to encode MVD (used in AMVP) More...
 
UInt TComDataCU::xGetComponentBits (Int iVal)
 
Int TComDataCU::xGetDistScaleFactor (Int iCurrPOC, Int iCurrRefPOC, Int iColPOC, Int iColRefPOC)
 compute scaling factor from POC difference More...
 
Void TComDataCU::xDeriveCenterIdx (UInt uiPartIdx, UInt &ruiPartIdxCenter)
 
 TComDataCU::TComDataCU ()
 
virtual TComDataCU::~TComDataCU ()
 
Void TComDataCU::create (ChromaFormat chromaFormatIDC, UInt uiNumPartition, UInt uiWidth, UInt uiHeight, Bool bDecSubCu, Int unitSize, Bool bGlobalRMARLBuffer=false)
 
Void TComDataCU::destroy ()
 
Void TComDataCU::initCtu (TComPic *pcPic, UInt ctuRsAddr)
 
Void TComDataCU::initEstData (const UInt uiDepth, const Int qp, const Bool bTransquantBypass)
 
Void TComDataCU::initSubCU (TComDataCU *pcCU, UInt uiPartUnitIdx, UInt uiDepth, Int qp)
 
Void TComDataCU::setOutsideCUPart (UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::copySubCU (TComDataCU *pcCU, UInt uiPartUnitIdx, UInt uiDepth)
 
Void TComDataCU::copyInterPredInfoFrom (TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList)
 
Void TComDataCU::copyPartFrom (TComDataCU *pcCU, UInt uiPartUnitIdx, UInt uiDepth)
 
Void TComDataCU::copyToPic (UChar uiDepth)
 
Void TComDataCU::setDepthSubParts (UInt uiDepth, UInt uiAbsPartIdx)
 
Void TComDataCU::setPartSizeSubParts (PartSize eMode, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setCUTransquantBypassSubParts (Bool flag, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setSkipFlagSubParts (Bool skip, UInt absPartIdx, UInt depth)
 
Void TComDataCU::setPredModeSubParts (PredMode eMode, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setSizeSubParts (UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setQPSubParts (Int qp, UInt uiAbsPartIdx, UInt uiDepth)
 
Int TComDataCU::getLastValidPartIdx (Int iAbsPartIdx)
 
Char TComDataCU::getLastCodedQP (UInt uiAbsPartIdx)
 
Void TComDataCU::setQPSubCUs (Int qp, UInt absPartIdx, UInt depth, Bool &foundNonZeroCbf)
 
Void TComDataCU::setChromaQpAdjSubParts (UChar val, Int absPartIdx, Int depth)
 
Bool TComDataCU::isLosslessCoded (UInt absPartIdx)
 
Void TComDataCU::setTrIdxSubParts (UInt uiTrIdx, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setTransformSkipSubParts (UInt useTransformSkip, ComponentID compID, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setTransformSkipSubParts (const UInt useTransformSkip[MAX_NUM_COMPONENT], UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setExplicitRdpcmModePartRange (UInt rdpcmMode, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void TComDataCU::setCrossComponentPredictionAlphaPartRange (Char alphaValue, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void TComDataCU::setTransformSkipPartRange (UInt useTransformSkip, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
UInt TComDataCU::getQuadtreeTULog2MinSizeInCU (UInt uiIdx)
 
Void TComDataCU::clearCbf (UInt uiIdx, ComponentID eType, UInt uiNumParts)
 
UChar TComDataCU::getQtRootCbf (UInt uiIdx)
 
Void TComDataCU::setCbfSubParts (const UInt uiCbf[MAX_NUM_COMPONENT], UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setCbfSubParts (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::setCbfSubParts (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void TComDataCU::setCbfPartRange (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void TComDataCU::bitwiseOrCbfPartRange (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void TComDataCU::setMergeFlagSubParts (Bool bMergeFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void TComDataCU::setMergeIndexSubParts (UInt uiMergeIndex, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
template<typename T >
Void TComDataCU::setSubPart (T bParameter, T *pbBaseCtu, UInt uiCUAddr, UInt uiCUDepth, UInt uiPUIdx)
 
Void TComDataCU::setIntraDirSubParts (const ChannelType channelType, const UInt uiDir, const UInt uiAbsPartIdx, const UInt uiDepth)
 
Void TComDataCU::setInterDirSubParts (UInt uiDir, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void TComDataCU::setIPCMFlagSubParts (Bool bIpcmFlag, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::getPartIndexAndSize (UInt uiPartIdx, UInt &ruiPartAddr, Int &riWidth, Int &riHeight)
 
UChar TComDataCU::getNumPartitions (const UInt uiAbsPartIdx=0)
 
Bool TComDataCU::isFirstAbsZorderIdxInDepth (UInt uiAbsPartIdx, UInt uiDepth)
 
Void TComDataCU::getMvField (TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList, TComMvField &rcMvField)
 
Void TComDataCU::fillMvpCand (UInt uiPartIdx, UInt uiPartAddr, RefPicList eRefPicList, Int iRefIdx, AMVPInfo *pInfo)
 
Bool TComDataCU::isDiffMER (Int xN, Int yN, Int xP, Int yP)
 
Void TComDataCU::getPartPosition (UInt partIdx, Int &xP, Int &yP, Int &nPSW, Int &nPSH)
 
Void TComDataCU::setMVPIdxSubParts (Int iMVPIdx, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void TComDataCU::setMVPNumSubParts (Int iMVPNum, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void TComDataCU::clipMv (TComMv &rcMv)
 
Void TComDataCU::compressMV ()
 
Bool TComDataCU::CUIsFromSameTile (const TComDataCU *pCU) const
 
Bool TComDataCU::CUIsFromSameSliceAndTile (const TComDataCU *pCU) const
 
Bool TComDataCU::CUIsFromSameSliceTileAndWavefrontRow (const TComDataCU *pCU) const
 
Bool TComDataCU::isLastSubCUOfCtu (const UInt absPartIdx)
 
TComDataCUTComDataCU::getPULeft (UInt &uiLPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceTileRestriction=true)
 
TComDataCUTComDataCU::getPUAbove (UInt &uiAPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool planarAtCTUBoundary=false, Bool bEnforceTileRestriction=true)
 
TComDataCUTComDataCU::getPUAboveLeft (UInt &uiALPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true)
 
TComDataCUTComDataCU::getPUAboveRight (UInt &uiARPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true)
 
TComDataCUTComDataCU::getPUBelowLeft (UInt &uiBLPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true)
 
TComDataCUTComDataCU::getQpMinCuLeft (UInt &uiLPartUnitIdx, UInt uiCurrAbsIdxInCtu)
 
TComDataCUTComDataCU::getQpMinCuAbove (UInt &uiAPartUnitIdx, UInt uiCurrAbsIdxInCtu)
 
Char TComDataCU::getRefQP (UInt uiCurrAbsIdxInCtu)
 
TComDataCUTComDataCU::getPUAboveRightAdi (UInt &uiARPartUnitIdx, UInt uiCurrPartUnitIdx, UInt uiPartUnitOffset=1, Bool bEnforceSliceRestriction=true)
 
TComDataCUTComDataCU::getPUBelowLeftAdi (UInt &uiBLPartUnitIdx, UInt uiCurrPartUnitIdx, UInt uiPartUnitOffset=1, Bool bEnforceSliceRestriction=true)
 
Void TComDataCU::deriveLeftRightTopIdx (UInt uiPartIdx, UInt &ruiPartIdxLT, UInt &ruiPartIdxRT)
 
Void TComDataCU::deriveLeftBottomIdx (UInt uiPartIdx, UInt &ruiPartIdxLB)
 
Void TComDataCU::deriveLeftRightTopIdxAdi (UInt &ruiPartIdxLT, UInt &ruiPartIdxRT, UInt uiPartOffset, UInt uiPartDepth)
 
Void TComDataCU::deriveLeftBottomIdxAdi (UInt &ruiPartIdxLB, UInt uiPartOffset, UInt uiPartDepth)
 
Bool TComDataCU::hasEqualMotion (UInt uiAbsPartIdx, TComDataCU *pcCandCU, UInt uiCandAbsPartIdx)
 
Void TComDataCU::getInterMergeCandidates (UInt uiAbsPartIdx, UInt uiPUIdx, TComMvField *pcMFieldNeighbours, UChar *puhInterDirNeighbours, Int &numValidMergeCand, Int mrgCandIdx=-1)
 Construct a list of merging candidates. More...
 
Void TComDataCU::deriveLeftRightTopIdxGeneral (UInt uiAbsPartIdx, UInt uiPartIdx, UInt &ruiPartIdxLT, UInt &ruiPartIdxRT)
 
Void TComDataCU::deriveLeftBottomIdxGeneral (UInt uiAbsPartIdx, UInt uiPartIdx, UInt &ruiPartIdxLB)
 
Bool TComDataCU::isSkipped (UInt uiPartIdx)
 returns true, if the partiton is skipped More...
 
Bool TComDataCU::isBipredRestriction (UInt puIdx)
 
UInt TComDataCU::getIntraSizeIdx (UInt uiAbsPartIdx)
 
Void TComDataCU::getAllowedChromaDir (UInt uiAbsPartIdx, UInt *uiModeList)
 
Void TComDataCU::getIntraDirPredictor (UInt uiAbsPartIdx, Int uiIntraDirPred[NUM_MOST_PROBABLE_MODES], const ComponentID compID, Int *piMode=0)
 
UInt TComDataCU::getCtxSplitFlag (UInt uiAbsPartIdx, UInt uiDepth)
 
UInt TComDataCU::getCtxQtCbf (TComTU &rTu, const ChannelType chType)
 
UInt TComDataCU::getCtxSkipFlag (UInt uiAbsPartIdx)
 
UInt TComDataCU::getCtxInterDir (UInt uiAbsPartIdx)
 
UInt TComDataCU::getCoefScanIdx (const UInt uiAbsPartIdx, const UInt uiWidth, const UInt uiHeight, const ComponentID compID) const
 
static const TFilterCoeff TComInterpolationFilter::m_lumaFilter [4][8]
 Luma filter taps. More...
 
static const TFilterCoeff TComInterpolationFilter::m_chromaFilter [8][4]
 Chroma filter taps. More...
 
static Void TComInterpolationFilter::filterCopy (Int bitDepth, const Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast)
 Apply unit FIR filter to a block of samples. More...
 
template<Int N, Bool isVertical, Bool isFirst, Bool isLast>
static Void TComInterpolationFilter::filter (Int bitDepth, Pel const *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, TFilterCoeff const *coeff)
 Apply FIR filter to a block of samples. More...
 
template<Int N>
static Void TComInterpolationFilter::filterHor (Int bitDepth, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isLast, TFilterCoeff const *coeff)
 Filter a block of samples (horizontal) More...
 
template<Int N>
static Void TComInterpolationFilter::filterVer (Int bitDepth, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Bool isFirst, Bool isLast, TFilterCoeff const *coeff)
 Filter a block of samples (vertical) More...
 
Void TComInterpolationFilter::filterHor (const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isLast, const ChromaFormat fmt)
 Filter a block of Luma/Chroma samples (horizontal) More...
 
Void TComInterpolationFilter::filterVer (const ComponentID compID, Pel *src, Int srcStride, Pel *dst, Int dstStride, Int width, Int height, Int frac, Bool isFirst, Bool isLast, const ChromaFormat fmt)
 Filter a block of Luma/Chroma samples (vertical) More...
 
#define NTAPS_LUMA   8
 Number of taps for luma. More...
 
#define NTAPS_CHROMA   4
 Number of taps for chroma. More...
 
#define IF_INTERNAL_PREC   14
 Number of bits for internal precision. More...
 
#define IF_FILTER_PREC   6
 Log2 of sum of filter taps. More...
 
#define IF_INTERNAL_OFFS   (1<<(IF_INTERNAL_PREC-1))
 Offset used internally. More...
 
#define DEFAULT_INTRA_TC_OFFSET   2
 Default intra TC offset. More...
 
#define DEBLOCK_SMALLEST_BLOCK   8
 
Void TComCUMvField::create (UInt uiNumPartition)
 
typedef struct _AMVPInfo AMVPInfo
 parameters for AMVP More...
 
Void fillReferenceSamples (const Int bitDepth, TComDataCU *pcCU, const Pel *piRoiOrigin, Pel *piAdiTemp, const Bool *bNeighborFlags, const Int iNumIntraNeighbor, const Int unitWidth, const Int unitHeight, const Int iAboveUnits, const Int iLeftUnits, const UInt uiCuWidth, const UInt uiCuHeight, const UInt uiWidth, const UInt uiHeight, const Int iPicStride, const ChannelType chType, const ChromaFormat chFmt)
 padding of unavailable reference samples for intra prediction More...
 
Bool isAboveLeftAvailable (TComDataCU *pcCU, UInt uiPartIdxLT)
 constrained intra prediction More...
 
Int isAboveAvailable (TComDataCU *pcCU, UInt uiPartIdxLT, UInt uiPartIdxRT, Bool *bValidFlags)
 
Int isLeftAvailable (TComDataCU *pcCU, UInt uiPartIdxLT, UInt uiPartIdxLB, Bool *bValidFlags)
 
Int isAboveRightAvailable (TComDataCU *pcCU, UInt uiPartIdxLT, UInt uiPartIdxRT, Bool *bValidFlags)
 
Int isBelowLeftAvailable (TComDataCU *pcCU, UInt uiPartIdxLT, UInt uiPartIdxLB, Bool *bValidFlags)
 
 TComPic::TComPic ()
 
virtual TComPic::~TComPic ()
 
Void TComPic::create (const TComSPS &sps, const TComPPS &pps, const UInt uiMaxWidth, const UInt uiMaxHeight, const UInt uiMaxDepth, const Bool bIsVirtual)
 
virtual Void TComPic::destroy ()
 
Void TComPic::compressMotion ()
 
Bool TComPic::getSAOMergeAvailability (Int currAddr, Int mergeAddr)
 
UInt TComPic::getSubstreamForCtuAddr (const UInt ctuAddr, const Bool bAddressInRaster, TComSlice *pcSlice)
 
 TComPicSym::TComPicSym ()
 
 TComPicYuv::TComPicYuv ()
 
virtual TComPicYuv::~TComPicYuv ()
 
Void TComPicYuv::create (const Int iPicWidth, const Int iPicHeight, const ChromaFormat chromaFormatIDC, const UInt uiMaxCUWidth, const UInt uiMaxCUHeight, const UInt uiMaxCUDepth)
 
Void TComPicYuv::destroy ()
 
Void TComPicYuv::copyToPic (TComPicYuv *pcPicYuvDst) const
 
Void TComPicYuv::extendPicBorder ()
 
Void TComPicYuv::dump (const Char *pFileName, Bool bAdd=false) const
 
template<UInt OUTPUT_BITDEPTH_DIV8>
static Void md5_block (MD5 &md5, const Pel *plane, UInt n)
 
template<UInt OUTPUT_BITDEPTH_DIV8>
static Void md5_plane (MD5 &md5, const Pel *plane, UInt width, UInt height, UInt stride)
 
UInt compCRC (Int bitdepth, const Pel *plane, UInt width, UInt height, UInt stride, TComDigest &digest)
 
UInt calcCRC (const TComPicYuv &pic, TComDigest &digest)
 
UInt compChecksum (Int bitdepth, const Pel *plane, UInt width, UInt height, UInt stride, TComDigest &digest)
 
UInt calcChecksum (const TComPicYuv &pic, TComDigest &digest)
 
UInt calcMD5 (const TComPicYuv &pic, TComDigest &digest)
 
std::string digestToString (const TComDigest &digest, Int numChar)
 
static const UChar TComPrediction::m_aucIntraFilter [MAX_NUM_CHANNEL_TYPE][MAX_INTRA_FILTER_DEPTHS]
 
Void TComPrediction::xPredIntraAng (Int bitDepth, const Pel *pSrc, Int srcStride, Pel *pDst, Int dstStride, UInt width, UInt height, ChannelType channelType, ChromaFormat format, UInt dirMode, Bool blkAboveAvailable, Bool blkLeftAvailable, const Bool bEnableEdgeFilters)
 
Void TComPrediction::xPredIntraPlanar (const Pel *pSrc, Int srcStride, Pel *rpDst, Int dstStride, UInt width, UInt height, ChannelType channelType, ChromaFormat format)
 
Void TComPrediction::xPredInterUni (TComDataCU *pcCU, UInt uiPartAddr, Int iWidth, Int iHeight, RefPicList eRefPicList, TComYuv *pcYuvPred, Bool bi=false)
 
Void TComPrediction::xPredInterBi (TComDataCU *pcCU, UInt uiPartAddr, Int iWidth, Int iHeight, TComYuv *pcYuvPred)
 
Void TComPrediction::xPredInterBlk (const ComponentID compID, TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *dstPic, Bool bi)
 Generate motion-compensated block. More...
 
Void TComPrediction::xWeightedAverage (TComYuv *pcYuvSrc0, TComYuv *pcYuvSrc1, Int iRefIdx0, Int iRefIdx1, UInt uiPartAddr, Int iWidth, Int iHeight, TComYuv *pcYuvDst)
 
Void TComPrediction::xDCPredFiltering (const Pel *pSrc, Int iSrcStride, Pel *pDst, Int iDstStride, Int iWidth, Int iHeight, ChannelType channelType)
 
Bool TComPrediction::xCheckIdenticalMotion (TComDataCU *pcCU, UInt PartAddr)
 
Void TComPrediction::destroy ()
 
 TComPrediction::TComPrediction ()
 
virtual TComPrediction::~TComPrediction ()
 
Void TComPrediction::initTempBuff (ChromaFormat chromaFormatIDC)
 
Void TComPrediction::motionCompensation (TComDataCU *pcCU, TComYuv *pcYuvPred, RefPicList eRefPicList=REF_PIC_LIST_X, Int iPartIdx=-1)
 
Void TComPrediction::getMvPredAMVP (TComDataCU *pcCU, UInt uiPartIdx, UInt uiPartAddr, RefPicList eRefPicList, TComMv &rcMvPred)
 
Void TComPrediction::predIntraAng (const ComponentID compID, UInt uiDirMode, Pel *piOrg, UInt uiOrgStride, Pel *piPred, UInt uiStride, TComTU &rTu, Bool bAbove, Bool bLeft, const Bool bUseFilteredPredSamples, const Bool bUseLosslessDPCM=false)
 
Pel TComPrediction::predIntraGetPredValDC (const Pel *pSrc, Int iSrcStride, UInt iWidth, UInt iHeight, ChannelType channelType, ChromaFormat format, Bool bAbove, Bool bLeft)
 
static Bool TComPrediction::UseDPCMForFirstPassIntraEstimation (TComTU &rTu, const UInt uiDirMode)
 
enum  PRED_BUF_E { PRED_BUF_UNFILTERED =0, PRED_BUF_FILTERED =1, NUM_PRED_BUF =2 }
 prediction class More...
 
typedef enum PRED_BUF_E PRED_BUF
 prediction class More...
 
static const UInt MAX_INTRA_FILTER_DEPTHS =5
 
 TComRdCost::TComRdCost ()
 
virtual TComRdCost::~TComRdCost ()
 
Double TComRdCost::calcRdCost (UInt uiBits, Distortion uiDistortion, Bool bFlag=false, DFunc eDFunc=DF_DEFAULT)
 
Double TComRdCost::calcRdCost64 (UInt64 uiBits, UInt64 uiDistortion, Bool bFlag=false, DFunc eDFunc=DF_DEFAULT)
 
Void TComRdCost::setLambda (Double dLambda)
 
Void TComRdCost::init ()
 
Void TComRdCost::setDistParam (UInt uiBlkWidth, UInt uiBlkHeight, DFunc eDFunc, DistParam &rcDistParam)
 
Void TComRdCost::setDistParam (TComPattern *pcPatternKey, Pel *piRefY, Int iRefStride, DistParam &rcDistParam)
 
Void TComRdCost::setDistParam (TComPattern *pcPatternKey, Pel *piRefY, Int iRefStride, Int iStep, DistParam &rcDistParam, Bool bHADME=false)
 
Void TComRdCost::setDistParam (DistParam &rcDP, Int bitDepth, Pel *p1, Int iStride1, Pel *p2, Int iStride2, Int iWidth, Int iHeight, Bool bHadamard=false)
 
Distortion TComRdCost::calcHAD (Int bitDepth, Pel *pi0, Int iStride0, Pel *pi1, Int iStride1, Int iWidth, Int iHeight)
 
UInt TComRdCost::xGetComponentBits (Int iVal)
 
Distortion TComRdCost::getDistPart (Int bitDepth, Pel *piCur, Int iCurStride, Pel *piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, const ComponentID compID, DFunc eDFunc=DF_SSE)
 
static Distortion TComRdCost::xGetSSE (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSSE4 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSSE8 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSSE16 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSSE32 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSSE64 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSSE16N (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD4 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD8 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD16 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD32 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD64 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD16N (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD12 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD24 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetSAD48 (DistParam *pcDtParam)
 
static Distortion TComRdCost::xGetHADs (DistParam *pcDtParam)
 
static Distortion TComRdCost::xCalcHADs2x2 (Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep)
 
static Distortion TComRdCost::xCalcHADs4x4 (Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep)
 
static Distortion TComRdCost::xCalcHADs8x8 (Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep)
 
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)
 
#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_saoMaxOffsetQVal [MAX_NUM_COMPONENT]
 
UInt g_saoMaxOffsetQVal [MAX_NUM_COMPONENT]
 
template<typename T >
Int sgn (T val)
 
#define MAX_SAO_TRUNCATED_BITDEPTH   10
 
 TComSlice::TComSlice ()
 
Void partialButterfly4 (TCoeff *src, TCoeff *dst, Int shift, Int line)
 
Void fastForwardDst (TCoeff *block, TCoeff *coeff, Int shift)
 
Void fastInverseDst (TCoeff *tmp, TCoeff *block, Int shift, const TCoeff outputMinimum, const TCoeff outputMaximum)
 
Void partialButterflyInverse4 (TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum)
 
Void partialButterfly8 (TCoeff *src, TCoeff *dst, Int shift, Int line)
 
Void partialButterflyInverse8 (TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum)
 
Void partialButterfly16 (TCoeff *src, TCoeff *dst, Int shift, Int line)
 
Void partialButterflyInverse16 (TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum)
 
Void partialButterfly32 (TCoeff *src, TCoeff *dst, Int shift, Int line)
 
Void partialButterflyInverse32 (TCoeff *src, TCoeff *dst, Int shift, Int line, const TCoeff outputMinimum, const TCoeff outputMaximum)
 
Void xTrMxN (Int bitDepth, TCoeff *block, TCoeff *coeff, Int iWidth, Int iHeight, Bool useDST, const Int maxTrDynamicRange)
 
Void xITrMxN (Int bitDepth, TCoeff *coeff, TCoeff *block, Int iWidth, Int iHeight, Bool useDST, const Int maxTrDynamicRange)
 
#define RDOQ_CHROMA   1
 use of RDOQ in chroma More...
 
#define QP_BITS   15
 
 TComYuv::TComYuv ()
 
virtual TComYuv::~TComYuv ()
 
Void TComYuv::create (const UInt iWidth, const UInt iHeight, const ChromaFormat chromaFormatIDC)
 Create YUV buffer. More...
 
Void TComYuv::destroy ()
 Destroy YUV buffer. More...
 
Void TComYuv::clear ()
 clear YUV buffer More...
 
Void TComYuv::copyToPicYuv (TComPicYuv *pcPicYuvDst, const UInt ctuRsAddr, const UInt uiAbsZorderIdx, const UInt uiPartDepth=0, const UInt uiPartIdx=0) const
 
Void TComYuv::copyToPicComponent (const ComponentID id, TComPicYuv *pcPicYuvDst, const UInt iCtuRsAddr, const UInt uiAbsZorderIdx, const UInt uiPartDepth=0, const UInt uiPartIdx=0) const
 
Void TComYuv::copyFromPicYuv (const TComPicYuv *pcPicYuvSrc, const UInt ctuRsAddr, const UInt uiAbsZorderIdx)
 
Void TComYuv::copyFromPicComponent (const ComponentID id, const TComPicYuv *pcPicYuvSrc, const UInt iCtuRsAddr, const UInt uiAbsZorderIdx)
 
Void TComYuv::copyToPartYuv (TComYuv *pcYuvDst, const UInt uiDstPartIdx) const
 
Void TComYuv::copyToPartComponent (const ComponentID id, TComYuv *pcYuvDst, const UInt uiDstPartIdx) const
 
Void TComYuv::copyPartToYuv (TComYuv *pcYuvDst, const UInt uiSrcPartIdx) const
 
Void TComYuv::copyPartToComponent (const ComponentID id, TComYuv *pcYuvDst, const UInt uiSrcPartIdx) const
 
Void TComYuv::copyPartToPartYuv (TComYuv *pcYuvDst, const UInt uiPartIdx, const UInt uiWidth, const UInt uiHeight) const
 
Void TComYuv::copyPartToPartComponent (const ComponentID id, TComYuv *pcYuvDst, const UInt uiPartIdx, const UInt uiWidthComponent, const UInt uiHeightComponent) const
 
Void TComYuv::copyPartToPartComponentMxN (const ComponentID id, TComYuv *pcYuvDst, const TComRectangle &rect) const
 
Void TComYuv::addClip (const TComYuv *pcYuvSrc0, const TComYuv *pcYuvSrc1, const UInt uiTrUnitIdx, const UInt uiPartSize)
 
Void TComYuv::subtract (const TComYuv *pcYuvSrc0, const TComYuv *pcYuvSrc1, const UInt uiTrUnitIdx, const UInt uiPartSize)
 
Void TComYuv::addAvg (const TComYuv *pcYuvSrc0, const TComYuv *pcYuvSrc1, const UInt iPartUnitIdx, const UInt iWidth, const UInt iHeight)
 
Void TComYuv::removeHighFreq (const TComYuv *pcYuvSrc, const UInt uiPartIdx, const UInt uiWidth, const UInt uiHeight)
 
enum  RDPCMMode { RDPCM_OFF = 0, RDPCM_HOR = 1, RDPCM_VER = 2, NUMBER_OF_RDPCM_MODES = 3 }
 
enum  RDPCMSignallingMode { RDPCM_SIGNAL_IMPLICIT = 0, RDPCM_SIGNAL_EXPLICIT = 1, NUMBER_OF_RDPCM_SIGNALLING_MODES = 2 }
 
enum  SliceType { B_SLICE = 0, P_SLICE = 1, I_SLICE = 2, NUMBER_OF_SLICE_TYPES = 3 }
 supported slice type More...
 
enum  ChromaFormat {
  CHROMA_400 = 0, CHROMA_420 = 1, CHROMA_422 = 2, CHROMA_444 = 3,
  NUM_CHROMA_FORMAT = 4
}
 chroma formats (according to semantics of chroma_format_idc) More...
 
enum  ChannelType { CHANNEL_TYPE_LUMA = 0, CHANNEL_TYPE_CHROMA = 1, MAX_NUM_CHANNEL_TYPE = 2 }
 
enum  ComponentID { COMPONENT_Y = 0, COMPONENT_Cb = 1, COMPONENT_Cr = 2, MAX_NUM_COMPONENT = 3 }
 
enum  InputColourSpaceConversion {
  IPCOLOURSPACE_UNCHANGED = 0, IPCOLOURSPACE_YCbCrtoYCrCb = 1, IPCOLOURSPACE_YCbCrtoYYY = 2, IPCOLOURSPACE_RGBtoGBR = 3,
  NUMBER_INPUT_COLOUR_SPACE_CONVERSIONS = 4
}
 
enum  DeblockEdgeDir { EDGE_VER = 0, EDGE_HOR = 1, NUM_EDGE_DIR = 2 }
 
enum  PartSize {
  SIZE_2Nx2N = 0, SIZE_2NxN = 1, SIZE_Nx2N = 2, SIZE_NxN = 3,
  SIZE_2NxnU = 4, SIZE_2NxnD = 5, SIZE_nLx2N = 6, SIZE_nRx2N = 7,
  NUMBER_OF_PART_SIZES = 8
}
 supported partition shape More...
 
enum  PredMode { MODE_INTER = 0, MODE_INTRA = 1, NUMBER_OF_PREDICTION_MODES = 2 }
 supported prediction type More...
 
enum  RefPicList { REF_PIC_LIST_0 = 0, REF_PIC_LIST_1 = 1, NUM_REF_PIC_LIST_01 = 2, REF_PIC_LIST_X = 100 }
 reference list index More...
 
enum  DFunc {
  DF_DEFAULT = 0, DF_SSE = 1, DF_SSE4 = 2, DF_SSE8 = 3,
  DF_SSE16 = 4, DF_SSE32 = 5, DF_SSE64 = 6, DF_SSE16N = 7,
  DF_SAD = 8, DF_SAD4 = 9, DF_SAD8 = 10, DF_SAD16 = 11,
  DF_SAD32 = 12, DF_SAD64 = 13, DF_SAD16N = 14, DF_SADS = 15,
  DF_SADS4 = 16, DF_SADS8 = 17, DF_SADS16 = 18, DF_SADS32 = 19,
  DF_SADS64 = 20, DF_SADS16N = 21, DF_HADS = 22, DF_HADS4 = 23,
  DF_HADS8 = 24, DF_HADS16 = 25, DF_HADS32 = 26, DF_HADS64 = 27,
  DF_HADS16N = 28, DF_SAD12 = 43, DF_SAD24 = 44, DF_SAD48 = 45,
  DF_SADS12 = 46, DF_SADS24 = 47, DF_SADS48 = 48, DF_SSE_FRAME = 50,
  DF_TOTAL_FUNCTIONS = 64
}
 distortion function index More...
 
enum  CI_IDX {
  CI_CURR_BEST = 0, CI_NEXT_BEST, CI_TEMP_BEST, CI_CHROMA_INTRA,
  CI_QT_TRAFO_TEST, CI_QT_TRAFO_ROOT, CI_NUM
}
 index for SBAC based RD optimization More...
 
enum  MVP_DIR {
  MD_LEFT = 0, MD_ABOVE, MD_ABOVE_RIGHT, MD_BELOW_LEFT,
  MD_ABOVE_LEFT
}
 motion vector predictor direction used in AMVP More...
 
enum  StoredResidualType { RESIDUAL_RECONSTRUCTED = 0, RESIDUAL_ENCODER_SIDE = 1, NUMBER_OF_STORED_RESIDUAL_TYPES = 2 }
 
enum  TransformDirection { TRANSFORM_FORWARD = 0, TRANSFORM_INVERSE = 1, TRANSFORM_NUMBER_OF_DIRECTIONS = 2 }
 
enum  MESearchMethod { FULL_SEARCH = 0, DIAMOND = 1, SELECTIVE = 2 }
 supported ME search methods More...
 
enum  COEFF_SCAN_TYPE { SCAN_DIAG = 0, SCAN_HOR = 1, SCAN_VER = 2, SCAN_NUMBER_OF_TYPES = 3 }
 coefficient scanning type used in ACS More...
 
enum  COEFF_SCAN_GROUP_TYPE { SCAN_UNGROUPED = 0, SCAN_GROUPED_4x4 = 1, SCAN_NUMBER_OF_GROUP_TYPES = 2 }
 
enum  SignificanceMapContextType {
  CONTEXT_TYPE_4x4 = 0, CONTEXT_TYPE_8x8 = 1, CONTEXT_TYPE_NxN = 2, CONTEXT_TYPE_SINGLE = 3,
  CONTEXT_NUMBER_OF_TYPES = 4
}
 
enum  ScalingListMode { SCALING_LIST_OFF, SCALING_LIST_DEFAULT, SCALING_LIST_FILE_READ }
 
enum  ScalingListSize {
  SCALING_LIST_4x4 = 0, SCALING_LIST_8x8, SCALING_LIST_16x16, SCALING_LIST_32x32,
  SCALING_LIST_SIZE_NUM
}
 
enum  SliceConstraint { NO_SLICES = 0, FIXED_NUMBER_OF_CTU = 1, FIXED_NUMBER_OF_BYTES = 2, FIXED_NUMBER_OF_TILES = 3 }
 
enum  SAOMode { SAO_MODE_OFF = 0, SAO_MODE_NEW, SAO_MODE_MERGE, NUM_SAO_MODES }
 
enum  SAOModeMergeTypes { SAO_MERGE_LEFT =0, SAO_MERGE_ABOVE, NUM_SAO_MERGE_TYPES }
 
enum  SAOModeNewTypes {
  SAO_TYPE_START_EO =0, SAO_TYPE_EO_0 = SAO_TYPE_START_EO, SAO_TYPE_EO_90, SAO_TYPE_EO_135,
  SAO_TYPE_EO_45, SAO_TYPE_START_BO, SAO_TYPE_BO = SAO_TYPE_START_BO, NUM_SAO_NEW_TYPES
}
 
enum  SAOEOClasses {
  SAO_CLASS_EO_FULL_VALLEY = 0, SAO_CLASS_EO_HALF_VALLEY = 1, SAO_CLASS_EO_PLAIN = 2, SAO_CLASS_EO_HALF_PEAK = 3,
  SAO_CLASS_EO_FULL_PEAK = 4, NUM_SAO_EO_CLASSES
}
 
enum  CostMode { COST_STANDARD_LOSSY = 0, COST_SEQUENCE_LEVEL_LOSSLESS = 1, COST_LOSSLESS_CODING = 2, COST_MIXED_LOSSLESS_LOSSY_CODING = 3 }
 
enum  SPSExtensionFlagIndex { SPS_EXT__REXT = 0, NUM_SPS_EXTENSION_FLAGS = 8 }
 
enum  PPSExtensionFlagIndex { PPS_EXT__REXT = 0, NUM_PPS_EXTENSION_FLAGS = 8 }
 
typedef void Void
 
typedef bool Bool
 
typedef char Char
 
typedef unsigned char UChar
 
typedef short Short
 
typedef unsigned short UShort
 
typedef int Int
 
typedef unsigned int UInt
 
typedef double Double
 
typedef float Float
 
typedef long long Int64
 
typedef unsigned long long UInt64
 
typedef Short Pel
 pixel type More...
 
typedef Int TCoeff
 transform coefficient More...
 
typedef Short TMatrixCoeff
 transform matrix coefficient More...
 
typedef Short TFilterCoeff
 filter coefficient More...
 
typedef Int Intermediate_Int
 used as intermediate value in calculations More...
 
typedef UInt Intermediate_UInt
 used as intermediate value in calculations More...
 
typedef UInt Distortion
 distortion measurement More...
 
typedef struct _LFCUParam LFCUParam
 parameters for deblocking filter More...
 
#define DEBUG_STRING_PASS_INTO(name)
 
#define DEBUG_STRING_PASS_INTO_OPTIONAL(name, exp)
 
#define DEBUG_STRING_FN_DECLARE(name)
 
#define DEBUG_STRING_FN_DECLAREP(name)
 
#define DEBUG_STRING_NEW(name)
 
#define DEBUG_STRING_OUTPUT(os, name)
 
#define DEBUG_STRING_APPEND(str1, str2)
 
#define DEBUG_STRING_SWAP(srt1, str2)
 
#define DEBUG_STRING_CHANNEL_CONDITION(compID)
 
#define HARMONIZE_GOP_FIRST_FIELD_COUPLE   1
 
#define EFFICIENT_FIELD_IRAP   1
 
#define ALLOW_RECOVERY_POINT_AS_RAP   1
 
#define BUGFIX_INTRAPERIOD   1
 
#define SAO_ENCODE_ALLOW_USE_PREDEBLOCK   1
 
#define TILE_SIZE_CHECK   1
 
#define MAX_NUM_PICS_IN_SOP   1024
 
#define MAX_NESTING_NUM_OPS   1024
 
#define MAX_NESTING_NUM_LAYER   64
 
#define MAX_VPS_NUM_HRD_PARAMETERS   1
 
#define MAX_VPS_OP_SETS_PLUS1   1024
 
#define MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1   1
 
#define MAXIMUM_INTRA_FILTERED_WIDTH   16
 
#define MAXIMUM_INTRA_FILTERED_HEIGHT   16
 
#define MAX_CPB_CNT   32
 Upper bound of (cpb_cnt_minus1 + 1) More...
 
#define MAX_NUM_LAYER_IDS   64
 
#define COEF_REMAIN_BIN_REDUCTION   3
 transitions from Golomb-Rice to TU+EG(k) More...
 
#define CU_DQP_TU_CMAX   5
 max number bins for truncated unary More...
 
#define CU_DQP_EG_k   0
 expgolomb order More...
 
#define SBH_THRESHOLD   4
 I0156: value of the fixed SBH controlling threshold. More...
 
#define DISABLING_CLIP_FOR_BIPREDME   1
 Ticket #175. More...
 
#define C1FLAG_NUMBER   8
 
#define C2FLAG_NUMBER   1
 
#define SAO_ENCODING_CHOICE   1
 I0184: picture early termination. More...
 
#define SAO_ENCODING_RATE   0.75
 
#define SAO_ENCODING_CHOICE_CHROMA   1
 J0044: picture early termination Luma and Chroma are handled separately. More...
 
#define SAO_ENCODING_RATE_CHROMA   0.5
 
#define MAX_NUM_SAO_OFFSETS   4
 
#define MAX_NUM_VPS   16
 
#define MAX_NUM_SPS   16
 
#define MAX_NUM_PPS   64
 
#define RDOQ_CHROMA_LAMBDA   1
 F386: weighting of chroma for RDOQ. More...
 
#define MIN_SCAN_POS_CROSS   4
 
#define FAST_BIT_EST   1
 G763: Table-based bit estimation for CABAC. More...
 
#define MLS_GRP_NUM   64
 G644 : Max number of coefficient groups, max(16, 64) More...
 
#define MLS_CG_LOG2_WIDTH   2
 
#define MLS_CG_LOG2_HEIGHT   2
 
#define MLS_CG_SIZE   (MLS_CG_LOG2_WIDTH + MLS_CG_LOG2_HEIGHT)
 G644 : Coefficient group size of 4x4. More...
 
#define ADAPTIVE_QP_SELECTION   1
 G382: Adaptive reconstruction levels, non-normative part for adaptive QP selection. More...
 
#define ARL_C_PRECISION   7
 G382: 7-bit arithmetic precision. More...
 
#define LEVEL_RANGE   30
 G382: max coefficient level in statistics collection. More...
 
#define HHI_RQT_INTRA_SPEEDUP   1
 tests one best mode with full rqt More...
 
#define HHI_RQT_INTRA_SPEEDUP_MOD   0
 tests two best modes with full rqt More...
 
#define VERBOSE_RATE   0
 Print additional rate information in encoder. More...
 
#define AMVP_DECIMATION_FACTOR   4
 
#define SCAN_SET_SIZE   16
 
#define LOG2_SCAN_SET_SIZE   4
 
#define FAST_UDI_MAX_RDMODE_NUM   35
 maximum number of RD comparison in fast-UDI estimation loop More...
 
#define NUM_INTRA_MODE   36
 
#define WRITE_BACK   1
 Enable/disable the encoder to replace the deltaPOC and Used by current from the config file with the values derived by the refIdc parameter. More...
 
#define PRINT_RPS_INFO   0
 Enable/disable the printing of bits used to send the RPS. More...
 
#define RVM_VCEGAM10_M   4
 
#define PLANAR_IDX   0
 
#define VER_IDX   26
 
#define HOR_IDX   10
 
#define DC_IDX   1
 
#define NUM_CHROMA_MODE   5
 
#define DM_CHROMA_IDX   36
 
#define INVALID_MODE_IDX   (NUM_INTRA_MODE+1)
 
#define STOPCHROMASEARCH_MODE_IDX   (INVALID_MODE_IDX+1)
 
#define MDCS_ANGLE_LIMIT   4
 (default 4) 0 = Horizontal/vertical only, 1 = Horizontal/vertical +/- 1, 2 = Horizontal/vertical +/- 2 etc... More...
 
#define MDCS_MAXIMUM_WIDTH   8
 (default 8) (measured in pixels) TUs with width greater than this can only use diagonal scan More...
 
#define MDCS_MAXIMUM_HEIGHT   8
 (default 8) (measured in pixels) TUs with height greater than this can only use diagonal scan More...
 
#define FAST_UDI_USE_MPM   1
 
#define RDO_WITHOUT_DQP_BITS   0
 Disable counting dQP bits in RDO-based mode decision. More...
 
#define LOG2_MAX_NUM_COLUMNS_MINUS1   7
 
#define LOG2_MAX_NUM_ROWS_MINUS1   7
 
#define LOG2_MAX_COLUMN_WIDTH   13
 
#define LOG2_MAX_ROW_HEIGHT   13
 
#define MATRIX_MULT   0
 
#define AMP_SAD   1
 dedicated SAD functions for AMP More...
 
#define AMP_ENC_SPEEDUP   1
 encoder only speed-up by AMP mode skipping More...
 
#define AMP_MRG   1
 encoder only force merge for AMP partition (no motion search for AMP) More...
 
#define CABAC_INIT_PRESENT_FLAG   1
 
#define LUMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS   4
 
#define CHROMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS   8
 
#define MAX_NUM_LONG_TERM_REF_PICS   33
 
#define NUM_LONG_TERM_REF_PIC_SPS   0
 
#define DECODER_CHECK_SUBSTREAM_AND_SLICE_TRAILING_BYTES   1
 
#define RD_TEST_SAO_DISABLE_AT_PICTURE_LEVEL   0
 1 = tests whether SAO should be disabled at the picture level, 0 (default) = does not apply this additional test More...
 
#define O0043_BEST_EFFORT_DECODING   0
 0 (default) = disable code related to best effort decoding, 1 = enable code relating to best effort decoding [ decode-side only ]. More...
 
#define MAX_QP_OFFSET_LIST_SIZE   6
 Maximum size of QP offset list is 6 entries. More...
 
#define LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP   0
 QP to use for lossless coding. More...
 
#define LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP_PRIME   4
 QP' to use for mixed_lossy_lossless coding. More...
 
#define ENVIRONMENT_VARIABLE_DEBUG_AND_TEST   0
 When enabled, allows control of debug modifications via environment variables. More...
 
#define PRINT_MACRO_VALUES   1
 When enabled, the encoder prints out a list of the non-environment-variable controlled macros and their values on startup. More...
 
#define RExt__DECODER_DEBUG_BIT_STATISTICS   0
 0 (default) = decoder reports as normal, 1 = decoder produces bit usage statistics (will impact decoder run time by up to ~10%) More...
 
#define RExt__HIGH_BIT_DEPTH_SUPPORT   0
 0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up to 16-bit video (originally developed as part of N0188) More...
 
#define RExt__GOLOMB_RICE_ADAPTATION_STATISTICS_SETS   4
 
#define RExt__GOLOMB_RICE_INCREMENT_DIVISOR   4
 
#define RExt__PREDICTION_WEIGHTING_ANALYSIS_DC_PRECISION   0
 Additional fixed bit precision used during encoder-side weighting prediction analysis. Currently only used when high_precision_prediction_weighting_flag is set, for backwards compatibility reasons. More...
 
#define MAX_TIMECODE_SEI_SETS   3
 Maximum number of time sets. More...
 
#define FULL_NBIT   0
 When enabled, use distortion measure derived from all bits of source data, otherwise discard (bitDepth - 8) least-significant bits of distortion. More...
 
#define RExt__HIGH_PRECISION_FORWARD_TRANSFORM   0
 0 (default) use original 6-bit transform matrices for both forward and inverse transform, 1 = use original matrices for inverse transform and high precision matrices for forward transform More...
 
#define DISTORTION_PRECISION_ADJUSTMENT(x)   (x)
 
#define NUM_SAO_EO_TYPES_LOG2   2
 
#define NUM_SAO_BO_CLASSES_LOG2   5
 
#define NUM_SAO_BO_CLASSES   (1<<NUM_SAO_BO_CLASSES_LOG2)
 
#define MAX_NUM_SAO_CLASSES   32
 

Detailed Description

Macro Definition Documentation

#define _SUMMARY_OUT_   0

print-out PSNR results of all slices to summary.txt

Definition at line 107 of file CommonDef.h.

#define _SUMMARY_PIC_   0

print-out PSNR results for each slice type to summary.txt

Definition at line 108 of file CommonDef.h.

#define ADAPT_SR_SCALE   1

division factor for adaptive search range

Definition at line 205 of file CommonDef.h.

#define ADAPTIVE_QP_SELECTION   1

G382: Adaptive reconstruction levels, non-normative part for adaptive QP selection.

Definition at line 148 of file TypeDef.h.

#define ADDITIONAL_MULTIPLIER_BITS   14

Definition at line 105 of file TComRom.h.

#define ALLOW_RECOVERY_POINT_AS_RAP   1

Definition at line 87 of file TypeDef.h.

#define AMP_ENC_SPEEDUP   1

encoder only speed-up by AMP mode skipping

Definition at line 205 of file TypeDef.h.

#define AMP_MRG   1

encoder only force merge for AMP partition (no motion search for AMP)

Definition at line 207 of file TypeDef.h.

#define AMP_SAD   1

dedicated SAD functions for AMP

Definition at line 204 of file TypeDef.h.

#define AMVP_DECIMATION_FACTOR   4

Definition at line 163 of file TypeDef.h.

#define AMVP_MAX_NUM_CANDS   2

max number of final candidates

Definition at line 183 of file CommonDef.h.

#define AMVP_MAX_NUM_CANDS_MEM   3

max number of candidates

Definition at line 184 of file CommonDef.h.

#define ARL_C_PRECISION   7

G382: 7-bit arithmetic precision.

Definition at line 150 of file TypeDef.h.

#define BSLICE_CHROMA_ABS_CONTEXT   107, 167

Definition at line 410 of file ContextTables.h.

#define BSLICE_CHROMA_CBF_CONTEXT   149, 92, 167, 154, 154

Definition at line 301 of file ContextTables.h.

#define BSLICE_CHROMA_LAST_POSITION_CONTEXT   108, 123, 93, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU

Definition at line 335 of file ContextTables.h.

#define BSLICE_CHROMA_ONE_CONTEXT   169, 208, 166, 167, 154, 152, 167, 182

Definition at line 406 of file ContextTables.h.

#define BSLICE_CHROMA_SIGNIFICANCE_CONTEXT   170, 153, 138, 138, 122, 121, 122, 121, 167, 151, 183, 140, 151, 183, 140, 140

Definition at line 377 of file ContextTables.h.

#define BSLICE_LUMA_ABS_CONTEXT   107, 167, 91, 107

Definition at line 401 of file ContextTables.h.

#define BSLICE_LUMA_CBF_CONTEXT   153, 111, CNU, CNU, CNU

Definition at line 297 of file ContextTables.h.

#define BSLICE_LUMA_LAST_POSITION_CONTEXT   125, 110, 124, 110, 95, 94, 125, 111, 111, 79, 125, 126, 111, 111, 79

Definition at line 331 of file ContextTables.h.

#define BSLICE_LUMA_ONE_CONTEXT   154, 196, 167, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 122

Definition at line 397 of file ContextTables.h.

#define BSLICE_LUMA_SIGNIFICANCE_CONTEXT   170, 154, 139, 153, 139, 123, 123, 63, 124, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 140

Definition at line 372 of file ContextTables.h.

#define BUGFIX_INTRAPERIOD   1

Definition at line 88 of file TypeDef.h.

#define C1FLAG_NUMBER   8

Definition at line 119 of file TypeDef.h.

#define C2FLAG_NUMBER   1

Definition at line 120 of file TypeDef.h.

#define CABAC_INIT_PRESENT_FLAG   1

Definition at line 210 of file TypeDef.h.

#define CHROMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS   8

Definition at line 213 of file TypeDef.h.

#define CLIP_TO_709_RANGE   0

Definition at line 207 of file CommonDef.h.

#define CNU   154

dummy initialization value for unused context models 'Context model Not Used'

Definition at line 163 of file ContextTables.h.

#define COEF_REMAIN_BIN_REDUCTION   3

transitions from Golomb-Rice to TU+EG(k)

indicates the level at which the VLC

Definition at line 109 of file TypeDef.h.

#define CONTEXT_STATE_BITS   6

Definition at line 136 of file TComRom.h.

#define COUNTER_END   0

Definition at line 192 of file TComRom.h.

#define COUNTER_START   1

Definition at line 191 of file TComRom.h.

#define CU_DQP_EG_k   0

expgolomb order

Definition at line 113 of file TypeDef.h.

#define CU_DQP_TU_CMAX   5

max number bins for truncated unary

Definition at line 112 of file TypeDef.h.

#define DATA_ALIGN   1

use 32-bit aligned malloc/free

Definition at line 151 of file CommonDef.h.

#define DC_IDX   1

Definition at line 183 of file TypeDef.h.

#define DEBLOCK_SMALLEST_BLOCK   8

Definition at line 47 of file TComLoopFilter.h.

#define DEBUG_STRING_APPEND (   str1,
  str2 
)

Definition at line 75 of file TypeDef.h.

#define DEBUG_STRING_CHANNEL_CONDITION (   compID)

Definition at line 77 of file TypeDef.h.

#define DEBUG_STRING_FN_DECLARE (   name)

Definition at line 71 of file TypeDef.h.

#define DEBUG_STRING_FN_DECLAREP (   name)

Definition at line 72 of file TypeDef.h.

#define DEBUG_STRING_NEW (   name)

Definition at line 73 of file TypeDef.h.

#define DEBUG_STRING_OUTPUT (   os,
  name 
)

Definition at line 74 of file TypeDef.h.

#define DEBUG_STRING_PASS_INTO (   name)

Definition at line 69 of file TypeDef.h.

#define DEBUG_STRING_PASS_INTO_OPTIONAL (   name,
  exp 
)

Definition at line 70 of file TypeDef.h.

#define DEBUG_STRING_SWAP (   srt1,
  str2 
)

Definition at line 76 of file TypeDef.h.

#define DECODER_CHECK_SUBSTREAM_AND_SLICE_TRAILING_BYTES   1

Definition at line 218 of file TypeDef.h.

#define DEFAULT_INTRA_TC_OFFSET   2

Default intra TC offset.

Definition at line 53 of file TComLoopFilter.cpp.

#define DISABLING_CLIP_FOR_BIPREDME   1

Ticket #175.

Definition at line 117 of file TypeDef.h.

#define DISTORTION_PRECISION_ADJUSTMENT (   x)    (x)

Definition at line 269 of file TypeDef.h.

#define DM_CHROMA_IDX   36

Definition at line 185 of file TypeDef.h.

#define DTRACE_CABAC_F (   x)    if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%f", x );

Definition at line 194 of file TComRom.h.

#define DTRACE_CABAC_N   if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "\n" );

Definition at line 200 of file TComRom.h.

#define DTRACE_CABAC_R (   x,
 
)    if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, x, y );

Definition at line 199 of file TComRom.h.

#define DTRACE_CABAC_T (   x)    if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%s", x );

Definition at line 197 of file TComRom.h.

#define DTRACE_CABAC_V (   x)    if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%d", x );

Definition at line 195 of file TComRom.h.

#define DTRACE_CABAC_VL (   x)    if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%lld", x );

Definition at line 196 of file TComRom.h.

#define DTRACE_CABAC_X (   x)    if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "%x", x );

Definition at line 198 of file TComRom.h.

#define DYN_REF_FREE   0

dynamic free of reference memories

Definition at line 189 of file CommonDef.h.

#define EARLY_SKIP_THRES   1.50

if RD < thres*avg[BestSkipRD]

Definition at line 210 of file CommonDef.h.

#define EFFICIENT_FIELD_IRAP   1

Definition at line 86 of file TypeDef.h.

#define ENC_DEC_TRACE   1

Definition at line 179 of file TComRom.h.

#define ENVIRONMENT_VARIABLE_DEBUG_AND_TEST   0

When enabled, allows control of debug modifications via environment variables.

Definition at line 232 of file TypeDef.h.

#define FAST_BIT_EST   1

G763: Table-based bit estimation for CABAC.

Definition at line 141 of file TypeDef.h.

#define FAST_UDI_MAX_RDMODE_NUM   35

maximum number of RD comparison in fast-UDI estimation loop

Definition at line 168 of file TypeDef.h.

#define FAST_UDI_USE_MPM   1

Definition at line 193 of file TypeDef.h.

#define FASTME_SMOOTHER_MV   1

reduce ME time using faster option

Definition at line 202 of file CommonDef.h.

#define FATAL_ERROR_0 (   MESSAGE,
  EXITCODE 
)
Value:
{ \
printf(MESSAGE); \
exit(EXITCODE); \
}

Definition at line 160 of file CommonDef.h.

#define FIRST_CBF_CTX_CHROMA   (FIRST_CBF_CTX_LUMA + NUM_QT_CBF_CTX_PER_SET)

index of first chrominance CBF context

Definition at line 147 of file ContextTables.h.

#define FIRST_CBF_CTX_LUMA   0

index of first luminance CBF context

Definition at line 145 of file ContextTables.h.

#define FIRST_CTX_SET_CHROMA   (FIRST_CTX_SET_LUMA + NUM_CTX_SETS_LUMA)

index of first chrominance context set

Definition at line 135 of file ContextTables.h.

#define FIRST_CTX_SET_LUMA   0

index of first luminance context set

Definition at line 122 of file ContextTables.h.

#define FIRST_SIG_FLAG_CTX_CHROMA   (FIRST_SIG_FLAG_CTX_LUMA + NUM_SIG_FLAG_CTX_LUMA)

Definition at line 98 of file ContextTables.h.

#define FIRST_SIG_FLAG_CTX_LUMA   0

Definition at line 97 of file ContextTables.h.

#define FULL_NBIT   0

When enabled, use distortion measure derived from all bits of source data, otherwise discard (bitDepth - 8) least-significant bits of distortion.

Definition at line 262 of file TypeDef.h.

#define GPB_SIMPLE   1

Simple GPB mode.

Definition at line 196 of file CommonDef.h.

#define GPB_SIMPLE_UNI   1

Simple mode for uni-direction.

Definition at line 198 of file CommonDef.h.

#define HARMONIZE_GOP_FIRST_FIELD_COUPLE   1

Definition at line 85 of file TypeDef.h.

#define HB_LAMBDA_FOR_LDC   1

use of B-style lambda for non-key pictures in low-delay mode

Definition at line 193 of file CommonDef.h.

#define HHI_RQT_INTRA_SPEEDUP   1

tests one best mode with full rqt

Definition at line 154 of file TypeDef.h.

#define HHI_RQT_INTRA_SPEEDUP_MOD   0

tests two best modes with full rqt

Definition at line 155 of file TypeDef.h.

#define HOR_IDX   10

Definition at line 182 of file TypeDef.h.

#define IF_FILTER_PREC   6

Log2 of sum of filter taps.

Definition at line 50 of file TComInterpolationFilter.h.

#define IF_INTERNAL_OFFS   (1<<(IF_INTERNAL_PREC-1))

Offset used internally.

Definition at line 51 of file TComInterpolationFilter.h.

#define IF_INTERNAL_PREC   14

Number of bits for internal precision.

Definition at line 49 of file TComInterpolationFilter.h.

#define INVALID_MODE_IDX   (NUM_INTRA_MODE+1)

Definition at line 186 of file TypeDef.h.

#define INVSQRT2   11585

Definition at line 103 of file TComRom.h.

#define INVSQRT2_SHIFT   14

Definition at line 104 of file TComRom.h.

#define IQUANT_SHIFT   6

Definition at line 96 of file TComRom.h.

#define ISLICE_CHROMA_ABS_CONTEXT   152, 152

Definition at line 412 of file ContextTables.h.

#define ISLICE_CHROMA_CBF_CONTEXT   94, 138, 182, 154, 154

Definition at line 303 of file ContextTables.h.

#define ISLICE_CHROMA_LAST_POSITION_CONTEXT   108, 123, 63, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU

Definition at line 337 of file ContextTables.h.

#define ISLICE_CHROMA_ONE_CONTEXT   140, 179, 166, 182, 140, 227, 122, 197

Definition at line 408 of file ContextTables.h.

#define ISLICE_CHROMA_SIGNIFICANCE_CONTEXT   140, 139, 182, 182, 152, 136, 152, 136, 153, 136, 139, 111, 136, 139, 111, 111

Definition at line 379 of file ContextTables.h.

#define ISLICE_LUMA_ABS_CONTEXT   138, 153, 136, 167

Definition at line 403 of file ContextTables.h.

#define ISLICE_LUMA_CBF_CONTEXT   111, 141, CNU, CNU, CNU

Definition at line 299 of file ContextTables.h.

#define ISLICE_LUMA_LAST_POSITION_CONTEXT   110, 110, 124, 125, 140, 153, 125, 127, 140, 109, 111, 143, 127, 111, 79

Definition at line 333 of file ContextTables.h.

#define ISLICE_LUMA_ONE_CONTEXT   140, 92, 137, 138, 140, 152, 138, 139, 153, 74, 149, 92, 139, 107, 122, 152

Definition at line 399 of file ContextTables.h.

#define ISLICE_LUMA_SIGNIFICANCE_CONTEXT   111, 111, 125, 110, 110, 94, 124, 108, 124, 107, 125, 141, 179, 153, 125, 107, 125, 141, 179, 153, 125, 107, 125, 141, 179, 153, 125, 141

Definition at line 374 of file ContextTables.h.

#define LAST_SIGNIFICANT_GROUPS   10

Definition at line 137 of file TComRom.h.

#define LEVEL_RANGE   30

G382: max coefficient level in statistics collection.

Definition at line 151 of file TypeDef.h.

#define LOG2_MAX_COLUMN_WIDTH   13

Definition at line 199 of file TypeDef.h.

#define LOG2_MAX_NUM_COLUMNS_MINUS1   7

Definition at line 197 of file TypeDef.h.

#define LOG2_MAX_NUM_ROWS_MINUS1   7

Definition at line 198 of file TypeDef.h.

#define LOG2_MAX_ROW_HEIGHT   13

Definition at line 200 of file TypeDef.h.

#define LOG2_SCALING_LIST_NEUTRAL_VALUE   4

log2 of the value that, when used in a scaling list, has no effect on quantisation

Definition at line 221 of file TComRom.h.

#define LOG2_SCAN_SET_SIZE   4

Definition at line 166 of file TypeDef.h.

#define LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP   0

QP to use for lossless coding.

Definition at line 227 of file TypeDef.h.

#define LOSSLESS_AND_MIXED_LOSSLESS_RD_COST_TEST_QP_PRIME   4

QP' to use for mixed_lossy_lossless coding.

Definition at line 228 of file TypeDef.h.

#define LUMA_INTERPOLATION_FILTER_SUB_SAMPLE_POSITIONS   4

Definition at line 212 of file TypeDef.h.

#define MATRIX_MULT   0

Definition at line 202 of file TypeDef.h.

#define MAX_CHROMA_FORMAT_IDC   3

Definition at line 213 of file CommonDef.h.

#define MAX_CPB_CNT   32

Upper bound of (cpb_cnt_minus1 + 1)

Definition at line 106 of file TypeDef.h.

#define MAX_CU_DEPTH   6

Definition at line 53 of file TComRom.h.

#define MAX_CU_SIZE   (1<<(MAX_CU_DEPTH))

Definition at line 54 of file TComRom.h.

#define MAX_DOUBLE   1.7e+308

max. value of Double-type value

Definition at line 124 of file CommonDef.h.

#define MAX_GOP   64

max. value of hierarchical GOP size

Definition at line 110 of file CommonDef.h.

#define MAX_INT   2147483647

max. value of signed 32-bit integer

Definition at line 116 of file CommonDef.h.

#define MAX_INT64   0x7FFFFFFFFFFFFFFFLL

max. value of signed 64-bit integer

Definition at line 117 of file CommonDef.h.

#define MAX_INTERMEDIATE_INT   MAX_INT

Definition at line 121 of file CommonDef.h.

#define MAX_MATRIX_COEF_NUM   64

max coefficient number for quantization matrix

Definition at line 218 of file TComRom.h.

#define MAX_MATRIX_SIZE_NUM   8

max size number for quantization matrix

Definition at line 219 of file TComRom.h.

#define MAX_NESTING_NUM_LAYER   64

Definition at line 97 of file TypeDef.h.

#define MAX_NESTING_NUM_OPS   1024

Definition at line 96 of file TypeDef.h.

#define MAX_NUM_CTX_MOD   512

maximum number of supported contexts

Definition at line 49 of file ContextTables.h.

#define MAX_NUM_LAYER_IDS   64

Definition at line 107 of file TypeDef.h.

#define MAX_NUM_LONG_TERM_REF_PICS   33

Definition at line 215 of file TypeDef.h.

#define MAX_NUM_PICS_IN_SOP   1024

Definition at line 94 of file TypeDef.h.

#define MAX_NUM_PPS   64

Definition at line 135 of file TypeDef.h.

#define MAX_NUM_REF   16

max. number of entries in picture reference list

Definition at line 113 of file CommonDef.h.

#define MAX_NUM_REF_PICS   16

max. number of pictures used for reference

Definition at line 112 of file CommonDef.h.

#define MAX_NUM_SAO_CLASSES   32

Definition at line 709 of file TypeDef.h.

#define MAX_NUM_SAO_OFFSETS   4

Definition at line 131 of file TypeDef.h.

#define MAX_NUM_SPS   16

Definition at line 134 of file TypeDef.h.

#define MAX_NUM_SPU_W   (MAX_CU_SIZE/MIN_PU_SIZE)

Definition at line 58 of file TComRom.h.

#define MAX_NUM_VPS   16

Definition at line 133 of file TypeDef.h.

#define MAX_QP   51

Definition at line 127 of file CommonDef.h.

#define MAX_QP_OFFSET_LIST_SIZE   6

Maximum size of QP offset list is 6 entries.

Definition at line 224 of file TypeDef.h.

#define MAX_SAO_TRUNCATED_BITDEPTH   10

Definition at line 52 of file TComSampleAdaptiveOffset.h.

#define MAX_TIMECODE_SEI_SETS   3

Maximum number of time sets.

Definition at line 252 of file TypeDef.h.

#define MAX_TLAYER   7

max number of temporal layer

Definition at line 192 of file CommonDef.h.

#define MAX_TU_SIZE   32

Definition at line 57 of file TComRom.h.

#define MAX_UINT   0xFFFFFFFFU

max. value of unsigned 32-bit integer

Definition at line 115 of file CommonDef.h.

#define MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1   1

Definition at line 101 of file TypeDef.h.

#define MAX_VPS_NUM_HRD_PARAMETERS   1

Definition at line 99 of file TypeDef.h.

#define MAX_VPS_OP_SETS_PLUS1   1024

Definition at line 100 of file TypeDef.h.

#define MAXIMUM_INTRA_FILTERED_HEIGHT   16

Definition at line 104 of file TypeDef.h.

#define MAXIMUM_INTRA_FILTERED_WIDTH   16

Definition at line 103 of file TypeDef.h.

#define MDCS_ANGLE_LIMIT   4

(default 4) 0 = Horizontal/vertical only, 1 = Horizontal/vertical +/- 1, 2 = Horizontal/vertical +/- 2 etc...

Definition at line 189 of file TypeDef.h.

#define MDCS_MAXIMUM_HEIGHT   8

(default 8) (measured in pixels) TUs with height greater than this can only use diagonal scan

Definition at line 191 of file TypeDef.h.

#define MDCS_MAXIMUM_WIDTH   8

(default 8) (measured in pixels) TUs with width greater than this can only use diagonal scan

Definition at line 190 of file TypeDef.h.

#define MIN_PU_SIZE   4

Definition at line 55 of file TComRom.h.

#define MIN_QP   0

Definition at line 126 of file CommonDef.h.

#define MIN_SCAN_POS_CROSS   4

Definition at line 139 of file TypeDef.h.

#define MIN_TU_SIZE   4

Definition at line 56 of file TComRom.h.

#define MLS_CG_LOG2_HEIGHT   2

Definition at line 145 of file TypeDef.h.

#define MLS_CG_LOG2_WIDTH   2

Definition at line 144 of file TypeDef.h.

#define MLS_CG_SIZE   (MLS_CG_LOG2_WIDTH + MLS_CG_LOG2_HEIGHT)

G644 : Coefficient group size of 4x4.

Definition at line 146 of file TypeDef.h.

#define MLS_GRP_NUM   64

G644 : Max number of coefficient groups, max(16, 64)

Definition at line 143 of file TypeDef.h.

#define MRG_MAX_NUM_CANDS   5

Definition at line 186 of file CommonDef.h.

#define NEIGHBOURHOOD_00_CONTEXT_1_THRESHOLD_4x4   3

Definition at line 92 of file ContextTables.h.

#define NEIGHBOURHOOD_00_CONTEXT_2_THRESHOLD_4x4   1

Definition at line 93 of file ContextTables.h.

#define NOT_VALID   -1

Definition at line 129 of file CommonDef.h.

#define NTAPS_CHROMA   4

Number of taps for chroma.

Definition at line 48 of file TComInterpolationFilter.h.

#define NTAPS_LUMA   8

Number of taps for luma.

Definition at line 47 of file TComInterpolationFilter.h.

#define NULL   0

Definition at line 100 of file CommonDef.h.

#define NUM_ABS_FLAG_CTX   (NUM_ABS_FLAG_CTX_LUMA + NUM_ABS_FLAG_CTX_CHROMA)

number of context models for greater than 2 flag

Definition at line 133 of file ContextTables.h.

#define NUM_ABS_FLAG_CTX_CHROMA   (NUM_ABS_FLAG_CTX_PER_SET * NUM_CTX_SETS_CHROMA)

number of context models for greater than 2 flag of chroma

Definition at line 130 of file ContextTables.h.

#define NUM_ABS_FLAG_CTX_LUMA   (NUM_ABS_FLAG_CTX_PER_SET * NUM_CTX_SETS_LUMA)

number of context models for greater than 2 flag of luma

Definition at line 129 of file ContextTables.h.

#define NUM_ABS_FLAG_CTX_PER_SET   1

number of context models for greater than 2 flag in a set

Definition at line 115 of file ContextTables.h.

#define NUM_ADI_CTX   1

number of context models for intra prediction

Definition at line 60 of file ContextTables.h.

#define NUM_CHROMA_MODE   5

Definition at line 184 of file TypeDef.h.

#define NUM_CHROMA_PRED_CTX   2

number of context models for intra prediction (chroma)

Definition at line 62 of file ContextTables.h.

#define NUM_CHROMA_QP_ADJ_FLAG_CTX   1

number of context models for chroma_qp_adjustment_flag

Definition at line 65 of file ContextTables.h.

#define NUM_CHROMA_QP_ADJ_IDC_CTX   1

number of context models for chroma_qp_adjustment_idc

Definition at line 66 of file ContextTables.h.

#define NUM_CROSS_COMPONENT_PREDICTION_CTX   10

Definition at line 161 of file ContextTables.h.

#define NUM_CTX_LAST_FLAG_SETS   2

Definition at line 106 of file ContextTables.h.

#define NUM_CTX_LAST_FLAG_XY   15

number of context models for last coefficient position

Definition at line 108 of file ContextTables.h.

#define NUM_CTX_SETS_CHROMA   2

number of context model sets for combined chrominance

Definition at line 120 of file ContextTables.h.

#define NUM_CTX_SETS_LUMA   4

number of context model sets for luminance

Definition at line 119 of file ContextTables.h.

#define NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX   1

Definition at line 159 of file ContextTables.h.

#define NUM_DELTA_QP_CTX   3

number of context models for dQP

Definition at line 71 of file ContextTables.h.

#define NUM_EXPLICIT_RDPCM_DIR_CTX   1

number of context models for the flag which specifies which RDPCM direction is used on inter coded residues

Definition at line 75 of file ContextTables.h.

#define NUM_EXPLICIT_RDPCM_FLAG_CTX   1

number of context models for the flag which specifies whether to use RDPCM on inter coded residues

Definition at line 74 of file ContextTables.h.

#define NUM_INTER_DIR_CTX   5

number of context models for inter prediction direction

Definition at line 63 of file ContextTables.h.

#define NUM_INTRA_MODE   36

Definition at line 170 of file TypeDef.h.

#define NUM_LONG_TERM_REF_PIC_SPS   0

Definition at line 216 of file TypeDef.h.

#define NUM_MERGE_FLAG_EXT_CTX   1

number of context models for merge flag of merge extended

Definition at line 54 of file ContextTables.h.

#define NUM_MERGE_IDX_EXT_CTX   1

number of context models for merge index of merge extended

Definition at line 55 of file ContextTables.h.

#define NUM_MV_RES_CTX   2

number of context models for motion vector difference

Definition at line 64 of file ContextTables.h.

#define NUM_MVP_IDX_CTX   1

number of context models for MVP index

Definition at line 152 of file ContextTables.h.

#define NUM_ONE_FLAG_CTX   (NUM_ONE_FLAG_CTX_LUMA + NUM_ONE_FLAG_CTX_CHROMA)

number of context models for greater than 1 flag

Definition at line 132 of file ContextTables.h.

#define NUM_ONE_FLAG_CTX_CHROMA   (NUM_ONE_FLAG_CTX_PER_SET * NUM_CTX_SETS_CHROMA)

number of context models for greater than 1 flag of chroma

Definition at line 127 of file ContextTables.h.

#define NUM_ONE_FLAG_CTX_LUMA   (NUM_ONE_FLAG_CTX_PER_SET * NUM_CTX_SETS_LUMA)

number of context models for greater than 1 flag of luma

Definition at line 126 of file ContextTables.h.

#define NUM_ONE_FLAG_CTX_PER_SET   4

number of context models for greater than 1 flag in a set

Definition at line 114 of file ContextTables.h.

#define NUM_PART_SIZE_CTX   4

number of context models for partition size

Definition at line 57 of file ContextTables.h.

#define NUM_PRED_MODE_CTX   1

number of context models for prediction mode

Definition at line 58 of file ContextTables.h.

#define NUM_QT_CBF_CTX_PER_SET   5

number of context models for QT CBF

Definition at line 143 of file ContextTables.h.

#define NUM_QT_CBF_CTX_SETS   2

Definition at line 141 of file ContextTables.h.

#define NUM_QT_ROOT_CBF_CTX   1

number of context models for QT ROOT CBF

Definition at line 70 of file ContextTables.h.

#define NUM_REF_NO_CTX   2

number of context models for reference index

Definition at line 68 of file ContextTables.h.

#define NUM_SAO_BO_CLASSES   (1<<NUM_SAO_BO_CLASSES_LOG2)

Definition at line 612 of file TypeDef.h.

#define NUM_SAO_BO_CLASSES_LOG2   5

Definition at line 611 of file TypeDef.h.

#define NUM_SAO_EO_TYPES_LOG2   2

Definition at line 599 of file TypeDef.h.

#define NUM_SAO_MERGE_FLAG_CTX   1

number of context models for SAO merge flags

Definition at line 154 of file ContextTables.h.

#define NUM_SAO_TYPE_IDX_CTX   1

number of context models for SAO type index

Definition at line 155 of file ContextTables.h.

#define NUM_SIG_CG_FLAG_CTX   2

number of context models for MULTI_LEVEL_SIGNIFICANCE

Definition at line 73 of file ContextTables.h.

#define NUM_SIG_FLAG_CTX   (NUM_SIG_FLAG_CTX_LUMA + NUM_SIG_FLAG_CTX_CHROMA)

number of context models for sig flag

Definition at line 100 of file ContextTables.h.

#define NUM_SIG_FLAG_CTX_CHROMA   16

number of context models for chroma sig flag

Definition at line 82 of file ContextTables.h.

#define NUM_SIG_FLAG_CTX_LUMA   28

number of context models for luma sig flag

Definition at line 81 of file ContextTables.h.

#define NUM_SKIP_FLAG_CTX   3

number of context models for skip flag

Definition at line 52 of file ContextTables.h.

#define NUM_SPLIT_FLAG_CTX   3

number of context models for split flag

Definition at line 51 of file ContextTables.h.

#define NUM_TRANS_SUBDIV_FLAG_CTX   3

number of context models for transform subdivision flags

Definition at line 69 of file ContextTables.h.

#define NUM_TRANSFORMSKIP_FLAG_CTX   1

number of context models for transform skipping

Definition at line 157 of file ContextTables.h.

#define NV_VERSION   "16.3"

Current software version.

Definition at line 60 of file CommonDef.h.

#define NVM_BITS   "[%d bit] ", (sizeof(Void*) == 8 ? 64 : 32)

used for checking 64-bit O/S

Definition at line 97 of file CommonDef.h.

#define NVM_COMPILEDBY   "[Unk-CXX]"

Definition at line 82 of file CommonDef.h.

#define NVM_ONOS   "[Unk-OS]"

Definition at line 94 of file CommonDef.h.

#define O0043_BEST_EFFORT_DECODING   0

0 (default) = disable code related to best effort decoding, 1 = enable code relating to best effort decoding [ decode-side only ].

Definition at line 222 of file TypeDef.h.

#define PLANAR_IDX   0

Definition at line 180 of file TypeDef.h.

#define PRINT_MACRO_VALUES   1

When enabled, the encoder prints out a list of the non-environment-variable controlled macros and their values on startup.

Definition at line 234 of file TypeDef.h.

#define PRINT_RPS_INFO   0

Enable/disable the printing of bits used to send the RPS.

Definition at line 173 of file TypeDef.h.

#define PSLICE_CHROMA_ABS_CONTEXT   107, 167

Definition at line 411 of file ContextTables.h.

#define PSLICE_CHROMA_CBF_CONTEXT   149, 107, 167, 154, 154

Definition at line 302 of file ContextTables.h.

#define PSLICE_CHROMA_LAST_POSITION_CONTEXT   108, 123, 108, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU

Definition at line 336 of file ContextTables.h.

#define PSLICE_CHROMA_ONE_CONTEXT   169, 194, 166, 167, 154, 167, 137, 182

Definition at line 407 of file ContextTables.h.

#define PSLICE_CHROMA_SIGNIFICANCE_CONTEXT   170, 153, 123, 123, 107, 121, 107, 121, 167, 151, 183, 140, 151, 183, 140, 140

Definition at line 378 of file ContextTables.h.

#define PSLICE_LUMA_ABS_CONTEXT   107, 167, 91, 122

Definition at line 402 of file ContextTables.h.

#define PSLICE_LUMA_CBF_CONTEXT   153, 111, CNU, CNU, CNU

Definition at line 298 of file ContextTables.h.

#define PSLICE_LUMA_LAST_POSITION_CONTEXT   125, 110, 94, 110, 95, 79, 125, 111, 110, 78, 110, 111, 111, 95, 94

Definition at line 332 of file ContextTables.h.

#define PSLICE_LUMA_ONE_CONTEXT   154, 196, 196, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 137

Definition at line 398 of file ContextTables.h.

#define PSLICE_LUMA_SIGNIFICANCE_CONTEXT   155, 154, 139, 153, 139, 123, 123, 63, 153, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 140

Definition at line 373 of file ContextTables.h.

#define QP_BITS   15

Definition at line 54 of file TComTrQuant.h.

#define QUANT_SHIFT   14

Definition at line 95 of file TComRom.h.

#define RD_TEST_SAO_DISABLE_AT_PICTURE_LEVEL   0

1 = tests whether SAO should be disabled at the picture level, 0 (default) = does not apply this additional test

Definition at line 220 of file TypeDef.h.

#define RDO_WITHOUT_DQP_BITS   0

Disable counting dQP bits in RDO-based mode decision.

Definition at line 195 of file TypeDef.h.

#define RDOQ_CHROMA   1

use of RDOQ in chroma

Definition at line 64 of file TComTrQuant.cpp.

#define RDOQ_CHROMA_LAMBDA   1

F386: weighting of chroma for RDOQ.

Definition at line 137 of file TypeDef.h.

#define RExt__DECODER_DEBUG_BIT_STATISTICS   0

0 (default) = decoder reports as normal, 1 = decoder produces bit usage statistics (will impact decoder run time by up to ~10%)

Definition at line 239 of file TypeDef.h.

#define RExt__GOLOMB_RICE_ADAPTATION_STATISTICS_SETS   4

Definition at line 247 of file TypeDef.h.

#define RExt__GOLOMB_RICE_INCREMENT_DIVISOR   4

Definition at line 248 of file TypeDef.h.

#define RExt__HIGH_BIT_DEPTH_SUPPORT   0

0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up to 16-bit video (originally developed as part of N0188)

Definition at line 244 of file TypeDef.h.

#define RExt__HIGH_PRECISION_FORWARD_TRANSFORM   0

0 (default) use original 6-bit transform matrices for both forward and inverse transform, 1 = use original matrices for inverse transform and high precision matrices for forward transform

Definition at line 263 of file TypeDef.h.

#define RExt__PREDICTION_WEIGHTING_ANALYSIS_DC_PRECISION   0

Additional fixed bit precision used during encoder-side weighting prediction analysis. Currently only used when high_precision_prediction_weighting_flag is set, for backwards compatibility reasons.

Definition at line 250 of file TypeDef.h.

#define RVM_VCEGAM10_M   4

Definition at line 178 of file TypeDef.h.

#define SAO_ENCODE_ALLOW_USE_PREDEBLOCK   1

Definition at line 90 of file TypeDef.h.

#define SAO_ENCODING_CHOICE   1

I0184: picture early termination.

Definition at line 122 of file TypeDef.h.

#define SAO_ENCODING_CHOICE_CHROMA   1

J0044: picture early termination Luma and Chroma are handled separately.

Definition at line 125 of file TypeDef.h.

#define SAO_ENCODING_RATE   0.75

Definition at line 124 of file TypeDef.h.

#define SAO_ENCODING_RATE_CHROMA   0.5

Definition at line 127 of file TypeDef.h.

#define SBH_THRESHOLD   4

I0156: value of the fixed SBH controlling threshold.

Definition at line 115 of file TypeDef.h.

#define SCALE_BITS   15

Definition at line 97 of file TComRom.h.

#define SCALING_LIST_BITS   8

bit depth of scaling list entries

Definition at line 220 of file TComRom.h.

#define SCALING_LIST_DC   16

default DC value

Definition at line 222 of file TComRom.h.

#define SCALING_LIST_NUM   (MAX_NUM_COMPONENT * NUMBER_OF_PREDICTION_MODES)

list number for quantization matrix

Definition at line 215 of file TComRom.h.

#define SCALING_LIST_REM_NUM   6

Definition at line 60 of file TComRom.h.

#define SCALING_LIST_START_VALUE   8

start value for dpcm mode

Definition at line 217 of file TComRom.h.

#define SCAN_SET_SIZE   16

Definition at line 165 of file TypeDef.h.

#define SHIFT_INV_1ST   7

Definition at line 107 of file TComRom.h.

#define SHIFT_INV_2ND   12

Definition at line 108 of file TComRom.h.

#define SQRT2   11585

Definition at line 101 of file TComRom.h.

#define SQRT2_SHIFT   13

Definition at line 102 of file TComRom.h.

#define STOPCHROMASEARCH_MODE_IDX   (INVALID_MODE_IDX+1)

Definition at line 187 of file TypeDef.h.

#define TILE_SIZE_CHECK   1

Definition at line 92 of file TypeDef.h.

#define VER_IDX   26

Definition at line 181 of file TypeDef.h.

#define VERBOSE_RATE   0

Print additional rate information in encoder.

Definition at line 161 of file TypeDef.h.

#define WRITE_BACK   1

Enable/disable the encoder to replace the deltaPOC and Used by current from the config file with the values derived by the refIdc parameter.

Definition at line 172 of file TypeDef.h.

#define xFree (   ptr)    free ( ptr )

Definition at line 157 of file CommonDef.h.

#define xMalloc (   type,
  len 
)    malloc ( sizeof(type)*(len) )

Definition at line 156 of file CommonDef.h.

Typedef Documentation

typedef struct _AMVPInfo AMVPInfo

parameters for AMVP

typedef bool Bool

Definition at line 286 of file TypeDef.h.

typedef char Char

Definition at line 291 of file TypeDef.h.

typedef UInt Distortion

distortion measurement

Definition at line 703 of file TypeDef.h.

typedef double Double

Definition at line 298 of file TypeDef.h.

typedef float Float

Definition at line 299 of file TypeDef.h.

typedef int Int

Definition at line 296 of file TypeDef.h.

typedef long long Int64

Definition at line 317 of file TypeDef.h.

used as intermediate value in calculations

Definition at line 696 of file TypeDef.h.

used as intermediate value in calculations

Definition at line 697 of file TypeDef.h.

typedef struct _LFCUParam LFCUParam

parameters for deblocking filter

typedef Short Pel

pixel type

Definition at line 692 of file TypeDef.h.

typedef enum PRED_BUF_E PRED_BUF

prediction class

typedef short Short

Definition at line 294 of file TypeDef.h.

typedef Int TCoeff

transform coefficient

Definition at line 693 of file TypeDef.h.

filter coefficient

Definition at line 695 of file TypeDef.h.

transform matrix coefficient

Definition at line 694 of file TypeDef.h.

typedef unsigned char UChar

Definition at line 293 of file TypeDef.h.

typedef unsigned int UInt

Definition at line 297 of file TypeDef.h.

typedef unsigned long long UInt64

Definition at line 318 of file TypeDef.h.

typedef unsigned short UShort

Definition at line 295 of file TypeDef.h.

typedef void Void

Definition at line 285 of file TypeDef.h.

Enumeration Type Documentation

Enumerator
CHANNEL_TYPE_LUMA 
CHANNEL_TYPE_CHROMA 
MAX_NUM_CHANNEL_TYPE 

Definition at line 361 of file TypeDef.h.

chroma formats (according to semantics of chroma_format_idc)

Enumerator
CHROMA_400 
CHROMA_420 
CHROMA_422 
CHROMA_444 
NUM_CHROMA_FORMAT 

Definition at line 352 of file TypeDef.h.

enum CI_IDX

index for SBAC based RD optimization

Enumerator
CI_CURR_BEST 

best mode index

CI_NEXT_BEST 

next best index

CI_TEMP_BEST 

temporal index

CI_CHROMA_INTRA 

chroma intra index

CI_QT_TRAFO_TEST 
CI_QT_TRAFO_ROOT 
CI_NUM 

total number

Definition at line 477 of file TypeDef.h.

Enumerator
SCAN_UNGROUPED 
SCAN_GROUPED_4x4 
SCAN_NUMBER_OF_GROUP_TYPES 

Definition at line 529 of file TypeDef.h.

coefficient scanning type used in ACS

Enumerator
SCAN_DIAG 

up-right diagonal scan

SCAN_HOR 

horizontal first scan

SCAN_VER 

vertical first scan

SCAN_NUMBER_OF_TYPES 

Definition at line 521 of file TypeDef.h.

Enumerator
COMPONENT_Y 
COMPONENT_Cb 
COMPONENT_Cr 
MAX_NUM_COMPONENT 

Definition at line 368 of file TypeDef.h.

enum CostMode
Enumerator
COST_STANDARD_LOSSY 
COST_SEQUENCE_LEVEL_LOSSLESS 
COST_LOSSLESS_CODING 
COST_MIXED_LOSSLESS_LOSSY_CODING 

Definition at line 656 of file TypeDef.h.

Enumerator
EDGE_VER 
EDGE_HOR 
NUM_EDGE_DIR 

Definition at line 385 of file TypeDef.h.

enum DFunc

distortion function index

Enumerator
DF_DEFAULT 
DF_SSE 

general size SSE

DF_SSE4 

4xM SSE

DF_SSE8 

8xM SSE

DF_SSE16 

16xM SSE

DF_SSE32 

32xM SSE

DF_SSE64 

64xM SSE

DF_SSE16N 

16NxM SSE

DF_SAD 

general size SAD

DF_SAD4 

4xM SAD

DF_SAD8 

8xM SAD

DF_SAD16 

16xM SAD

DF_SAD32 

32xM SAD

DF_SAD64 

64xM SAD

DF_SAD16N 

16NxM SAD

DF_SADS 

general size SAD with step

DF_SADS4 

4xM SAD with step

DF_SADS8 

8xM SAD with step

DF_SADS16 

16xM SAD with step

DF_SADS32 

32xM SAD with step

DF_SADS64 

64xM SAD with step

DF_SADS16N 

16NxM SAD with step

DF_HADS 

general size Hadamard with step

DF_HADS4 

4xM HAD with step

DF_HADS8 

8xM HAD with step

DF_HADS16 

16xM HAD with step

DF_HADS32 

32xM HAD with step

DF_HADS64 

64xM HAD with step

DF_HADS16N 

16NxM HAD with step

DF_SAD12 
DF_SAD24 
DF_SAD48 
DF_SADS12 
DF_SADS24 
DF_SADS48 
DF_SSE_FRAME 

Frame-based SSE.

DF_TOTAL_FUNCTIONS 

Definition at line 424 of file TypeDef.h.

Enumerator
IPCOLOURSPACE_UNCHANGED 
IPCOLOURSPACE_YCbCrtoYCrCb 
IPCOLOURSPACE_YCbCrtoYYY 
IPCOLOURSPACE_RGBtoGBR 
NUMBER_INPUT_COLOUR_SPACE_CONVERSIONS 

Definition at line 376 of file TypeDef.h.

supported ME search methods

Enumerator
FULL_SEARCH 

Full search.

DIAMOND 

Fast search.

SELECTIVE 

Selective search.

Definition at line 513 of file TypeDef.h.

enum MVP_DIR

motion vector predictor direction used in AMVP

Enumerator
MD_LEFT 

MVP of left block.

MD_ABOVE 

MVP of above block.

MD_ABOVE_RIGHT 

MVP of above right block.

MD_BELOW_LEFT 

MVP of below left block.

MD_ABOVE_LEFT 

MVP of above left block.

Definition at line 489 of file TypeDef.h.

Enumerator
NAL_UNIT_CODED_SLICE_TRAIL_N 
NAL_UNIT_CODED_SLICE_TRAIL_R 
NAL_UNIT_CODED_SLICE_TSA_N 
NAL_UNIT_CODED_SLICE_TSA_R 
NAL_UNIT_CODED_SLICE_STSA_N 
NAL_UNIT_CODED_SLICE_STSA_R 
NAL_UNIT_CODED_SLICE_RADL_N 
NAL_UNIT_CODED_SLICE_RADL_R 
NAL_UNIT_CODED_SLICE_RASL_N 
NAL_UNIT_CODED_SLICE_RASL_R 
NAL_UNIT_RESERVED_VCL_N10 
NAL_UNIT_RESERVED_VCL_R11 
NAL_UNIT_RESERVED_VCL_N12 
NAL_UNIT_RESERVED_VCL_R13 
NAL_UNIT_RESERVED_VCL_N14 
NAL_UNIT_RESERVED_VCL_R15 
NAL_UNIT_CODED_SLICE_BLA_W_LP 
NAL_UNIT_CODED_SLICE_BLA_W_RADL 
NAL_UNIT_CODED_SLICE_BLA_N_LP 
NAL_UNIT_CODED_SLICE_IDR_W_RADL 
NAL_UNIT_CODED_SLICE_IDR_N_LP 
NAL_UNIT_CODED_SLICE_CRA 
NAL_UNIT_RESERVED_IRAP_VCL22 
NAL_UNIT_RESERVED_IRAP_VCL23 
NAL_UNIT_RESERVED_VCL24 
NAL_UNIT_RESERVED_VCL25 
NAL_UNIT_RESERVED_VCL26 
NAL_UNIT_RESERVED_VCL27 
NAL_UNIT_RESERVED_VCL28 
NAL_UNIT_RESERVED_VCL29 
NAL_UNIT_RESERVED_VCL30 
NAL_UNIT_RESERVED_VCL31 
NAL_UNIT_VPS 
NAL_UNIT_SPS 
NAL_UNIT_PPS 
NAL_UNIT_ACCESS_UNIT_DELIMITER 
NAL_UNIT_EOS 
NAL_UNIT_EOB 
NAL_UNIT_FILLER_DATA 
NAL_UNIT_PREFIX_SEI 
NAL_UNIT_SUFFIX_SEI 
NAL_UNIT_RESERVED_NVCL41 
NAL_UNIT_RESERVED_NVCL42 
NAL_UNIT_RESERVED_NVCL43 
NAL_UNIT_RESERVED_NVCL44 
NAL_UNIT_RESERVED_NVCL45 
NAL_UNIT_RESERVED_NVCL46 
NAL_UNIT_RESERVED_NVCL47 
NAL_UNIT_UNSPECIFIED_48 
NAL_UNIT_UNSPECIFIED_49 
NAL_UNIT_UNSPECIFIED_50 
NAL_UNIT_UNSPECIFIED_51 
NAL_UNIT_UNSPECIFIED_52 
NAL_UNIT_UNSPECIFIED_53 
NAL_UNIT_UNSPECIFIED_54 
NAL_UNIT_UNSPECIFIED_55 
NAL_UNIT_UNSPECIFIED_56 
NAL_UNIT_UNSPECIFIED_57 
NAL_UNIT_UNSPECIFIED_58 
NAL_UNIT_UNSPECIFIED_59 
NAL_UNIT_UNSPECIFIED_60 
NAL_UNIT_UNSPECIFIED_61 
NAL_UNIT_UNSPECIFIED_62 
NAL_UNIT_UNSPECIFIED_63 
NAL_UNIT_INVALID 

Definition at line 218 of file CommonDef.h.

enum PartSize

supported partition shape

Enumerator
SIZE_2Nx2N 

symmetric motion partition, 2Nx2N

SIZE_2NxN 

symmetric motion partition, 2Nx N

SIZE_Nx2N 

symmetric motion partition, Nx2N

SIZE_NxN 

symmetric motion partition, Nx N

SIZE_2NxnU 

asymmetric motion partition, 2Nx( N/2) + 2Nx(3N/2)

SIZE_2NxnD 

asymmetric motion partition, 2Nx(3N/2) + 2Nx( N/2)

SIZE_nLx2N 

asymmetric motion partition, ( N/2)x2N + (3N/2)x2N

SIZE_nRx2N 

asymmetric motion partition, (3N/2)x2N + ( N/2)x2N

NUMBER_OF_PART_SIZES 

Definition at line 393 of file TypeDef.h.

Enumerator
PIC_YUV_ORG 
PIC_YUV_REC 
PIC_YUV_TRUE_ORG 
NUM_PIC_YUV 

Definition at line 59 of file TComPic.h.

Enumerator
PPS_EXT__REXT 
NUM_PPS_EXTENSION_FLAGS 

Definition at line 672 of file TypeDef.h.

enum PRED_BUF_E

prediction class

Enumerator
PRED_BUF_UNFILTERED 
PRED_BUF_FILTERED 
NUM_PRED_BUF 

Definition at line 59 of file TComPrediction.h.

enum PredMode

supported prediction type

Enumerator
MODE_INTER 

inter-prediction mode

MODE_INTRA 

intra-prediction mode

NUMBER_OF_PREDICTION_MODES 

Definition at line 407 of file TypeDef.h.

enum RDPCMMode
Enumerator
RDPCM_OFF 
RDPCM_HOR 
RDPCM_VER 
NUMBER_OF_RDPCM_MODES 

Definition at line 327 of file TypeDef.h.

Enumerator
RDPCM_SIGNAL_IMPLICIT 
RDPCM_SIGNAL_EXPLICIT 
NUMBER_OF_RDPCM_SIGNALLING_MODES 

Definition at line 335 of file TypeDef.h.

enum RefPicList

reference list index

Enumerator
REF_PIC_LIST_0 

reference list 0

REF_PIC_LIST_1 

reference list 1

NUM_REF_PIC_LIST_01 
REF_PIC_LIST_X 

special mark

Definition at line 415 of file TypeDef.h.

Enumerator
SAO_CLASS_EO_FULL_VALLEY 
SAO_CLASS_EO_HALF_VALLEY 
SAO_CLASS_EO_PLAIN 
SAO_CLASS_EO_HALF_PEAK 
SAO_CLASS_EO_FULL_PEAK 
NUM_SAO_EO_CLASSES 

Definition at line 601 of file TypeDef.h.

enum SAOMode
Enumerator
SAO_MODE_OFF 
SAO_MODE_NEW 
SAO_MODE_MERGE 
NUM_SAO_MODES 

Definition at line 570 of file TypeDef.h.

Enumerator
SAO_MERGE_LEFT 
SAO_MERGE_ABOVE 
NUM_SAO_MERGE_TYPES 

Definition at line 578 of file TypeDef.h.

Enumerator
SAO_TYPE_START_EO 
SAO_TYPE_EO_0 
SAO_TYPE_EO_90 
SAO_TYPE_EO_135 
SAO_TYPE_EO_45 
SAO_TYPE_START_BO 
SAO_TYPE_BO 
NUM_SAO_NEW_TYPES 

Definition at line 586 of file TypeDef.h.

Enumerator
SCALING_LIST_OFF 
SCALING_LIST_DEFAULT 
SCALING_LIST_FILE_READ 

Definition at line 545 of file TypeDef.h.

Enumerator
SCALING_LIST_4x4 
SCALING_LIST_8x8 
SCALING_LIST_16x16 
SCALING_LIST_32x32 
SCALING_LIST_SIZE_NUM 

Definition at line 552 of file TypeDef.h.

Enumerator
CONTEXT_TYPE_4x4 
CONTEXT_TYPE_8x8 
CONTEXT_TYPE_NxN 
CONTEXT_TYPE_SINGLE 
CONTEXT_NUMBER_OF_TYPES 

Definition at line 536 of file TypeDef.h.

Enumerator
NO_SLICES 

don't use slices / slice segments

FIXED_NUMBER_OF_CTU 

Limit maximum number of largest coding tree units in a slice / slice segments.

FIXED_NUMBER_OF_BYTES 

Limit maximum number of bytes in a slice / slice segment.

FIXED_NUMBER_OF_TILES 

slices / slice segments span an integer number of tiles

Definition at line 562 of file TypeDef.h.

enum SliceType

supported slice type

Enumerator
B_SLICE 
P_SLICE 
I_SLICE 
NUMBER_OF_SLICE_TYPES 

Definition at line 343 of file TypeDef.h.

Enumerator
SPS_EXT__REXT 
NUM_SPS_EXTENSION_FLAGS 

Definition at line 664 of file TypeDef.h.

Enumerator
RESIDUAL_RECONSTRUCTED 
RESIDUAL_ENCODER_SIDE 
NUMBER_OF_STORED_RESIDUAL_TYPES 

Definition at line 498 of file TypeDef.h.

Enumerator
TRANSFORM_FORWARD 
TRANSFORM_INVERSE 
TRANSFORM_NUMBER_OF_DIRECTIONS 

Definition at line 505 of file TypeDef.h.

Function Documentation

Void TComYuv::addAvg ( const TComYuv pcYuvSrc0,
const TComYuv pcYuvSrc1,
const UInt  iPartUnitIdx,
const UInt  iWidth,
const UInt  iHeight 
)

Definition at line 352 of file TComYuv.cpp.

Void TComYuv::addClip ( const TComYuv pcYuvSrc0,
const TComYuv pcYuvSrc1,
const UInt  uiTrUnitIdx,
const UInt  uiPartSize 
)

Definition at line 280 of file TComYuv.cpp.

Void TComOutputBitstream::addSubstream ( TComOutputBitstream pcSubstream)
  • add substream to the end of the current bitstream
Parameters
pcSubstreamsubstream to be added

Definition at line 163 of file TComBitStream.cpp.

Void TComDataCU::bitwiseOrCbfPartRange ( UInt  uiCbf,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiCoveredPartIdxes 
)

Definition at line 1712 of file TComDataCU.cpp.

UInt calcChecksum ( const TComPicYuv pic,
TComDigest digest 
)

Definition at line 167 of file TComPicYuvMD5.cpp.

UInt ContextModel3DBuffer::calcCost ( SliceType  sliceType,
Int  qp,
UChar ctxModel 
)

determine cost of choosing a probability table based on current probabilities

Calculate the cost of choosing a probability table based on the current probability of CABAC at encoder

Parameters
sliceTypeslice type
qpinput QP value
ctxModelgiven probability table

Definition at line 86 of file ContextModel3DBuffer.cpp.

UInt calcCRC ( const TComPicYuv pic,
TComDigest digest 
)

Definition at line 129 of file TComPicYuvMD5.cpp.

Distortion TComRdCost::calcHAD ( Int  bitDepth,
Pel pi0,
Int  iStride0,
Pel pi1,
Int  iStride1,
Int  iWidth,
Int  iHeight 
)

Definition at line 398 of file TComRdCost.cpp.

UInt calcMD5 ( const TComPicYuv pic,
TComDigest digest 
)

Calculate the MD5sum of pic, storing the result in digest. MD5 calculation is performed on Y' then Cb, then Cr; each in raster order. Pel data is inserted into the MD5 function in little-endian byte order, using sufficient bytes to represent the picture bitdepth. Eg, 10bit data uses little-endian two byte words; 8bit data uses single byte words.

Definition at line 185 of file TComPicYuvMD5.cpp.

Double TComRdCost::calcRdCost ( UInt  uiBits,
Distortion  uiDistortion,
Bool  bFlag = false,
DFunc  eDFunc = DF_DEFAULT 
)

Definition at line 56 of file TComRdCost.cpp.

Double TComRdCost::calcRdCost64 ( UInt64  uiBits,
UInt64  uiDistortion,
Bool  bFlag = false,
DFunc  eDFunc = DF_DEFAULT 
)

Definition at line 125 of file TComRdCost.cpp.

template<typename T >
Void Check3 ( minVal,
maxVal,
a 
)
inline

general min/max clip

Definition at line 141 of file CommonDef.h.

Void TComYuv::clear ( )

clear YUV buffer

Definition at line 90 of file TComYuv.cpp.

Void TComOutputBitstream::clear ( )

Reset all internal state.

Definition at line 89 of file TComBitStream.cpp.

Void TComDataCU::clearCbf ( UInt  uiIdx,
ComponentID  eType,
UInt  uiNumParts 
)

Definition at line 2941 of file TComDataCU.cpp.

template<typename T >
T Clip ( const T  x,
const ChannelType  type 
)
inline

Definition at line 139 of file CommonDef.h.

template<typename T >
T Clip3 ( const T  minVal,
const T  maxVal,
const T  a 
)
inline

general min/max clip

Definition at line 137 of file CommonDef.h.

template<typename T >
T ClipBD ( const T  x,
const Int  bitDepth 
)
inline

Definition at line 138 of file CommonDef.h.

Void TComDataCU::clipMv ( TComMv rcMv)

Definition at line 2911 of file TComDataCU.cpp.

UInt compChecksum ( Int  bitdepth,
const Pel plane,
UInt  width,
UInt  height,
UInt  stride,
TComDigest digest 
)

Definition at line 141 of file TComPicYuvMD5.cpp.

UInt compCRC ( Int  bitdepth,
const Pel plane,
UInt  width,
UInt  height,
UInt  stride,
TComDigest digest 
)

Definition at line 89 of file TComPicYuvMD5.cpp.

Void TComPic::compressMotion ( )

Definition at line 108 of file TComPic.cpp.

Void TComDataCU::compressMV ( )

Definition at line 3309 of file TComDataCU.cpp.

ContextModel3DBuffer::ContextModel3DBuffer ( UInt  uiSizeZ,
UInt  uiSizeY,
UInt  uiSizeX,
ContextModel basePtr,
Int count 
)

Definition at line 47 of file ContextModel3DBuffer.cpp.

Void TComYuv::copyFromPicComponent ( const ComponentID  id,
const TComPicYuv pcPicYuvSrc,
const UInt  iCtuRsAddr,
const UInt  uiAbsZorderIdx 
)

Definition at line 142 of file TComYuv.cpp.

Void TComYuv::copyFromPicYuv ( const TComPicYuv pcPicYuvSrc,
const UInt  ctuRsAddr,
const UInt  uiAbsZorderIdx 
)

Definition at line 134 of file TComYuv.cpp.

Void TComDataCU::copyInterPredInfoFrom ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
RefPicList  eRefPicList 
)

Definition at line 827 of file TComDataCU.cpp.

Void TComDataCU::copyPartFrom ( TComDataCU pcCU,
UInt  uiPartUnitIdx,
UInt  uiDepth 
)

Definition at line 871 of file TComDataCU.cpp.

Void TComYuv::copyPartToComponent ( const ComponentID  id,
TComYuv pcYuvDst,
const UInt  uiSrcPartIdx 
) const

Definition at line 200 of file TComYuv.cpp.

Void TComYuv::copyPartToPartComponent ( const ComponentID  id,
TComYuv pcYuvDst,
const UInt  uiPartIdx,
const UInt  uiWidthComponent,
const UInt  uiHeightComponent 
) const

Definition at line 230 of file TComYuv.cpp.

Void TComYuv::copyPartToPartComponentMxN ( const ComponentID  id,
TComYuv pcYuvDst,
const TComRectangle rect 
) const

Definition at line 254 of file TComYuv.cpp.

Void TComYuv::copyPartToPartYuv ( TComYuv pcYuvDst,
const UInt  uiPartIdx,
const UInt  uiWidth,
const UInt  uiHeight 
) const

Definition at line 222 of file TComYuv.cpp.

Void TComYuv::copyPartToYuv ( TComYuv pcYuvDst,
const UInt  uiSrcPartIdx 
) const

Definition at line 192 of file TComYuv.cpp.

Void TComDataCU::copySubCU ( TComDataCU pcCU,
UInt  uiPartUnitIdx,
UInt  uiDepth 
)

Definition at line 744 of file TComDataCU.cpp.

Void TComYuv::copyToPartComponent ( const ComponentID  id,
TComYuv pcYuvDst,
const UInt  uiDstPartIdx 
) const

Definition at line 171 of file TComYuv.cpp.

Void TComYuv::copyToPartYuv ( TComYuv pcYuvDst,
const UInt  uiDstPartIdx 
) const

Definition at line 163 of file TComYuv.cpp.

Void TComPicYuv::copyToPic ( TComPicYuv pcPicYuvDst) const

Definition at line 176 of file TComPicYuv.cpp.

Void TComDataCU::copyToPic ( UChar  uiDepth)

Definition at line 957 of file TComDataCU.cpp.

Void TComYuv::copyToPicComponent ( const ComponentID  id,
TComPicYuv pcPicYuvDst,
const UInt  iCtuRsAddr,
const UInt  uiAbsZorderIdx,
const UInt  uiPartDepth = 0,
const UInt  uiPartIdx = 0 
) const

Definition at line 112 of file TComYuv.cpp.

Void TComYuv::copyToPicYuv ( TComPicYuv pcPicYuvDst,
const UInt  ctuRsAddr,
const UInt  uiAbsZorderIdx,
const UInt  uiPartDepth = 0,
const UInt  uiPartIdx = 0 
) const

Definition at line 104 of file TComYuv.cpp.

Int TComOutputBitstream::countStartCodeEmulations ( )

returns the number of start code emulations contained in the current buffer

Definition at line 184 of file TComBitStream.cpp.

Void TComPic::create ( const TComSPS sps,
const TComPPS pps,
const UInt  uiMaxWidth,
const UInt  uiMaxHeight,
const UInt  uiMaxDepth,
const Bool  bIsVirtual 
)

Definition at line 69 of file TComPic.cpp.

Void TComPicYuv::create ( const Int  iPicWidth,
const Int  iPicHeight,
const ChromaFormat  chromaFormatIDC,
const UInt  uiMaxCUWidth,
const UInt  uiMaxCUHeight,
const UInt  uiMaxCUDepth 
)

Definition at line 81 of file TComPicYuv.cpp.

Void TComYuv::create ( const UInt  iWidth,
const UInt  iHeight,
const ChromaFormat  chromaFormatIDC 
)

Create YUV buffer.

Definition at line 63 of file TComYuv.cpp.

Void TComCUMvField::create ( UInt  uiNumPartition)

Definition at line 54 of file TComMotionInfo.cpp.

Void TComDataCU::create ( ChromaFormat  chromaFormatIDC,
UInt  uiNumPartition,
UInt  uiWidth,
UInt  uiHeight,
Bool  bDecSubCu,
Int  unitSize,
Bool  bGlobalRMARLBuffer = false 
)

Definition at line 114 of file TComDataCU.cpp.

Bool TComDataCU::CUIsFromSameSliceAndTile ( const TComDataCU pCU) const

Definition at line 403 of file TComDataCU.cpp.

Bool TComDataCU::CUIsFromSameSliceTileAndWavefrontRow ( const TComDataCU pCU) const

Definition at line 412 of file TComDataCU.cpp.

Bool TComDataCU::CUIsFromSameTile ( const TComDataCU pCU) const

Definition at line 396 of file TComDataCU.cpp.

Void TComDataCU::deriveLeftBottomIdx ( UInt  uiPartIdx,
UInt ruiPartIdxLB 
)

Definition at line 2187 of file TComDataCU.cpp.

Void TComDataCU::deriveLeftBottomIdxAdi ( UInt ruiPartIdxLB,
UInt  uiPartOffset,
UInt  uiPartDepth 
)

Definition at line 2270 of file TComDataCU.cpp.

Void TComDataCU::deriveLeftBottomIdxGeneral ( UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt ruiPartIdxLB 
)

Definition at line 2100 of file TComDataCU.cpp.

Void TComDataCU::deriveLeftRightTopIdx ( UInt  uiPartIdx,
UInt ruiPartIdxLT,
UInt ruiPartIdxRT 
)

Definition at line 2147 of file TComDataCU.cpp.

Void TComDataCU::deriveLeftRightTopIdxAdi ( UInt ruiPartIdxLT,
UInt ruiPartIdxRT,
UInt  uiPartOffset,
UInt  uiPartDepth 
)

Definition at line 2263 of file TComDataCU.cpp.

Void TComDataCU::deriveLeftRightTopIdxGeneral ( UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt ruiPartIdxLT,
UInt ruiPartIdxRT 
)

Definition at line 2051 of file TComDataCU.cpp.

Void TComDataCU::deriveRightBottomIdx ( UInt  uiPartIdx,
UInt ruiPartIdxRB 
)
protected

Derive the partition index of neighbouring bottom right block

Parameters
[in]uiPartIdxcurrent partition index
[out]ruiPartIdxRBpartition index of neighbouring bottom right block

Definition at line 2227 of file TComDataCU.cpp.

Void TComPic::destroy ( )
virtual

Reimplemented in TEncPic.

Definition at line 91 of file TComPic.cpp.

Void TComPicYuv::destroy ( )

Definition at line 146 of file TComPicYuv.cpp.

Void TComYuv::destroy ( )

Destroy YUV buffer.

Definition at line 77 of file TComYuv.cpp.

Void TComPrediction::destroy ( )
protected

Definition at line 91 of file TComPrediction.cpp.

Void TComDataCU::destroy ( )

Definition at line 221 of file TComDataCU.cpp.

Void destroyROM ( )

Definition at line 230 of file TComRom.cpp.

std::string digestToString ( const TComDigest digest,
Int  numChar 
)

Definition at line 209 of file TComPicYuvMD5.cpp.

Void TComPicYuv::dump ( const Char pFileName,
Bool  bAdd = false 
) const

Definition at line 243 of file TComPicYuv.cpp.

Void TComPicYuv::extendPicBorder ( )

Definition at line 191 of file TComPicYuv.cpp.

Void fastForwardDst ( TCoeff block,
TCoeff coeff,
Int  shift 
)

Definition at line 414 of file TComTrQuant.cpp.

Void fastInverseDst ( TCoeff tmp,
TCoeff block,
Int  shift,
const TCoeff  outputMinimum,
const TCoeff  outputMaximum 
)

Definition at line 440 of file TComTrQuant.cpp.

Void TComDataCU::fillMvpCand ( UInt  uiPartIdx,
UInt  uiPartAddr,
RefPicList  eRefPicList,
Int  iRefIdx,
AMVPInfo pInfo 
)

Constructs a list of candidates for AMVP

Parameters
uiPartIdx
uiPartAddr
eRefPicList
iRefIdx
pInfo

Definition at line 2746 of file TComDataCU.cpp.

Void fillReferenceSamples ( const Int  bitDepth,
TComDataCU pcCU,
const Pel piRoiOrigin,
Pel piAdiTemp,
const Bool bNeighborFlags,
const Int  iNumIntraNeighbor,
const Int  unitWidth,
const Int  unitHeight,
const Int  iAboveUnits,
const Int  iLeftUnits,
const UInt  uiCuWidth,
const UInt  uiCuHeight,
const UInt  uiWidth,
const UInt  uiHeight,
const Int  iPicStride,
const ChannelType  chType,
const ChromaFormat  chFmt 
)

padding of unavailable reference samples for intra prediction

Definition at line 314 of file TComPattern.cpp.

template<Int N, Bool isVertical, Bool isFirst, Bool isLast>
Void TComInterpolationFilter::filter ( Int  bitDepth,
Pel const *  src,
Int  srcStride,
Pel dst,
Int  dstStride,
Int  width,
Int  height,
TFilterCoeff const *  coeff 
)
staticprivate

Apply FIR filter to a block of samples.

Template Parameters
NNumber of taps
isVerticalFlag indicating filtering along vertical direction
isFirstFlag indicating whether it is the first filtering operation
isLastFlag indicating whether it is the last filtering operation
Parameters
bitDepthBit depth of samples
srcPointer to source samples
srcStrideStride of source samples
dstPointer to destination samples
dstStrideStride of destination samples
widthWidth of block
heightHeight of block
coeffPointer to filter taps

Definition at line 173 of file TComInterpolationFilter.cpp.

Void TComInterpolationFilter::filterCopy ( Int  bitDepth,
const Pel src,
Int  srcStride,
Pel dst,
Int  dstStride,
Int  width,
Int  height,
Bool  isFirst,
Bool  isLast 
)
staticprivate

Apply unit FIR filter to a block of samples.

Parameters
bitDepthbitDepth of samples
srcPointer to source samples
srcStrideStride of source samples
dstPointer to destination samples
dstStrideStride of destination samples
widthWidth of block
heightHeight of block
isFirstFlag indicating whether it is the first filtering operation
isLastFlag indicating whether it is the last filtering operation

Definition at line 94 of file TComInterpolationFilter.cpp.

template<Int N>
Void TComInterpolationFilter::filterHor ( Int  bitDepth,
Pel src,
Int  srcStride,
Pel dst,
Int  dstStride,
Int  width,
Int  height,
Bool  isLast,
TFilterCoeff const *  coeff 
)
staticprivate

Filter a block of samples (horizontal)

Template Parameters
NNumber of taps
Parameters
bitDepthBit depth of samples
srcPointer to source samples
srcStrideStride of source samples
dstPointer to destination samples
dstStrideStride of destination samples
widthWidth of block
heightHeight of block
isLastFlag indicating whether it is the last filtering operation
coeffPointer to filter taps

Definition at line 274 of file TComInterpolationFilter.cpp.

Void TComInterpolationFilter::filterHor ( const ComponentID  compID,
Pel src,
Int  srcStride,
Pel dst,
Int  dstStride,
Int  width,
Int  height,
Int  frac,
Bool  isLast,
const ChromaFormat  fmt 
)

Filter a block of Luma/Chroma samples (horizontal)

Parameters
compIDChroma component ID
srcPointer to source samples
srcStrideStride of source samples
dstPointer to destination samples
dstStrideStride of destination samples
widthWidth of block
heightHeight of block
fracFractional sample offset
isLastFlag indicating whether it is the last filtering operation
fmtChroma format

Definition at line 340 of file TComInterpolationFilter.cpp.

template<Int N>
Void TComInterpolationFilter::filterVer ( Int  bitDepth,
Pel src,
Int  srcStride,
Pel dst,
Int  dstStride,
Int  width,
Int  height,
Bool  isFirst,
Bool  isLast,
TFilterCoeff const *  coeff 
)
staticprivate

Filter a block of samples (vertical)

Template Parameters
NNumber of taps
Parameters
bitDepthBit depth
srcPointer to source samples
srcStrideStride of source samples
dstPointer to destination samples
dstStrideStride of destination samples
widthWidth of block
heightHeight of block
isFirstFlag indicating whether it is the first filtering operation
isLastFlag indicating whether it is the last filtering operation
coeffPointer to filter taps

Definition at line 302 of file TComInterpolationFilter.cpp.

Void TComInterpolationFilter::filterVer ( const ComponentID  compID,
Pel src,
Int  srcStride,
Pel dst,
Int  dstStride,
Int  width,
Int  height,
Int  frac,
Bool  isFirst,
Bool  isLast,
const ChromaFormat  fmt 
)

Filter a block of Luma/Chroma samples (vertical)

Parameters
compIDColour component ID
srcPointer to source samples
srcStrideStride of source samples
dstPointer to destination samples
dstStrideStride of destination samples
widthWidth of block
heightHeight of block
fracFractional sample offset
isFirstFlag indicating whether it is the first filtering operation
isLastFlag indicating whether it is the last filtering operation
fmtChroma format

Definition at line 375 of file TComInterpolationFilter.cpp.

Void TComDataCU::getAllowedChromaDir ( UInt  uiAbsPartIdx,
UInt uiModeList 
)

Get allowed chroma intra modes

  • fills uiModeList with chroma intra modes
Parameters
[in]uiAbsPartIdx
[out]uiModeListpointer to chroma intra modes array

Definition at line 1479 of file TComDataCU.cpp.

Char * TComOutputBitstream::getByteStream ( ) const

Return a pointer to the start of the byte-stream buffer. Pointer is valid until the next write/flush/reset call. NB, data is arranged such that subsequent bytes in the bytestream are stored in ascending addresses.

Definition at line 79 of file TComBitStream.cpp.

UInt TComOutputBitstream::getByteStreamLength ( )

Return the number of valid bytes available from getByteStream()

Definition at line 84 of file TComBitStream.cpp.

UInt TComDataCU::getCoefScanIdx ( const UInt  uiAbsPartIdx,
const UInt  uiWidth,
const UInt  uiHeight,
const ComponentID  compID 
) const

Definition at line 3321 of file TComDataCU.cpp.

UInt TComDataCU::getCtxInterDir ( UInt  uiAbsPartIdx)

Definition at line 1666 of file TComDataCU.cpp.

UInt TComDataCU::getCtxQtCbf ( TComTU rTu,
const ChannelType  chType 
)

Definition at line 1607 of file TComDataCU.cpp.

UInt TComDataCU::getCtxSkipFlag ( UInt  uiAbsPartIdx)

Definition at line 1649 of file TComDataCU.cpp.

UInt TComDataCU::getCtxSplitFlag ( UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1591 of file TComDataCU.cpp.

Distortion TComRdCost::getDistPart ( Int  bitDepth,
Pel piCur,
Int  iCurStride,
Pel piOrg,
Int  iOrgStride,
UInt  uiBlkWidth,
UInt  uiBlkHeight,
const ComponentID  compID,
DFunc  eDFunc = DF_SSE 
)

Definition at line 433 of file TComRdCost.cpp.

Void TComDataCU::getInterMergeCandidates ( UInt  uiAbsPartIdx,
UInt  uiPUIdx,
TComMvField pcMFieldNeighbours,
UChar puhInterDirNeighbours,
Int numValidMergeCand,
Int  mrgCandIdx = -1 
)

Construct a list of merging candidates.

Definition at line 2305 of file TComDataCU.cpp.

Void TComDataCU::getIntraDirPredictor ( UInt  uiAbsPartIdx,
Int  uiIntraDirPred[NUM_MOST_PROBABLE_MODES],
const ComponentID  compID,
Int piMode = 0 
)

Get most probable intra modes

Parameters
uiAbsPartIdxpartition index
uiIntraDirPredpointer to the array for MPM storage
compIDcolour component ID
piModeit is set with MPM mode in case both MPM are equal. It is used to restrict RD search at encode side.
Returns
Number of MPM

Definition at line 1507 of file TComDataCU.cpp.

UInt TComDataCU::getIntraSizeIdx ( UInt  uiAbsPartIdx)

Definition at line 2926 of file TComDataCU.cpp.

Char TComDataCU::getLastCodedQP ( UInt  uiAbsPartIdx)

Definition at line 1427 of file TComDataCU.cpp.

Int TComDataCU::getLastValidPartIdx ( Int  iAbsPartIdx)

Definition at line 1415 of file TComDataCU.cpp.

Void TComDataCU::getMvField ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
RefPicList  eRefPicList,
TComMvField rcMvField 
)

Definition at line 2038 of file TComDataCU.cpp.

Void TComPrediction::getMvPredAMVP ( TComDataCU pcCU,
UInt  uiPartIdx,
UInt  uiPartAddr,
RefPicList  eRefPicList,
TComMv rcMvPred 
)

Definition at line 724 of file TComPrediction.cpp.

UChar TComDataCU::getNumPartitions ( const UInt  uiAbsPartIdx = 0)

Definition at line 1976 of file TComDataCU.cpp.

Void TComDataCU::getPartIndexAndSize ( UInt  uiPartIdx,
UInt ruiPartAddr,
Int riWidth,
Int riHeight 
)

Definition at line 1997 of file TComDataCU.cpp.

Void TComDataCU::getPartPosition ( UInt  partIdx,
Int xP,
Int yP,
Int nPSW,
Int nPSH 
)

Calculate the location of upper-left corner pixel and size of the current PU.

Parameters
partIdxPU index within a CU
xP,yPlocation of the upper-left corner pixel of the current PU
nPSW,nPSHsize of the current PU

Definition at line 2678 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPUAbove ( UInt uiAPartUnitIdx,
UInt  uiCurrPartUnitIdx,
Bool  bEnforceSliceRestriction = true,
Bool  planarAtCTUBoundary = false,
Bool  bEnforceTileRestriction = true 
)

Definition at line 1068 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPUAboveLeft ( UInt uiALPartUnitIdx,
UInt  uiCurrPartUnitIdx,
Bool  bEnforceSliceRestriction = true 
)

Definition at line 1106 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPUAboveRight ( UInt uiARPartUnitIdx,
UInt  uiCurrPartUnitIdx,
Bool  bEnforceSliceRestriction = true 
)

Definition at line 1153 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPUAboveRightAdi ( UInt uiARPartUnitIdx,
UInt  uiCurrPartUnitIdx,
UInt  uiPartUnitOffset = 1,
Bool  bEnforceSliceRestriction = true 
)

Definition at line 1297 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPUBelowLeft ( UInt uiBLPartUnitIdx,
UInt  uiCurrPartUnitIdx,
Bool  bEnforceSliceRestriction = true 
)

Definition at line 1209 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPUBelowLeftAdi ( UInt uiBLPartUnitIdx,
UInt  uiCurrPartUnitIdx,
UInt  uiPartUnitOffset = 1,
Bool  bEnforceSliceRestriction = true 
)

Definition at line 1253 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getPULeft ( UInt uiLPartUnitIdx,
UInt  uiCurrPartUnitIdx,
Bool  bEnforceSliceRestriction = true,
Bool  bEnforceTileRestriction = true 
)

Definition at line 1036 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getQpMinCuAbove ( UInt uiAPartUnitIdx,
UInt  uiCurrAbsIdxInCtu 
)

Get Above QpMinCu

Parameters
uiAPartUnitIdx
uiCurrAbsIdxInCtu
Returns
TComDataCU* point of TComDataCU of above QpMinCu

Definition at line 1381 of file TComDataCU.cpp.

TComDataCU * TComDataCU::getQpMinCuLeft ( UInt uiLPartUnitIdx,
UInt  uiCurrAbsIdxInCtu 
)

Get left QpMinCu

Parameters
uiLPartUnitIdx
uiCurrAbsIdxInCtu
Returns
TComDataCU* point of TComDataCU of left QpMinCu

Definition at line 1357 of file TComDataCU.cpp.

UChar TComDataCU::getQtRootCbf ( UInt  uiIdx)

Definition at line 1672 of file TComDataCU.cpp.

UInt TComDataCU::getQuadtreeTULog2MinSizeInCU ( UInt  uiIdx)

Definition at line 1622 of file TComDataCU.cpp.

Char TComDataCU::getRefQP ( UInt  uiCurrAbsIdxInCtu)

Get reference QP from left QpMinCu or latest coded QP

Parameters
uiCurrAbsIdxInCtu
Returns
Char reference QP value

Definition at line 1406 of file TComDataCU.cpp.

Bool TComPic::getSAOMergeAvailability ( Int  currAddr,
Int  mergeAddr 
)

Definition at line 118 of file TComPic.cpp.

UInt TComPic::getSubstreamForCtuAddr ( const UInt  ctuAddr,
const Bool  bAddressInRaster,
TComSlice pcSlice 
)

Definition at line 125 of file TComPic.cpp.

Bool TComDataCU::hasEqualMotion ( UInt  uiAbsPartIdx,
TComDataCU pcCandCU,
UInt  uiCandAbsPartIdx 
)

Definition at line 2282 of file TComDataCU.cpp.

Void ContextModel::init ( Int  qp,
Int  initValue 
)

initialize state with initial probability

  • initialize context model with respect to QP and initialization value
Parameters
qpinput QP value
initValue8 bit initialization value

Definition at line 56 of file ContextModel.cpp.

Void TComRdCost::init ( )

Definition at line 223 of file TComRdCost.cpp.

Void ContextModel3DBuffer::initBuffer ( SliceType  sliceType,
Int  qp,
UChar ctxModel 
)

initialize 3D buffer by slice type & QP

Initialize 3D buffer with respect to slice type, QP and given initial probability table

Parameters
sliceTypeslice type
qpinput QP value
ctxModelgiven probability table

Definition at line 68 of file ContextModel3DBuffer.cpp.

Void TComDataCU::initCtu ( TComPic pcPic,
UInt  ctuRsAddr 
)

Initialize top-level CU: create internal buffers and set initial values before encoding the CTU.

Parameters
pcPicpicture (TComPic) class pointer
ctuRsAddrCTU address in raster scan order

Definition at line 448 of file TComDataCU.cpp.

Void TComDataCU::initEstData ( const UInt  uiDepth,
const Int  qp,
const Bool  bTransquantBypass 
)

Initialize prediction data with enabling sub-CTU-level delta QP.

  • set CU width and CU height according to depth
  • set qp value according to input qp
  • set last-coded qp value according to input last-coded qp
Parameters
uiDepthdepth of the current CU
qpqp for the current CU
bTransquantBypasstrue for transquant bypass

Definition at line 564 of file TComDataCU.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 TComDataCU::initSubCU ( TComDataCU pcCU,
UInt  uiPartUnitIdx,
UInt  uiDepth,
Int  qp 
)

Definition at line 635 of file TComDataCU.cpp.

Void TComPrediction::initTempBuff ( ChromaFormat  chromaFormatIDC)

Definition at line 126 of file TComPrediction.cpp.

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

Definition at line 262 of file TComRom.cpp.

Void TComOutputBitstream::insertAt ( const TComOutputBitstream src,
UInt  pos 
)

insert the contents of the bytealigned (and flushed) bitstream src into this at byte position pos.

Definition at line 306 of file TComBitStream.cpp.

Int isAboveAvailable ( TComDataCU pcCU,
UInt  uiPartIdxLT,
UInt  uiPartIdxRT,
Bool bValidFlags 
)

Definition at line 566 of file TComPattern.cpp.

Bool isAboveLeftAvailable ( TComDataCU pcCU,
UInt  uiPartIdxLT 
)

constrained intra prediction

Definition at line 550 of file TComPattern.cpp.

Int isAboveRightAvailable ( TComDataCU pcCU,
UInt  uiPartIdxLT,
UInt  uiPartIdxRT,
Bool bValidFlags 
)

Definition at line 649 of file TComPattern.cpp.

Int isBelowLeftAvailable ( TComDataCU pcCU,
UInt  uiPartIdxLT,
UInt  uiPartIdxLB,
Bool bValidFlags 
)

Definition at line 689 of file TComPattern.cpp.

Bool TComDataCU::isBipredRestriction ( UInt  puIdx)

Definition at line 2896 of file TComDataCU.cpp.

Bool TComDataCU::isDiffMER ( Int  xN,
Int  yN,
Int  xP,
Int  yP 
)

Check whether the current PU and a spatial neighboring PU are in a same ME region.

Parameters
xN,yNlocation of the upper-left corner pixel of a neighboring PU
xP,yPlocation of the upper-left corner pixel of the current PU

Definition at line 2658 of file TComDataCU.cpp.

Bool TComDataCU::isFirstAbsZorderIdxInDepth ( UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1728 of file TComDataCU.cpp.

Bool TComDataCU::isLastSubCUOfCtu ( const UInt  absPartIdx)

Definition at line 418 of file TComDataCU.cpp.

Int isLeftAvailable ( TComDataCU pcCU,
UInt  uiPartIdxLT,
UInt  uiPartIdxLB,
Bool bValidFlags 
)

Definition at line 607 of file TComPattern.cpp.

Bool TComDataCU::isLosslessCoded ( UInt  absPartIdx)

Check whether the CU is coded in lossless coding mode.

Parameters
absPartIdx
Returns
true if the CU is coded in lossless coding mode; false if otherwise

Definition at line 1467 of file TComDataCU.cpp.

Bool TComDataCU::isSkipped ( UInt  uiPartIdx)

returns true, if the partiton is skipped

Test whether the block at uiPartIdx is skipped.

Parameters
uiPartIdxPartition index
Returns
true if the current the block is skipped

Definition at line 2963 of file TComDataCU.cpp.

template<typename ValueType >
ValueType leftShift ( const ValueType  value,
const Int  shift 
)
inline

Definition at line 166 of file CommonDef.h.

template<typename ValueType >
ValueType leftShift_round ( const ValueType  value,
const Int  shift 
)
inline

Definition at line 168 of file CommonDef.h.

template<UInt OUTPUT_BITDEPTH_DIV8>
static Void md5_block ( MD5 md5,
const Pel plane,
UInt  n 
)
static

Update md5 using n samples from plane, each sample is adjusted to OUTBIT_BITDEPTH_DIV8.

Definition at line 45 of file TComPicYuvMD5.cpp.

template<UInt OUTPUT_BITDEPTH_DIV8>
static Void md5_plane ( MD5 md5,
const Pel plane,
UInt  width,
UInt  height,
UInt  stride 
)
static

Update md5 with all samples in plane in raster order, each sample is adjusted to OUTBIT_BITDEPTH_DIV8.

Definition at line 66 of file TComPicYuvMD5.cpp.

Void TComPrediction::motionCompensation ( TComDataCU pcCU,
TComYuv pcYuvPred,
RefPicList  eRefPicList = REF_PIC_LIST_X,
Int  iPartIdx = -1 
)

Definition at line 518 of file TComPrediction.cpp.

Void partialButterfly16 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line 
)

16x16 forward transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (residual)
dstoutput data (transform coefficients)
shiftspecifies right shift after 1D transform
line

Definition at line 593 of file TComTrQuant.cpp.

Void partialButterfly32 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line 
)

32x32 forward transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (residual)
dstoutput data (transform coefficients)
shiftspecifies right shift after 1D transform
line

Definition at line 709 of file TComTrQuant.cpp.

Void partialButterfly4 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line 
)

4x4 forward transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (residual)
dstoutput data (transform coefficients)
shiftspecifies right shift after 1D transform
line

Definition at line 388 of file TComTrQuant.cpp.

Void partialButterfly8 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line 
)

8x8 forward transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (residual)
dstoutput data (transform coefficients)
shiftspecifies right shift after 1D transform
line

Definition at line 507 of file TComTrQuant.cpp.

Void partialButterflyInverse16 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line,
const TCoeff  outputMinimum,
const TCoeff  outputMaximum 
)

16x16 inverse transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (transform coefficients)
dstoutput data (residual)
shiftspecifies right shift after 1D transform
line
outputMinimumminimum for clipping
outputMaximummaximum for clipping

Definition at line 654 of file TComTrQuant.cpp.

Void partialButterflyInverse32 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line,
const TCoeff  outputMinimum,
const TCoeff  outputMaximum 
)

32x32 inverse transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (transform coefficients)
dstoutput data (residual)
shiftspecifies right shift after 1D transform
line
outputMinimumminimum for clipping
outputMaximummaximum for clipping

Definition at line 785 of file TComTrQuant.cpp.

Void partialButterflyInverse4 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line,
const TCoeff  outputMinimum,
const TCoeff  outputMaximum 
)

4x4 inverse transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (transform coefficients)
dstoutput data (residual)
shiftspecifies right shift after 1D transform
line
outputMinimumminimum for clipping
outputMaximummaximum for clipping

Definition at line 476 of file TComTrQuant.cpp.

Void partialButterflyInverse8 ( TCoeff src,
TCoeff dst,
Int  shift,
Int  line,
const TCoeff  outputMinimum,
const TCoeff  outputMaximum 
)

8x8 inverse transform implemented using partial butterfly structure (1D)

Parameters
srcinput data (transform coefficients)
dstoutput data (residual)
shiftspecifies right shift after 1D transform
line
outputMinimumminimum for clipping
outputMaximummaximum for clipping

Definition at line 551 of file TComTrQuant.cpp.

Void TComPrediction::predIntraAng ( const ComponentID  compID,
UInt  uiDirMode,
Pel piOrg,
UInt  uiOrgStride,
Pel piPred,
UInt  uiStride,
TComTU rTu,
Bool  bAbove,
Bool  bLeft,
const Bool  bUseFilteredPredSamples,
const Bool  bUseLosslessDPCM = false 
)

Definition at line 412 of file TComPrediction.cpp.

Pel TComPrediction::predIntraGetPredValDC ( const Pel pSrc,
Int  iSrcStride,
UInt  iWidth,
UInt  iHeight,
ChannelType  channelType,
ChromaFormat  format,
Bool  bAbove,
Bool  bLeft 
)

Definition at line 183 of file TComPrediction.cpp.

Void TComYuv::removeHighFreq ( const TComYuv pcYuvSrc,
const UInt  uiPartIdx,
const UInt  uiWidth,
const UInt  uiHeight 
)

Definition at line 409 of file TComYuv.cpp.

template<typename ValueType >
ValueType rightShift ( const ValueType  value,
const Int  shift 
)
inline

Definition at line 167 of file CommonDef.h.

template<typename ValueType >
ValueType rightShift_round ( const ValueType  value,
const Int  shift 
)
inline

Definition at line 169 of file CommonDef.h.

Void TComDataCU::setCbfPartRange ( UInt  uiCbf,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiCoveredPartIdxes 
)

Definition at line 1707 of file TComDataCU.cpp.

Void TComDataCU::setCbfSubParts ( const UInt  uiCbf[MAX_NUM_COMPONENT],
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1680 of file TComDataCU.cpp.

Void TComDataCU::setCbfSubParts ( UInt  uiCbf,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1689 of file TComDataCU.cpp.

Void TComDataCU::setCbfSubParts ( UInt  uiCbf,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth 
)

Sets a coded block flag for all sub-partitions of a partition

Parameters
uiCbfThe value of the coded block flag to be set
compID
uiAbsPartIdx
uiPartIdx
uiDepth

Definition at line 1702 of file TComDataCU.cpp.

Void TComDataCU::setChromaQpAdjSubParts ( UChar  val,
Int  absPartIdx,
Int  depth 
)

Definition at line 1757 of file TComDataCU.cpp.

Void TComDataCU::setCrossComponentPredictionAlphaPartRange ( Char  alphaValue,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiCoveredPartIdxes 
)

Definition at line 1958 of file TComDataCU.cpp.

Void TComDataCU::setCUTransquantBypassSubParts ( Bool  flag,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1740 of file TComDataCU.cpp.

Void TComDataCU::setDepthSubParts ( UInt  uiDepth,
UInt  uiAbsPartIdx 
)

Definition at line 1722 of file TComDataCU.cpp.

Void TComRdCost::setDistParam ( UInt  uiBlkWidth,
UInt  uiBlkHeight,
DFunc  eDFunc,
DistParam rcDistParam 
)

Definition at line 294 of file TComRdCost.cpp.

Void TComRdCost::setDistParam ( TComPattern pcPatternKey,
Pel piRefY,
Int  iRefStride,
DistParam rcDistParam 
)

Definition at line 306 of file TComRdCost.cpp.

Void TComRdCost::setDistParam ( TComPattern pcPatternKey,
Pel piRefY,
Int  iRefStride,
Int  iStep,
DistParam rcDistParam,
Bool  bHADME = false 
)

Definition at line 340 of file TComRdCost.cpp.

Void TComRdCost::setDistParam ( DistParam rcDP,
Int  bitDepth,
Pel p1,
Int  iStride1,
Pel p2,
Int  iStride2,
Int  iWidth,
Int  iHeight,
Bool  bHadamard = false 
)

Definition at line 384 of file TComRdCost.cpp.

Void TComDataCU::setExplicitRdpcmModePartRange ( UInt  rdpcmMode,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiCoveredPartIdxes 
)

Definition at line 1963 of file TComDataCU.cpp.

Void TComDataCU::setInterDirSubParts ( UInt  uiDir,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth 
)

Definition at line 1913 of file TComDataCU.cpp.

Void TComDataCU::setIntraDirSubParts ( const ChannelType  channelType,
const UInt  uiDir,
const UInt  uiAbsPartIdx,
const UInt  uiDepth 
)

Definition at line 1798 of file TComDataCU.cpp.

Void TComDataCU::setIPCMFlagSubParts ( Bool  bIpcmFlag,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Set a I_PCM flag for all sub-partitions of a partition.

Parameters
bIpcmFlagI_PCM flag
uiAbsPartIdxpatition index
uiDepthCU depth
Returns
Void

Definition at line 2952 of file TComDataCU.cpp.

Void TComRdCost::setLambda ( Double  dLambda)

Definition at line 194 of file TComRdCost.cpp.

Void TComDataCU::setMergeFlagSubParts ( Bool  bMergeFlag,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth 
)

Definition at line 1903 of file TComDataCU.cpp.

Void TComDataCU::setMergeIndexSubParts ( UInt  uiMergeIndex,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth 
)

Definition at line 1908 of file TComDataCU.cpp.

Void TComDataCU::setMVPIdxSubParts ( Int  iMVPIdx,
RefPicList  eRefPicList,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth 
)

Definition at line 1918 of file TComDataCU.cpp.

Void TComDataCU::setMVPNumSubParts ( Int  iMVPNum,
RefPicList  eRefPicList,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth 
)

Definition at line 1923 of file TComDataCU.cpp.

Void TComDataCU::setOutsideCUPart ( UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 728 of file TComDataCU.cpp.

Void TComDataCU::setPartSizeSubParts ( PartSize  eMode,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1734 of file TComDataCU.cpp.

Void TComDataCU::setPredModeSubParts ( PredMode  eMode,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1751 of file TComDataCU.cpp.

Void TComDataCU::setQPSubCUs ( Int  qp,
UInt  absPartIdx,
UInt  depth,
Bool foundNonZeroCbf 
)

Definition at line 1763 of file TComDataCU.cpp.

Void TComDataCU::setQPSubParts ( Int  qp,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1792 of file TComDataCU.cpp.

Void TComDataCU::setSizeSubParts ( UInt  uiWidth,
UInt  uiHeight,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1968 of file TComDataCU.cpp.

Void TComDataCU::setSkipFlagSubParts ( Bool  skip,
UInt  absPartIdx,
UInt  depth 
)

Definition at line 1745 of file TComDataCU.cpp.

template<typename T >
Void TComDataCU::setSubPart ( bParameter,
T *  pbBaseCtu,
UInt  uiCUAddr,
UInt  uiCUDepth,
UInt  uiPUIdx 
)

Definition at line 1805 of file TComDataCU.cpp.

Void TComDataCU::setTransformSkipPartRange ( UInt  useTransformSkip,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiCoveredPartIdxes 
)

Definition at line 1953 of file TComDataCU.cpp.

Void TComDataCU::setTransformSkipSubParts ( UInt  useTransformSkip,
ComponentID  compID,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1946 of file TComDataCU.cpp.

Void TComDataCU::setTransformSkipSubParts ( const UInt  useTransformSkip[MAX_NUM_COMPONENT],
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1936 of file TComDataCU.cpp.

Void TComDataCU::setTrIdxSubParts ( UInt  uiTrIdx,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)

Definition at line 1929 of file TComDataCU.cpp.

template<typename T >
Int sgn ( val)

Definition at line 59 of file TComSampleAdaptiveOffset.h.

Void TComYuv::subtract ( const TComYuv pcYuvSrc0,
const TComYuv pcYuvSrc1,
const UInt  uiTrUnitIdx,
const UInt  uiPartSize 
)

Definition at line 320 of file TComYuv.cpp.

TComDataCU::TComDataCU ( )

Definition at line 54 of file TComDataCU.cpp.

TComOutputBitstream::TComOutputBitstream ( )

this value is always msb-aligned, bigendian.

the bits held and not flushed to bytestream.

Definition at line 53 of file TComBitStream.cpp.

TComPic::TComPic ( )

Definition at line 48 of file TComPic.cpp.

TComPicSym::TComPicSym ( )

Definition at line 49 of file TComPicSym.cpp.

TComPicYuv::TComPicYuv ( )

Definition at line 54 of file TComPicYuv.cpp.

TComPrediction::TComPrediction ( )

Definition at line 73 of file TComPrediction.cpp.

TComRdCost::TComRdCost ( )

Definition at line 46 of file TComRdCost.cpp.

TComSlice::TComSlice ( )

Definition at line 48 of file TComSlice.cpp.

TComYuv::TComYuv ( )

Definition at line 51 of file TComYuv.cpp.

Bool TComPrediction::UseDPCMForFirstPassIntraEstimation ( TComTU rTu,
const UInt  uiDirMode 
)
static

Definition at line 844 of file TComPrediction.cpp.

Void TComOutputBitstream::write ( UInt  uiBits,
UInt  uiNumberOfBits 
)
virtual

append uiNumberOfBits least significant bits of uiBits to the current bitstream

Implements TComBitIf.

Definition at line 96 of file TComBitStream.cpp.

Void TComOutputBitstream::writeAlignOne ( )
virtual

insert one bits until the bitstream is byte-aligned

Reimplemented from TComBitIf.

Definition at line 140 of file TComBitStream.cpp.

Void TComOutputBitstream::writeAlignZero ( )
virtual

insert zero bits until the bitstream is byte-aligned

Reimplemented from TComBitIf.

Definition at line 147 of file TComBitStream.cpp.

Void TComOutputBitstream::writeByteAlignment ( )

Definition at line 178 of file TComBitStream.cpp.

Bool TComDataCU::xAddMVPCand ( AMVPInfo pInfo,
RefPicList  eRefPicList,
Int  iRefIdx,
UInt  uiPartUnitIdx,
MVP_DIR  eDir 
)
protected

add possible motion vector predictor candidates

Definition at line 2972 of file TComDataCU.cpp.

Bool TComDataCU::xAddMVPCandOrder ( AMVPInfo pInfo,
RefPicList  eRefPicList,
Int  iRefIdx,
UInt  uiPartUnitIdx,
MVP_DIR  eDir 
)
protected
Parameters
pInfo
eRefPicList
iRefIdx
uiPartUnitIdx
eDir
Returns
Bool

Definition at line 3058 of file TComDataCU.cpp.

Distortion TComRdCost::xCalcHADs2x2 ( Pel piOrg,
Pel piCurr,
Int  iStrideOrg,
Int  iStrideCur,
Int  iStep 
)
staticprivate

Definition at line 1321 of file TComRdCost.cpp.

Distortion TComRdCost::xCalcHADs4x4 ( Pel piOrg,
Pel piCurr,
Int  iStrideOrg,
Int  iStrideCur,
Int  iStep 
)
staticprivate

Definition at line 1343 of file TComRdCost.cpp.

Distortion TComRdCost::xCalcHADs8x8 ( Pel piOrg,
Pel piCurr,
Int  iStrideOrg,
Int  iStrideCur,
Int  iStep 
)
staticprivate

Definition at line 1439 of file TComRdCost.cpp.

Bool TComPrediction::xCheckIdenticalMotion ( TComDataCU pcCU,
UInt  PartAddr 
)
protected

Check for identical motion in both motion vector direction of a bi-directional predicted CU

Returns
true, if motion vectors and reference pictures match

Definition at line 501 of file TComPrediction.cpp.

Void TComPrediction::xDCPredFiltering ( const Pel pSrc,
Int  iSrcStride,
Pel pDst,
Int  iDstStride,
Int  iWidth,
Int  iHeight,
ChannelType  channelType 
)
protected

Function for filtering intra DC predictor.

Parameters
pSrcpointer to reconstructed sample array
iSrcStridethe stride of the reconstructed sample array
pDstreference to pointer for the prediction sample array
iDstStridethe stride of the prediction sample array
iWidththe width of the block
iHeightthe height of the block
channelTypetype of pel array (luma, chroma)

This function performs filtering left and top edges of the prediction samples for DC mode (intra coding).

Definition at line 818 of file TComPrediction.cpp.

Void TComDataCU::xDeriveCenterIdx ( UInt  uiPartIdx,
UInt ruiPartIdxCenter 
)
protected

Definition at line 3296 of file TComDataCU.cpp.

Bool TComDataCU::xGetColMVP ( RefPicList  eRefPicList,
Int  ctuRsAddr,
Int  uiPartUnitIdx,
TComMv rcMv,
Int riRefIdx 
)
protected

Definition at line 3183 of file TComDataCU.cpp.

UInt TComRdCost::xGetComponentBits ( Int  iVal)

Definition at line 278 of file TComRdCost.cpp.

UInt TComDataCU::xGetComponentBits ( Int  iVal)
protected

Definition at line 3260 of file TComDataCU.cpp.

Int TComDataCU::xGetDistScaleFactor ( Int  iCurrPOC,
Int  iCurrRefPOC,
Int  iColPOC,
Int  iColRefPOC 
)
protected

compute scaling factor from POC difference

Definition at line 3277 of file TComDataCU.cpp.

Distortion TComRdCost::xGetHADs ( DistParam pcDtParam)
staticprivate

Definition at line 1537 of file TComRdCost.cpp.

UInt TComDataCU::xGetMvdBits ( TComMv  cMvd)
protected

compute required bits to encode MVD (used in AMVP)

Definition at line 3255 of file TComDataCU.cpp.

Distortion TComRdCost::xGetSAD ( DistParam pcDtParam)
staticprivate

Definition at line 465 of file TComRdCost.cpp.

Distortion TComRdCost::xGetSAD12 ( DistParam pcDtParam)
staticprivate

Definition at line 603 of file TComRdCost.cpp.

Distortion TComRdCost::xGetSAD16 ( DistParam pcDtParam)
staticprivate

Definition at line 559 of file TComRdCost.cpp.

Distortion TComRdCost::xGetSAD16N ( DistParam pcDtParam)
staticprivate

Definition at line 643 of file TComRdCost.cpp.