HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
TComDataCU Class Reference

CU data structure class. More...

#include <TComDataCU.h>

Collaboration diagram for TComDataCU:
Collaboration graph
[legend]

Public Member Functions

TComPicgetPic ()
 
const TComPicgetPic () const
 
TComSlicegetSlice ()
 
const TComSlicegetSlice () const
 
UIntgetCtuRsAddr ()
 
UInt getCtuRsAddr () const
 
UInt getZorderIdxInCtu () const
 
UInt getCUPelX () const
 
UInt getCUPelY () const
 
UChargetDepth ()
 
UChar getDepth (UInt uiIdx) const
 
Void setDepth (UInt uiIdx, UChar uh)
 
Void setTMctsMvpIsValid (Bool b)
 
Bool getTMctsMvpIsValid ()
 
SChargetPartitionSize ()
 
PartSize getPartitionSize (UInt uiIdx) const
 
Void setPartitionSize (UInt uiIdx, PartSize uh)
 
BoolgetSkipFlag ()
 
Bool getSkipFlag (UInt idx) const
 
Void setSkipFlag (UInt idx, Bool skip)
 
SChargetPredictionMode ()
 
PredMode getPredictionMode (UInt uiIdx) const
 
Void setPredictionMode (UInt uiIdx, PredMode uh)
 
SChargetCrossComponentPredictionAlpha (ComponentID compID)
 
SChar getCrossComponentPredictionAlpha (UInt uiIdx, ComponentID compID)
 
BoolgetCUTransquantBypass ()
 
Bool getCUTransquantBypass (UInt uiIdx) const
 
UChargetWidth ()
 
UChar getWidth (UInt uiIdx) const
 
Void setWidth (UInt uiIdx, UChar uh)
 
UChargetHeight ()
 
UChar getHeight (UInt uiIdx) const
 
Void setHeight (UInt uiIdx, UChar uh)
 
SChargetQP ()
 
SChar getQP (UInt uiIdx) const
 
Void setQP (UInt uiIdx, SChar value)
 
Void setCodedQP (SChar qp)
 
SChar getCodedQP () const
 
UChargetChromaQpAdj ()
 array of chroma QP adjustments (indexed). when value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1 More...
 
UChar getChromaQpAdj (Int idx) const
 When value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1. More...
 
Void setChromaQpAdj (Int idx, UChar val)
 When val = 0, cu_chroma_qp_offset_flag=0; when val>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=val-1. More...
 
Void setCodedChromaQpAdj (SChar qp)
 
SChar getCodedChromaQpAdj () const
 
UChargetTransformIdx ()
 
UChar getTransformIdx (UInt uiIdx) const
 
UChargetTransformSkip (ComponentID compID)
 
UChar getTransformSkip (UInt uiIdx, ComponentID compID) const
 
UChargetExplicitRdpcmMode (ComponentID component)
 
UChar getExplicitRdpcmMode (ComponentID component, UInt partIdx) const
 
Bool isRDPCMEnabled (UInt uiAbsPartIdx) const
 
TComCUMvFieldgetCUMvField (RefPicList e)
 
const TComCUMvFieldgetCUMvField (RefPicList e) const
 
TCoeffgetCoeff (ComponentID component)
 
TCoeffgetArlCoeff (ComponentID component)
 
PelgetPCMSample (ComponentID component)
 
UChar getCbf (UInt uiIdx, ComponentID eType) const
 
UChargetCbf (ComponentID eType)
 
UChar getCbf (UInt uiIdx, ComponentID eType, UInt uiTrDepth) const
 
Void setCbf (UInt uiIdx, ComponentID eType, UChar uh)
 
BoolgetMergeFlag ()
 
Bool getMergeFlag (UInt uiIdx) const
 
Void setMergeFlag (UInt uiIdx, Bool b)
 
UChargetMergeIndex ()
 
UChar getMergeIndex (UInt uiIdx) const
 
Void setMergeIndex (UInt uiIdx, UInt uiMergeIndex)
 
Void setMergeAMP (Bool b)
 
Bool getMergeAMP () const
 
UChargetIntraDir (const ChannelType channelType) const
 
UChar getIntraDir (const ChannelType channelType, const UInt uiIdx) const
 
UChargetInterDir ()
 
UChar getInterDir (UInt uiIdx) const
 
Void setInterDir (UInt uiIdx, UChar uh)
 
BoolgetIPCMFlag ()
 
Bool getIPCMFlag (UInt uiIdx) const
 
Void setIPCMFlag (UInt uiIdx, Bool b)
 
Void setMVPIdx (RefPicList eRefPicList, UInt uiIdx, Int iMVPIdx)
 
Int getMVPIdx (RefPicList eRefPicList, UInt uiIdx) const
 
SChargetMVPIdx (RefPicList eRefPicList)
 
Void setMVPNum (RefPicList eRefPicList, UInt uiIdx, Int iMVPNum)
 
Int getMVPNum (RefPicList eRefPicList, UInt uiIdx) const
 
SChargetMVPNum (RefPicList eRefPicList)
 
Void getMvPredLeft (TComMv &rcMvPred) const
 
Void getMvPredAbove (TComMv &rcMvPred) const
 
Void getMvPredAboveRight (TComMv &rcMvPred) const
 
TComDataCUgetCtuLeft ()
 
TComDataCUgetCtuAbove ()
 
TComDataCUgetCtuAboveLeft ()
 
TComDataCUgetCtuAboveRight ()
 
Bool CUIsFromSameSlice (const TComDataCU *pCU) const
 
Bool isIntra (UInt uiPartIdx) const
 
Bool isInter (UInt uiPartIdx) const
 
UIntgetTotalBins ()
 
DoublegetTotalCost ()
 
DistortiongetTotalDistortion ()
 
UIntgetTotalBits ()
 
UIntgetTotalNumPart ()
 

Private Attributes

TComPicm_pcPic
 picture class pointer More...
 
TComSlicem_pcSlice
 slice header pointer More...
 
UInt m_ctuRsAddr
 CTU (also known as LCU) address in a slice (Raster-scan address, as opposed to tile-scan/encoding order). More...
 
UInt m_absZIdxInCtu
 absolute address in a CTU. It's Z scan order More...
 
UInt m_uiCUPelX
 CU position in a pixel (X) More...
 
UInt m_uiCUPelY
 CU position in a pixel (Y) More...
 
UInt m_uiNumPartition
 total number of minimum partitions in a CU More...
 
UCharm_puhWidth
 array of widths More...
 
UCharm_puhHeight
 array of heights More...
 
UCharm_puhDepth
 array of depths More...
 
Int m_unitSize
 size of a "minimum partition" More...
 
Boolm_skipFlag
 array of skip flags More...
 
SCharm_pePartSize
 array of partition sizes More...
 
SCharm_pePredMode
 array of prediction modes More...
 
SCharm_crossComponentPredictionAlpha [MAX_NUM_COMPONENT]
 array of cross-component prediction alpha values More...
 
Boolm_CUTransquantBypass
 array of cu_transquant_bypass flags More...
 
SCharm_phQP
 array of QP values More...
 
UCharm_ChromaQpAdj
 array of chroma QP adjustments (indexed). when value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1 More...
 
UInt m_codedChromaQpAdj
 
UCharm_puhTrIdx
 array of transform indices More...
 
UCharm_puhTransformSkip [MAX_NUM_COMPONENT]
 array of transform skipping flags More...
 
UCharm_puhCbf [MAX_NUM_COMPONENT]
 array of coded block flags (CBF) More...
 
TComCUMvField m_acCUMvField [NUM_REF_PIC_LIST_01]
 array of motion vectors. More...
 
TCoeffm_pcTrCoeff [MAX_NUM_COMPONENT]
 array of transform coefficient buffers (0->Y, 1->Cb, 2->Cr) More...
 
TCoeffm_pcArlCoeff [MAX_NUM_COMPONENT]
 ARL coefficient buffer (0->Y, 1->Cb, 2->Cr) More...
 
Bool m_ArlCoeffIsAliasedAllocation
 ARL coefficient buffer is an alias of the global buffer and must not be free()'d. More...
 
Pelm_pcIPCMSample [MAX_NUM_COMPONENT]
 PCM sample buffer (0->Y, 1->Cb, 2->Cr) More...
 
TComDataCUm_pCtuAboveLeft
 pointer of above-left CTU. More...
 
TComDataCUm_pCtuAboveRight
 pointer of above-right CTU. More...
 
TComDataCUm_pCtuAbove
 pointer of above CTU. More...
 
TComDataCUm_pCtuLeft
 pointer of left CTU More...
 
TComMvField m_cMvFieldA
 motion vector of position A More...
 
TComMvField m_cMvFieldB
 motion vector of position B More...
 
TComMvField m_cMvFieldC
 motion vector of position C More...
 
TComMv m_cMvPred
 motion vector predictor More...
 
Boolm_pbMergeFlag
 array of merge flags More...
 
UCharm_puhMergeIndex
 array of merge candidate indices More...
 
Bool m_bIsMergeAMP
 
UCharm_puhIntraDir [MAX_NUM_CHANNEL_TYPE]
 
UCharm_puhInterDir
 array of inter directions More...
 
SCharm_apiMVPIdx [NUM_REF_PIC_LIST_01]
 array of motion vector predictor candidates More...
 
SCharm_apiMVPNum [NUM_REF_PIC_LIST_01]
 array of number of possible motion vectors predictors More...
 
Boolm_pbIPCMFlag
 array of intra_pcm flags More...
 
Bool m_tMctsMvpIsValid
 
Bool m_bDecSubCu
 indicates decoder-mode More...
 
Double m_dTotalCost
 sum of partition RD costs More...
 
Distortion m_uiTotalDistortion
 sum of partition distortion More...
 
UInt m_uiTotalBits
 sum of partition bits More...
 
UInt m_uiTotalBins
 sum of partition bins More...
 
SChar m_codedQP
 
UCharm_explicitRdpcmMode [MAX_NUM_COMPONENT]
 Stores the explicit RDPCM mode for all TUs belonging to this CU. More...
 
Bool xAddMVPCandUnscaled (AMVPInfo &info, const RefPicList eRefPicList, const Int iRefIdx, const UInt uiPartUnitIdx, const MVP_DIR eDir) const
 adds a single possible motion vector predictor candidate More...
 
Bool xAddMVPCandWithScaling (AMVPInfo &info, const RefPicList eRefPicList, const Int iRefIdx, const UInt uiPartUnitIdx, const MVP_DIR eDir) const
 
Void deriveRightBottomIdx (UInt uiPartIdx, UInt &ruiPartIdxRB) const
 
Bool xGetColMVP (const RefPicList eRefPicList, const Int ctuRsAddr, const Int partUnitIdx, TComMv &rcMv, const Int refIdx) const
 
Void xDeriveCenterIdx (UInt uiPartIdx, UInt &ruiPartIdxCenter) const
 
static Int xGetDistScaleFactor (Int iCurrPOC, Int iCurrRefPOC, Int iColPOC, Int iColRefPOC)
 compute scaling factor from POC difference More...
 
 TComDataCU ()
 
virtual ~TComDataCU ()
 
Void create (ChromaFormat chromaFormatIDC, UInt uiNumPartition, UInt uiWidth, UInt uiHeight, Bool bDecSubCu, Int unitSize, TCoeff *pParentARLBuffer=0)
 
Void destroy ()
 
Void initCtu (TComPic *pcPic, UInt ctuRsAddr)
 
Void initEstData (const UInt uiDepth, const Int qp, const Bool bTransquantBypass)
 
Void initSubCU (TComDataCU *pcCU, UInt uiPartUnitIdx, UInt uiDepth, Int qp)
 
Void setOutsideCUPart (UInt uiAbsPartIdx, UInt uiDepth)
 
Void copySubCU (TComDataCU *pcCU, UInt uiPartUnitIdx)
 
Void copyInterPredInfoFrom (TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList)
 
Void copyPartFrom (TComDataCU *pcCU, UInt uiPartUnitIdx, UInt uiDepth)
 
Void copyToPic (UChar uiDepth)
 
Void setDepthSubParts (UInt uiDepth, UInt uiAbsPartIdx)
 
Bool isLastColumnCTUInTile () const
 
Void setPartSizeSubParts (PartSize eMode, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setCUTransquantBypassSubParts (Bool flag, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setSkipFlagSubParts (Bool skip, UInt absPartIdx, UInt depth)
 
Void setPredModeSubParts (PredMode eMode, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setSizeSubParts (UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setQPSubParts (Int qp, UInt uiAbsPartIdx, UInt uiDepth)
 
Int getLastValidPartIdx (Int iAbsPartIdx) const
 
SChar getLastCodedQP (UInt uiAbsPartIdx) const
 
Void setQPSubCUs (Int qp, UInt absPartIdx, UInt depth, Bool &foundNonZeroCbf)
 
Void setChromaQpAdjSubParts (UChar val, Int absPartIdx, Int depth)
 
Bool isLosslessCoded (UInt absPartIdx) const
 
Void setTrIdxSubParts (UInt uiTrIdx, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setTransformSkipSubParts (UInt useTransformSkip, ComponentID compID, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setTransformSkipSubParts (const UInt useTransformSkip[MAX_NUM_COMPONENT], UInt uiAbsPartIdx, UInt uiDepth)
 
Void setExplicitRdpcmModePartRange (UInt rdpcmMode, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void setCrossComponentPredictionAlphaPartRange (SChar alphaValue, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void setTransformSkipPartRange (UInt useTransformSkip, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
UInt getQuadtreeTULog2MinSizeInCU (UInt uiIdx) const
 
Void clearCbf (UInt uiIdx, ComponentID eType, UInt uiNumParts)
 
UChar getQtRootCbf (UInt uiIdx) const
 
Void setCbfSubParts (const UInt uiCbf[MAX_NUM_COMPONENT], UInt uiAbsPartIdx, UInt uiDepth)
 
Void setCbfSubParts (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiDepth)
 
Void setCbfSubParts (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void setCbfPartRange (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void bitwiseOrCbfPartRange (UInt uiCbf, ComponentID compID, UInt uiAbsPartIdx, UInt uiCoveredPartIdxes)
 
Void setMergeFlagSubParts (Bool bMergeFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void setMergeIndexSubParts (UInt uiMergeIndex, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
template<typename T >
Void setSubPart (T bParameter, T *pbBaseCtu, UInt uiCUAddr, UInt uiCUDepth, UInt uiPUIdx)
 
Void setIntraDirSubParts (const ChannelType channelType, const UInt uiDir, const UInt uiAbsPartIdx, const UInt uiDepth)
 
Void setInterDirSubParts (UInt uiDir, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void setIPCMFlagSubParts (Bool bIpcmFlag, UInt uiAbsPartIdx, UInt uiDepth)
 
Void getPartIndexAndSize (UInt uiPartIdx, UInt &ruiPartAddr, Int &riWidth, Int &riHeight) const
 
UChar getNumPartitions (const UInt uiAbsPartIdx=0) const
 
Bool isFirstAbsZorderIdxInDepth (UInt uiAbsPartIdx, UInt uiDepth) const
 
Void fillMvpCand (const UInt uiPartIdx, const UInt uiPartAddr, const RefPicList eRefPicList, const Int iRefIdx, AMVPInfo *pInfo) const
 
Bool isDiffMER (Int xN, Int yN, Int xP, Int yP) const
 
Void getPartPosition (UInt partIdx, Int &xP, Int &yP, Int &nPSW, Int &nPSH) const
 
Void setMVPIdxSubParts (Int iMVPIdx, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void setMVPNumSubParts (Int iMVPNum, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth)
 
Void clipMv (TComMv &rcMv) const
 
Void compressMV ()
 
Bool CUIsFromSameTile (const TComDataCU *pCU) const
 
Bool CUIsFromSameSliceAndTile (const TComDataCU *pCU) const
 
Bool CUIsFromSameSliceTileAndWavefrontRow (const TComDataCU *pCU) const
 
Bool isLastSubCUOfCtu (const UInt absPartIdx) const
 
const TComDataCUgetPULeft (UInt &uiLPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceTileRestriction=true) const
 
const TComDataCUgetPUAbove (UInt &uiAPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool planarAtCTUBoundary=false, Bool bEnforceTileRestriction=true) const
 
const TComDataCUgetPUAboveLeft (UInt &uiALPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true) const
 
const TComDataCUgetQpMinCuLeft (UInt &uiLPartUnitIdx, UInt uiCurrAbsIdxInCtu) const
 
const TComDataCUgetQpMinCuAbove (UInt &uiAPartUnitIdx, UInt uiCurrAbsIdxInCtu) const
 
const TComDataCUgetPUAboveRight (UInt &uiARPartUnitIdx, UInt uiCurrPartUnitIdx, UInt uiPartUnitOffset=1, Bool bEnforceSliceRestriction=true) const
 returns CU and part index of the PU above the top row of the current uiCurrPartUnitIdx of the CU, at a horizontal offset (to the right) of uiPartUnitOffset (in parts) More...
 
const TComDataCUgetPUBelowLeft (UInt &uiBLPartUnitIdx, UInt uiCurrPartUnitIdx, UInt uiPartUnitOffset=1, Bool bEnforceSliceRestriction=true) const
 returns CU and part index of the PU left of the lefthand column of the current uiCurrPartUnitIdx of the CU, at a vertical offset (below) of uiPartUnitOffset (in parts) More...
 
SChar getRefQP (UInt uiCurrAbsIdxInCtu) const
 
Void deriveLeftRightTopIdx (UInt uiPartIdx, UInt &ruiPartIdxLT, UInt &ruiPartIdxRT) const
 
Void deriveLeftBottomIdx (UInt uiPartIdx, UInt &ruiPartIdxLB) const
 
Bool hasEqualMotion (UInt uiAbsPartIdx, const TComDataCU *pcCandCU, UInt uiCandAbsPartIdx) const
 
Void getInterMergeCandidates (UInt uiAbsPartIdx, UInt uiPUIdx, TComMvField *pcMFieldNeighbours, UChar *puhInterDirNeighbours, Int &numValidMergeCand, UInt &numSpatialMergeCandidates, Int mrgCandIdx=-1) const
 Construct a list of merging candidates. More...
 
Void deriveLeftRightTopIdxGeneral (UInt uiAbsPartIdx, UInt uiPartIdx, UInt &ruiPartIdxLT, UInt &ruiPartIdxRT) const
 
Void deriveLeftBottomIdxGeneral (UInt uiAbsPartIdx, UInt uiPartIdx, UInt &ruiPartIdxLB) const
 
Bool isSkipped (UInt uiPartIdx) const
 returns true, if the partiton is skipped More...
 
Bool isBipredRestriction (UInt puIdx) const
 
UInt getIntraSizeIdx (UInt uiAbsPartIdx) const
 
Void getAllowedChromaDir (UInt uiAbsPartIdx, UInt *uiModeList) const
 
Void getIntraDirPredictor (UInt uiAbsPartIdx, Int uiIntraDirPred[NUM_MOST_PROBABLE_MODES], const ComponentID compID, Int *piMode=0) const
 
UInt getCtxSplitFlag (UInt uiAbsPartIdx, UInt uiDepth) const
 
UInt getCtxQtCbf (TComTU &rTu, const ChannelType chType) const
 
UInt getCtxSkipFlag (UInt uiAbsPartIdx) const
 
UInt getCtxInterDir (UInt uiAbsPartIdx) const
 
UInt getCoefScanIdx (const UInt uiAbsPartIdx, const UInt uiWidth, const UInt uiHeight, const ComponentID compID) const
 
static Void getMvField (const TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList, TComMvField &rcMvField)
 

Detailed Description

CU data structure class.

Definition at line 64 of file TComDataCU.h.

Constructor & Destructor Documentation

TComDataCU::~TComDataCU ( )
virtual

Definition at line 105 of file TComDataCU.cpp.

Member Function Documentation

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

Definition at line 1568 of file TComDataCU.cpp.

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

Definition at line 2806 of file TComDataCU.cpp.

Void TComDataCU::clipMv ( TComMv rcMv) const

Definition at line 2775 of file TComDataCU.cpp.

Void TComDataCU::compressMV ( )

Definition at line 3125 of file TComDataCU.cpp.

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

Definition at line 782 of file TComDataCU.cpp.

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

Definition at line 821 of file TComDataCU.cpp.

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

Definition at line 700 of file TComDataCU.cpp.

Void TComDataCU::copyToPic ( UChar  uiDepth)

Definition at line 906 of file TComDataCU.cpp.

Void TComDataCU::create ( ChromaFormat  chromaFormatIDC,
UInt  uiNumPartition,
UInt  uiWidth,
UInt  uiHeight,
Bool  bDecSubCu,
Int  unitSize,
TCoeff pParentARLBuffer = 0 
)

Definition at line 109 of file TComDataCU.cpp.

Bool TComDataCU::CUIsFromSameSlice ( const TComDataCU pCU) const
inline

Definition at line 403 of file TComDataCU.h.

Bool TComDataCU::CUIsFromSameSliceAndTile ( const TComDataCU pCU) const

Definition at line 378 of file TComDataCU.cpp.

Bool TComDataCU::CUIsFromSameSliceTileAndWavefrontRow ( const TComDataCU pCU) const

Definition at line 387 of file TComDataCU.cpp.

Bool TComDataCU::CUIsFromSameTile ( const TComDataCU pCU) const

Definition at line 371 of file TComDataCU.cpp.

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

Definition at line 2043 of file TComDataCU.cpp.

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

Definition at line 1956 of file TComDataCU.cpp.

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

Definition at line 2003 of file TComDataCU.cpp.

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

Definition at line 1907 of file TComDataCU.cpp.

Void TComDataCU::deriveRightBottomIdx ( UInt  uiPartIdx,
UInt ruiPartIdxRB 
) const
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 2083 of file TComDataCU.cpp.

Void TComDataCU::destroy ( )

Definition at line 208 of file TComDataCU.cpp.

Void TComDataCU::fillMvpCand ( const UInt  partIdx,
const UInt  partAddr,
const RefPicList  eRefPicList,
const Int  refIdx,
AMVPInfo pInfo 
) const

Constructs a list of candidates for AMVP (See specification, section "Derivation process for motion vector predictor candidates")

Parameters
uiPartIdx
uiPartAddr
eRefPicList
iRefIdx
pInfo

variable name from specification; true when the PUs below left or left are available (availableA0 || availableA1).

Definition at line 2614 of file TComDataCU.cpp.

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

Get allowed chroma intra modes

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

Definition at line 1334 of file TComDataCU.cpp.

TCoeff* TComDataCU::getArlCoeff ( ComponentID  component)
inline

Definition at line 303 of file TComDataCU.h.

UChar TComDataCU::getCbf ( UInt  uiIdx,
ComponentID  eType 
) const
inline

Definition at line 307 of file TComDataCU.h.

UChar* TComDataCU::getCbf ( ComponentID  eType)
inline

Definition at line 308 of file TComDataCU.h.

UChar TComDataCU::getCbf ( UInt  uiIdx,
ComponentID  eType,
UInt  uiTrDepth 
) const
inline

Definition at line 309 of file TComDataCU.h.

UChar* TComDataCU::getChromaQpAdj ( )
inline

array of chroma QP adjustments (indexed). when value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1

Definition at line 268 of file TComDataCU.h.

UChar TComDataCU::getChromaQpAdj ( Int  idx) const
inline

When value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1.

Definition at line 269 of file TComDataCU.h.

SChar TComDataCU::getCodedChromaQpAdj ( ) const
inline

Definition at line 273 of file TComDataCU.h.

SChar TComDataCU::getCodedQP ( ) const
inline

Definition at line 266 of file TComDataCU.h.

TCoeff* TComDataCU::getCoeff ( ComponentID  component)
inline

Definition at line 300 of file TComDataCU.h.

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

Definition at line 3150 of file TComDataCU.cpp.

SChar* TComDataCU::getCrossComponentPredictionAlpha ( ComponentID  compID)
inline

Definition at line 242 of file TComDataCU.h.

SChar TComDataCU::getCrossComponentPredictionAlpha ( UInt  uiIdx,
ComponentID  compID 
)
inline

Definition at line 243 of file TComDataCU.h.

TComDataCU* TComDataCU::getCtuAbove ( )
inline

Definition at line 400 of file TComDataCU.h.

TComDataCU* TComDataCU::getCtuAboveLeft ( )
inline

Definition at line 401 of file TComDataCU.h.

TComDataCU* TComDataCU::getCtuAboveRight ( )
inline

Definition at line 402 of file TComDataCU.h.

TComDataCU* TComDataCU::getCtuLeft ( )
inline

Definition at line 399 of file TComDataCU.h.

UInt& TComDataCU::getCtuRsAddr ( )
inline

Definition at line 204 of file TComDataCU.h.

UInt TComDataCU::getCtuRsAddr ( ) const
inline

Definition at line 205 of file TComDataCU.h.

UInt TComDataCU::getCtxInterDir ( UInt  uiAbsPartIdx) const

Definition at line 1522 of file TComDataCU.cpp.

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

Definition at line 1463 of file TComDataCU.cpp.

UInt TComDataCU::getCtxSkipFlag ( UInt  uiAbsPartIdx) const

Definition at line 1505 of file TComDataCU.cpp.

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

Definition at line 1447 of file TComDataCU.cpp.

TComCUMvField* TComDataCU::getCUMvField ( RefPicList  e)
inline

Definition at line 297 of file TComDataCU.h.

const TComCUMvField* TComDataCU::getCUMvField ( RefPicList  e) const
inline

Definition at line 298 of file TComDataCU.h.

UInt TComDataCU::getCUPelX ( ) const
inline

Definition at line 207 of file TComDataCU.h.

UInt TComDataCU::getCUPelY ( ) const
inline

Definition at line 208 of file TComDataCU.h.

Bool* TComDataCU::getCUTransquantBypass ( )
inline

Definition at line 245 of file TComDataCU.h.

Bool TComDataCU::getCUTransquantBypass ( UInt  uiIdx) const
inline

Definition at line 246 of file TComDataCU.h.

UChar* TComDataCU::getDepth ( )
inline

Definition at line 210 of file TComDataCU.h.

UChar TComDataCU::getDepth ( UInt  uiIdx) const
inline

Definition at line 211 of file TComDataCU.h.

UChar* TComDataCU::getExplicitRdpcmMode ( ComponentID  component)
inline

Definition at line 286 of file TComDataCU.h.

UChar TComDataCU::getExplicitRdpcmMode ( ComponentID  component,
UInt  partIdx 
) const
inline

Definition at line 287 of file TComDataCU.h.

UChar* TComDataCU::getHeight ( )
inline

Definition at line 252 of file TComDataCU.h.

UChar TComDataCU::getHeight ( UInt  uiIdx) const
inline

Definition at line 253 of file TComDataCU.h.

UChar* TComDataCU::getInterDir ( )
inline

Definition at line 350 of file TComDataCU.h.

UChar TComDataCU::getInterDir ( UInt  uiIdx) const
inline

Definition at line 351 of file TComDataCU.h.

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

Construct a list of merging candidates.

Definition at line 2143 of file TComDataCU.cpp.

UChar* TComDataCU::getIntraDir ( const ChannelType  channelType) const
inline

Definition at line 342 of file TComDataCU.h.

UChar TComDataCU::getIntraDir ( const ChannelType  channelType,
const UInt  uiIdx 
) const
inline

Definition at line 343 of file TComDataCU.h.

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

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 1362 of file TComDataCU.cpp.

UInt TComDataCU::getIntraSizeIdx ( UInt  uiAbsPartIdx) const

Definition at line 2791 of file TComDataCU.cpp.

Bool* TComDataCU::getIPCMFlag ( )
inline

Definition at line 354 of file TComDataCU.h.

Bool TComDataCU::getIPCMFlag ( UInt  uiIdx) const
inline

Definition at line 355 of file TComDataCU.h.

SChar TComDataCU::getLastCodedQP ( UInt  uiAbsPartIdx) const

Definition at line 1282 of file TComDataCU.cpp.

Int TComDataCU::getLastValidPartIdx ( Int  iAbsPartIdx) const

Definition at line 1270 of file TComDataCU.cpp.

Bool TComDataCU::getMergeAMP ( ) const
inline

Definition at line 339 of file TComDataCU.h.

Bool* TComDataCU::getMergeFlag ( )
inline

Definition at line 325 of file TComDataCU.h.

Bool TComDataCU::getMergeFlag ( UInt  uiIdx) const
inline

Definition at line 326 of file TComDataCU.h.

UChar* TComDataCU::getMergeIndex ( )
inline

Definition at line 330 of file TComDataCU.h.

UChar TComDataCU::getMergeIndex ( UInt  uiIdx) const
inline

Definition at line 331 of file TComDataCU.h.

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

Definition at line 1894 of file TComDataCU.cpp.

Int TComDataCU::getMVPIdx ( RefPicList  eRefPicList,
UInt  uiIdx 
) const
inline

Definition at line 378 of file TComDataCU.h.

SChar* TComDataCU::getMVPIdx ( RefPicList  eRefPicList)
inline

Definition at line 379 of file TComDataCU.h.

Int TComDataCU::getMVPNum ( RefPicList  eRefPicList,
UInt  uiIdx 
) const
inline

Definition at line 382 of file TComDataCU.h.

SChar* TComDataCU::getMVPNum ( RefPicList  eRefPicList)
inline

Definition at line 383 of file TComDataCU.h.

Void TComDataCU::getMvPredAbove ( TComMv rcMvPred) const
inline

Definition at line 390 of file TComDataCU.h.

Void TComDataCU::getMvPredAboveRight ( TComMv rcMvPred) const
inline

Definition at line 391 of file TComDataCU.h.

Void TComDataCU::getMvPredLeft ( TComMv rcMvPred) const
inline

Definition at line 389 of file TComDataCU.h.

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

Definition at line 1832 of file TComDataCU.cpp.

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

Definition at line 1853 of file TComDataCU.cpp.

SChar* TComDataCU::getPartitionSize ( )
inline

Definition at line 226 of file TComDataCU.h.

PartSize TComDataCU::getPartitionSize ( UInt  uiIdx) const
inline

Definition at line 227 of file TComDataCU.h.

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

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 2546 of file TComDataCU.cpp.

Pel* TComDataCU::getPCMSample ( ComponentID  component)
inline

Definition at line 305 of file TComDataCU.h.

TComPic* TComDataCU::getPic ( )
inline

Definition at line 200 of file TComDataCU.h.

const TComPic* TComDataCU::getPic ( ) const
inline

Definition at line 201 of file TComDataCU.h.

SChar* TComDataCU::getPredictionMode ( )
inline

Definition at line 237 of file TComDataCU.h.

PredMode TComDataCU::getPredictionMode ( UInt  uiIdx) const
inline

Definition at line 238 of file TComDataCU.h.

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

Definition at line 1017 of file TComDataCU.cpp.

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

Definition at line 1055 of file TComDataCU.cpp.

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

returns CU and part index of the PU above the top row of the current uiCurrPartUnitIdx of the CU, at a horizontal offset (to the right) of uiPartUnitOffset (in parts)

Definition at line 1146 of file TComDataCU.cpp.

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

returns CU and part index of the PU left of the lefthand column of the current uiCurrPartUnitIdx of the CU, at a vertical offset (below) of uiPartUnitOffset (in parts)

Definition at line 1102 of file TComDataCU.cpp.

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

Definition at line 985 of file TComDataCU.cpp.

SChar* TComDataCU::getQP ( )
inline

Definition at line 258 of file TComDataCU.h.

SChar TComDataCU::getQP ( UInt  uiIdx) const
inline

Definition at line 259 of file TComDataCU.h.

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

Get Above QpMinCu

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

Definition at line 1233 of file TComDataCU.cpp.

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

Get left QpMinCu

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

Definition at line 1206 of file TComDataCU.cpp.

UChar TComDataCU::getQtRootCbf ( UInt  uiIdx) const

Definition at line 1528 of file TComDataCU.cpp.

UInt TComDataCU::getQuadtreeTULog2MinSizeInCU ( UInt  uiIdx) const

Definition at line 1478 of file TComDataCU.cpp.

SChar TComDataCU::getRefQP ( UInt  uiCurrAbsIdxInCtu) const

Get reference QP from left QpMinCu or latest coded QP

Parameters
uiCurrAbsIdxInCtu
Returns
SChar reference QP value

Definition at line 1261 of file TComDataCU.cpp.

Bool* TComDataCU::getSkipFlag ( )
inline

Definition at line 232 of file TComDataCU.h.

Bool TComDataCU::getSkipFlag ( UInt  idx) const
inline

Definition at line 233 of file TComDataCU.h.

TComSlice* TComDataCU::getSlice ( )
inline

Definition at line 202 of file TComDataCU.h.

const TComSlice* TComDataCU::getSlice ( ) const
inline

Definition at line 203 of file TComDataCU.h.

Bool TComDataCU::getTMctsMvpIsValid ( )
inline

Definition at line 218 of file TComDataCU.h.

UInt& TComDataCU::getTotalBins ( )
inline

Definition at line 474 of file TComDataCU.h.

UInt& TComDataCU::getTotalBits ( )
inline

Definition at line 481 of file TComDataCU.h.

Double& TComDataCU::getTotalCost ( )
inline

Definition at line 479 of file TComDataCU.h.

Distortion& TComDataCU::getTotalDistortion ( )
inline

Definition at line 480 of file TComDataCU.h.

UInt& TComDataCU::getTotalNumPart ( )
inline

Definition at line 482 of file TComDataCU.h.

UChar* TComDataCU::getTransformIdx ( )
inline

Definition at line 277 of file TComDataCU.h.

UChar TComDataCU::getTransformIdx ( UInt  uiIdx) const
inline

Definition at line 278 of file TComDataCU.h.

UChar* TComDataCU::getTransformSkip ( ComponentID  compID)
inline

Definition at line 281 of file TComDataCU.h.

UChar TComDataCU::getTransformSkip ( UInt  uiIdx,
ComponentID  compID 
) const
inline

Definition at line 282 of file TComDataCU.h.

UChar* TComDataCU::getWidth ( )
inline

Definition at line 248 of file TComDataCU.h.

UChar TComDataCU::getWidth ( UInt  uiIdx) const
inline

Definition at line 249 of file TComDataCU.h.

UInt TComDataCU::getZorderIdxInCtu ( ) const
inline

Definition at line 206 of file TComDataCU.h.

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

Definition at line 2119 of file TComDataCU.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 422 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 525 of file TComDataCU.cpp.

Void TComDataCU::initSubCU ( TComDataCU pcCU,
UInt  uiPartUnitIdx,
UInt  uiDepth,
Int  qp 
)

Definition at line 596 of file TComDataCU.cpp.

Bool TComDataCU::isBipredRestriction ( UInt  puIdx) const

Definition at line 2760 of file TComDataCU.cpp.

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

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 2526 of file TComDataCU.cpp.

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

Definition at line 1584 of file TComDataCU.cpp.

Bool TComDataCU::isInter ( UInt  uiPartIdx) const
inline

Definition at line 451 of file TComDataCU.h.

Bool TComDataCU::isIntra ( UInt  uiPartIdx) const
inline

Definition at line 450 of file TComDataCU.h.

Bool TComDataCU::isLastColumnCTUInTile ( ) const

Definition at line 3210 of file TComDataCU.cpp.

Bool TComDataCU::isLastSubCUOfCtu ( const UInt  absPartIdx) const

Definition at line 393 of file TComDataCU.cpp.

Bool TComDataCU::isLosslessCoded ( UInt  absPartIdx) const

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 1322 of file TComDataCU.cpp.

Bool TComDataCU::isRDPCMEnabled ( UInt  uiAbsPartIdx) const
inline

Definition at line 290 of file TComDataCU.h.

Bool TComDataCU::isSkipped ( UInt  uiPartIdx) const

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 2828 of file TComDataCU.cpp.

Void TComDataCU::setCbf ( UInt  uiIdx,
ComponentID  eType,
UChar  uh 
)
inline

Definition at line 310 of file TComDataCU.h.

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

Definition at line 1563 of file TComDataCU.cpp.

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

Definition at line 1536 of file TComDataCU.cpp.

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

Definition at line 1545 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 1558 of file TComDataCU.cpp.

Void TComDataCU::setChromaQpAdj ( Int  idx,
UChar  val 
)
inline

When val = 0, cu_chroma_qp_offset_flag=0; when val>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=val-1.

Definition at line 270 of file TComDataCU.h.

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

Definition at line 1613 of file TComDataCU.cpp.

Void TComDataCU::setCodedChromaQpAdj ( SChar  qp)
inline

Definition at line 272 of file TComDataCU.h.

Void TComDataCU::setCodedQP ( SChar  qp)
inline

Definition at line 265 of file TComDataCU.h.

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

Definition at line 1814 of file TComDataCU.cpp.

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

Definition at line 1596 of file TComDataCU.cpp.

Void TComDataCU::setDepth ( UInt  uiIdx,
UChar  uh 
)
inline

Definition at line 212 of file TComDataCU.h.

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

Definition at line 1578 of file TComDataCU.cpp.

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

Definition at line 1819 of file TComDataCU.cpp.

Void TComDataCU::setHeight ( UInt  uiIdx,
UChar  uh 
)
inline

Definition at line 254 of file TComDataCU.h.

Void TComDataCU::setInterDir ( UInt  uiIdx,
UChar  uh 
)
inline

Definition at line 352 of file TComDataCU.h.

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

Definition at line 1769 of file TComDataCU.cpp.

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

Definition at line 1654 of file TComDataCU.cpp.

Void TComDataCU::setIPCMFlag ( UInt  uiIdx,
Bool  b 
)
inline

Definition at line 356 of file TComDataCU.h.

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 2817 of file TComDataCU.cpp.

Void TComDataCU::setMergeAMP ( Bool  b)
inline

Definition at line 338 of file TComDataCU.h.

Void TComDataCU::setMergeFlag ( UInt  uiIdx,
Bool  b 
)
inline

Definition at line 327 of file TComDataCU.h.

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

Definition at line 1759 of file TComDataCU.cpp.

Void TComDataCU::setMergeIndex ( UInt  uiIdx,
UInt  uiMergeIndex 
)
inline

Definition at line 332 of file TComDataCU.h.

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

Definition at line 1764 of file TComDataCU.cpp.

Void TComDataCU::setMVPIdx ( RefPicList  eRefPicList,
UInt  uiIdx,
Int  iMVPIdx 
)
inline

Definition at line 377 of file TComDataCU.h.

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

Definition at line 1774 of file TComDataCU.cpp.

Void TComDataCU::setMVPNum ( RefPicList  eRefPicList,
UInt  uiIdx,
Int  iMVPNum 
)
inline

Definition at line 381 of file TComDataCU.h.

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

Definition at line 1779 of file TComDataCU.cpp.

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

Definition at line 684 of file TComDataCU.cpp.

Void TComDataCU::setPartitionSize ( UInt  uiIdx,
PartSize  uh 
)
inline

Definition at line 228 of file TComDataCU.h.

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

Definition at line 1590 of file TComDataCU.cpp.

Void TComDataCU::setPredictionMode ( UInt  uiIdx,
PredMode  uh 
)
inline

Definition at line 239 of file TComDataCU.h.

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

Definition at line 1607 of file TComDataCU.cpp.

Void TComDataCU::setQP ( UInt  uiIdx,
SChar  value 
)
inline

Definition at line 260 of file TComDataCU.h.

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

Definition at line 1619 of file TComDataCU.cpp.

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

Definition at line 1648 of file TComDataCU.cpp.

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

Definition at line 1824 of file TComDataCU.cpp.

Void TComDataCU::setSkipFlag ( UInt  idx,
Bool  skip 
)
inline

Definition at line 234 of file TComDataCU.h.

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

Definition at line 1601 of file TComDataCU.cpp.

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

Definition at line 1661 of file TComDataCU.cpp.

Void TComDataCU::setTMctsMvpIsValid ( Bool  b)
inline

Definition at line 217 of file TComDataCU.h.

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

Definition at line 1809 of file TComDataCU.cpp.

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

Definition at line 1802 of file TComDataCU.cpp.

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

Definition at line 1792 of file TComDataCU.cpp.

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

Definition at line 1785 of file TComDataCU.cpp.

Void TComDataCU::setWidth ( UInt  uiIdx,
UChar  uh 
)
inline

Definition at line 250 of file TComDataCU.h.

Bool TComDataCU::xAddMVPCandUnscaled ( AMVPInfo info,
const RefPicList  eRefPicList,
const Int  iRefIdx,
const UInt  uiPartUnitIdx,
const MVP_DIR  eDir 
) const
protected

adds a single possible motion vector predictor candidate

Definition at line 2837 of file TComDataCU.cpp.

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

Definition at line 2905 of file TComDataCU.cpp.

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

Definition at line 3112 of file TComDataCU.cpp.

Bool TComDataCU::xGetColMVP ( const RefPicList  eRefPicList,
const Int  ctuRsAddr,
const Int  partUnitIdx,
TComMv rcMv,
const Int  refIdx 
) const
protected

Definition at line 2992 of file TComDataCU.cpp.

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

compute scaling factor from POC difference

Definition at line 3093 of file TComDataCU.cpp.

Member Data Documentation

UInt TComDataCU::m_absZIdxInCtu
private

absolute address in a CTU. It's Z scan order

Definition at line 80 of file TComDataCU.h.

TComCUMvField TComDataCU::m_acCUMvField[NUM_REF_PIC_LIST_01]
private

array of motion vectors.

Definition at line 104 of file TComDataCU.h.

SChar* TComDataCU::m_apiMVPIdx[NUM_REF_PIC_LIST_01]
private

array of motion vector predictor candidates

Definition at line 137 of file TComDataCU.h.

SChar* TComDataCU::m_apiMVPNum[NUM_REF_PIC_LIST_01]
private

array of number of possible motion vectors predictors

Definition at line 138 of file TComDataCU.h.

Bool TComDataCU::m_ArlCoeffIsAliasedAllocation
private

ARL coefficient buffer is an alias of the global buffer and must not be free()'d.

Definition at line 108 of file TComDataCU.h.

Bool TComDataCU::m_bDecSubCu
private

indicates decoder-mode

Definition at line 148 of file TComDataCU.h.

Bool TComDataCU::m_bIsMergeAMP
private

Definition at line 133 of file TComDataCU.h.

UChar* TComDataCU::m_ChromaQpAdj
private

array of chroma QP adjustments (indexed). when value = 0, cu_chroma_qp_offset_flag=0; when value>0, indicates cu_chroma_qp_offset_flag=1 and cu_chroma_qp_offset_idx=value-1

Definition at line 99 of file TComDataCU.h.

TComMvField TComDataCU::m_cMvFieldA
private

motion vector of position A

Definition at line 121 of file TComDataCU.h.

TComMvField TComDataCU::m_cMvFieldB
private

motion vector of position B

Definition at line 122 of file TComDataCU.h.

TComMvField TComDataCU::m_cMvFieldC
private

motion vector of position C

Definition at line 123 of file TComDataCU.h.

TComMv TComDataCU::m_cMvPred
private

motion vector predictor

Definition at line 124 of file TComDataCU.h.

UInt TComDataCU::m_codedChromaQpAdj
private

Definition at line 100 of file TComDataCU.h.

SChar TComDataCU::m_codedQP
private

Definition at line 153 of file TComDataCU.h.

SChar* TComDataCU::m_crossComponentPredictionAlpha[MAX_NUM_COMPONENT]
private

array of cross-component prediction alpha values

Definition at line 96 of file TComDataCU.h.

UInt TComDataCU::m_ctuRsAddr
private

CTU (also known as LCU) address in a slice (Raster-scan address, as opposed to tile-scan/encoding order).

Definition at line 79 of file TComDataCU.h.

Bool* TComDataCU::m_CUTransquantBypass
private

array of cu_transquant_bypass flags

Definition at line 97 of file TComDataCU.h.

Double TComDataCU::m_dTotalCost
private

sum of partition RD costs

Definition at line 149 of file TComDataCU.h.

UChar* TComDataCU::m_explicitRdpcmMode[MAX_NUM_COMPONENT]
private

Stores the explicit RDPCM mode for all TUs belonging to this CU.

Definition at line 154 of file TComDataCU.h.

Bool* TComDataCU::m_pbIPCMFlag
private

array of intra_pcm flags

Definition at line 139 of file TComDataCU.h.

Bool* TComDataCU::m_pbMergeFlag
private

array of merge flags

Definition at line 130 of file TComDataCU.h.

TCoeff* TComDataCU::m_pcArlCoeff[MAX_NUM_COMPONENT]
private

ARL coefficient buffer (0->Y, 1->Cb, 2->Cr)

Definition at line 107 of file TComDataCU.h.

Pel* TComDataCU::m_pcIPCMSample[MAX_NUM_COMPONENT]
private

PCM sample buffer (0->Y, 1->Cb, 2->Cr)

Definition at line 111 of file TComDataCU.h.

TComPic* TComDataCU::m_pcPic
private

picture class pointer

Definition at line 72 of file TComDataCU.h.

TComSlice* TComDataCU::m_pcSlice
private

slice header pointer

Definition at line 73 of file TComDataCU.h.

TCoeff* TComDataCU::m_pcTrCoeff[MAX_NUM_COMPONENT]
private

array of transform coefficient buffers (0->Y, 1->Cb, 2->Cr)

Definition at line 105 of file TComDataCU.h.

TComDataCU* TComDataCU::m_pCtuAbove
private

pointer of above CTU.

Definition at line 119 of file TComDataCU.h.

TComDataCU* TComDataCU::m_pCtuAboveLeft
private

pointer of above-left CTU.

Definition at line 117 of file TComDataCU.h.

TComDataCU* TComDataCU::m_pCtuAboveRight
private

pointer of above-right CTU.

Definition at line 118 of file TComDataCU.h.

TComDataCU* TComDataCU::m_pCtuLeft
private

pointer of left CTU

Definition at line 120 of file TComDataCU.h.

SChar* TComDataCU::m_pePartSize
private

array of partition sizes

Definition at line 94 of file TComDataCU.h.

SChar* TComDataCU::m_pePredMode
private

array of prediction modes

Definition at line 95 of file TComDataCU.h.

SChar* TComDataCU::m_phQP
private

array of QP values

Definition at line 98 of file TComDataCU.h.

UChar* TComDataCU::m_puhCbf[MAX_NUM_COMPONENT]
private

array of coded block flags (CBF)

Definition at line 103 of file TComDataCU.h.

UChar* TComDataCU::m_puhDepth
private

array of depths

Definition at line 86 of file TComDataCU.h.

UChar* TComDataCU::m_puhHeight
private

array of heights

Definition at line 85 of file TComDataCU.h.

UChar* TComDataCU::m_puhInterDir
private

array of inter directions

Definition at line 136 of file TComDataCU.h.

UChar* TComDataCU::m_puhIntraDir[MAX_NUM_CHANNEL_TYPE]
private

Definition at line 135 of file TComDataCU.h.

UChar* TComDataCU::m_puhMergeIndex
private

array of merge candidate indices

Definition at line 131 of file TComDataCU.h.

UChar* TComDataCU::m_puhTransformSkip[MAX_NUM_COMPONENT]
private

array of transform skipping flags

Definition at line 102 of file TComDataCU.h.

UChar* TComDataCU::m_puhTrIdx
private

array of transform indices

Definition at line 101 of file TComDataCU.h.

UChar* TComDataCU::m_puhWidth
private

array of widths

Definition at line 84 of file TComDataCU.h.

Bool* TComDataCU::m_skipFlag
private

array of skip flags

Definition at line 93 of file TComDataCU.h.

Bool TComDataCU::m_tMctsMvpIsValid
private

Definition at line 141 of file TComDataCU.h.

UInt TComDataCU::m_uiCUPelX
private

CU position in a pixel (X)

Definition at line 81 of file TComDataCU.h.

UInt TComDataCU::m_uiCUPelY
private

CU position in a pixel (Y)

Definition at line 82 of file TComDataCU.h.

UInt TComDataCU::m_uiNumPartition
private

total number of minimum partitions in a CU

Definition at line 83 of file TComDataCU.h.

UInt TComDataCU::m_uiTotalBins
private

sum of partition bins

Definition at line 152 of file TComDataCU.h.

UInt TComDataCU::m_uiTotalBits
private

sum of partition bits

Definition at line 151 of file TComDataCU.h.

Distortion TComDataCU::m_uiTotalDistortion
private

sum of partition distortion

Definition at line 150 of file TComDataCU.h.

Int TComDataCU::m_unitSize
private

size of a "minimum partition"

Definition at line 87 of file TComDataCU.h.


The documentation for this class was generated from the following files: