HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes
TLibDecoder - Library containing encoder functionality

Classes

class  InputByteStream
 
class  InputNALUnit
 
class  SyntaxElementParser
 
class  TDecBinCABAC
 
class  TDecCavlc
 CAVLC decoder class. More...
 
class  TDecCu
 CU decoder class. More...
 
class  TDecEntropyIf
 entropy decoder pure class More...
 
class  TDecGop
 GOP decoder class. More...
 
class  TDecTop
 decoder class More...
 
static Void _byteStreamNALUnit (InputByteStream &bs, vector< uint8_t > &nalUnit, AnnexBStats &stats)
 
Bool byteStreamNALUnit (InputByteStream &bs, vector< uint8_t > &nalUnit, AnnexBStats &stats)
 
static Void convertPayloadToRBSP (vector< uint8_t > &nalUnitBuf, TComInputBitstream *bitstream, Bool isVclNalUnit)
 
Void readNalUnitHeader (InputNALUnit &nalu)
 
Void read (InputNALUnit &nalu)
 
Void SEIReader::sei_read_scode (std::ostream *pOS, UInt uiLength, Int &ruiCode, const TChar *pSymbolName)
 
Void SyntaxElementParser::xReadSCode (UInt length, Int &val)
 
Void SyntaxElementParser::xReadCode (UInt length, UInt &val)
 
Void SyntaxElementParser::xReadUvlc (UInt &val)
 
Void SyntaxElementParser::xReadSvlc (Int &val)
 
Void SyntaxElementParser::xReadFlag (UInt &val)
 
Void SyntaxElementParser::xReadRbspTrailingBits ()
 
 TDecBinCABAC::TDecBinCABAC ()
 
virtual TDecBinCABAC::~TDecBinCABAC ()
 
Void TDecBinCABAC::init (TComInputBitstream *pcTComBitstream)
 
Void TDecBinCABAC::uninit ()
 
Void TDecBinCABAC::start ()
 
Void TDecBinCABAC::finish ()
 
Void TDecBinCABAC::decodeBin (UInt &ruiBin, ContextModel &rcCtxModel)
 
Void TDecBinCABAC::decodeBinEP (UInt &ruiBin)
 
Void TDecBinCABAC::decodeBinsEP (UInt &ruiBin, Int numBins)
 
Void TDecBinCABAC::decodeAlignedBinsEP (UInt &ruiBins, Int numBins)
 
Void TDecBinCABAC::align ()
 
Void TDecBinCABAC::decodeBinTrm (UInt &ruiBin)
 
Void TDecBinCABAC::xReadPCMCode (UInt uiLength, UInt &ruiCode)
 
Void TDecBinCABAC::copyState (const TDecBinIf *pcTDecBinIf)
 
 TDecCavlc::TDecCavlc ()
 
virtual TDecCavlc::~TDecCavlc ()
 
Void TDecCavlc::parseTransformSubdivFlag (UInt &ruiSubdivFlag, UInt uiLog2TransformBlockSize)
 
Void TDecCavlc::parseQtCbf (class TComTU &rTu, const ComponentID compID, const Bool lowestLevel)
 
Void TDecCavlc::parseQtRootCbf (UInt uiAbsPartIdx, UInt &uiQtRootCbf)
 
Void TDecCavlc::parseVPS (TComVPS *pcVPS)
 
Void TDecCavlc::parseSPS (TComSPS *pcSPS)
 
Void TDecCavlc::parsePPS (TComPPS *pcPPS)
 
Void TDecCavlc::parseVUI (TComVUI *pcVUI, TComSPS *pcSPS)
 
Void TDecCavlc::parsePTL (TComPTL *rpcPTL, Bool profilePresentFlag, Int maxNumSubLayersMinus1)
 
Void TDecCavlc::parseProfileTier (ProfileTierLevel *ptl, const Bool bIsSubLayer)
 
Void TDecCavlc::parseHrdParameters (TComHRD *hrd, Bool cprms_present_flag, UInt tempLevelHigh)
 
Void TDecCavlc::parseSliceHeader (TComSlice *pcSlice, ParameterSetManager *parameterSetManager, const Int prevTid0POC)
 
Void TDecCavlc::parseTerminatingBit (UInt &ruiBit)
 
Void TDecCavlc::parseRemainingBytes (Bool noTrailingBytesExpected)
 
Void TDecCavlc::parseMVPIdx (Int &riMVPIdx)
 
Void TDecCavlc::parseSkipFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parseCUTransquantBypassFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parseMergeFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPUIdx)
 
Void TDecCavlc::parseMergeIndex (TComDataCU *pcCU, UInt &ruiMergeIndex)
 
Void TDecCavlc::parseSplitFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parsePartSize (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parsePredMode (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parseIntraDirLumaAng (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parseIntraDirChroma (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parseInterDir (TComDataCU *pcCU, UInt &ruiInterDir, UInt uiAbsPartIdx)
 
Void TDecCavlc::parseRefFrmIdx (TComDataCU *pcCU, Int &riRefFrmIdx, RefPicList eRefList)
 
Void TDecCavlc::parseMvd (TComDataCU *pcCU, UInt uiAbsPartAddr, UInt uiPartIdx, UInt uiDepth, RefPicList eRefList)
 
Void TDecCavlc::parseCrossComponentPrediction (class TComTU &rTu, ComponentID compID)
 
Void TDecCavlc::parseDeltaQP (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::parseChromaQpAdjustment (TComDataCU *cu, UInt absPartIdx, UInt depth)
 
Void TDecCavlc::parseCoeffNxN (class TComTU &rTu, ComponentID compID)
 
Void TDecCavlc::parseTransformSkipFlags (class TComTU &rTu, ComponentID component)
 
Void TDecCavlc::parseIPCMInfo (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCavlc::xParsePredWeightTable (TComSlice *pcSlice, const TComSPS *sps)
 parse explicit wp tables More...
 
Void TDecCavlc::parseScalingList (TComScalingList *scalingList)
 
Void TDecCavlc::xDecodeScalingList (TComScalingList *scalingList, UInt sizeId, UInt listId)
 
Void TDecCavlc::parseExplicitRdpcmMode (TComTU &rTu, ComponentID compID)
 
Void TDecCavlc::parseShortTermRefPicSet (TComSPS *pcSPS, TComReferencePictureSet *pcRPS, Int idx)
 
Bool TDecCavlc::xMoreRbspData ()
 
 TDecCu::TDecCu ()
 
virtual TDecCu::~TDecCu ()
 
Void TDecCu::init (TDecEntropy *pcEntropyDecoder, TComTrQuant *pcTrQuant, TComPrediction *pcPrediction, TDecConformanceCheck *pConformanceCheck)
 initialize access channels More...
 
Void TDecCu::create (UInt uiMaxDepth, UInt uiMaxWidth, UInt uiMaxHeight, ChromaFormat chromaFormatIDC)
 create internal buffers More...
 
Void TDecCu::destroy ()
 destroy internal buffers More...
 
Void TDecCu::decodeCtu (TComDataCU *pCtu, Bool &isLastCtuOfSliceSegment)
 decode Ctu information More...
 
Void TDecCu::decompressCtu (TComDataCU *pCtu)
 reconstruct Ctu information More...
 
Void TDecCu::xDecodeCU (TComDataCU *const pcCU, const UInt uiAbsPartIdx, const UInt uiDepth, Bool &isLastCtuOfSliceSegment)
 decode CU block recursively More...
 
Void TDecCu::xFinishDecodeCU (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool &isLastCtuOfSliceSegment)
 
Bool TDecCu::xDecodeSliceEnd (TComDataCU *pcCU, UInt uiAbsPartIdx)
 decode end-of-slice flag More...
 
Void TDecCu::xDecompressCU (TComDataCU *pCtu, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecCu::xReconInter (TComDataCU *pcCU, UInt uiDepth)
 
Void TDecCu::xReconIntraQT (TComDataCU *pcCU, UInt uiDepth)
 
Void TDecCu::xIntraRecBlk (TComYuv *pcRecoYuv, TComYuv *pcPredYuv, TComYuv *pcResiYuv, const ComponentID component, TComTU &rTu)
 
Void TDecCu::xIntraRecQT (TComYuv *pcRecoYuv, TComYuv *pcPredYuv, TComYuv *pcResiYuv, const ChannelType chType, TComTU &rTu)
 
Void TDecCu::xReconPCM (TComDataCU *pcCU, UInt uiDepth)
 
Void TDecCu::xDecodeInterTexture (TComDataCU *pcCU, UInt uiDepth)
 
Void TDecCu::xDecodePCMTexture (TComDataCU *pcCU, const UInt uiPartIdx, const Pel *piPCM, Pel *piReco, const UInt uiStride, const UInt uiWidth, const UInt uiHeight, const ComponentID compID)
 
Void TDecCu::xCopyToPic (TComDataCU *pcCU, TComPic *pcPic, UInt uiZorderIdx, UInt uiDepth)
 
Void TDecCu::xFillPCMBuffer (TComDataCU *pCU, UInt depth)
 
Void TDecEntropy::setEntropyDecoder (TDecEntropyIf *p)
 
static Void calcAndPrintHashStatus (TComPicYuv &pic, const SEIDecodedPictureHash *pictureHashSEI, const BitDepths &bitDepths, UInt &numChecksumErrors)
 
 TDecSbac::TDecSbac ()
 
virtual TDecSbac::~TDecSbac ()
 
Void TDecSbac::load (const TDecSbac *pSrc)
 
Void TDecSbac::loadContexts (const TDecSbac *pSrc)
 
Void TDecSbac::xCopyFrom (const TDecSbac *pSrc)
 
Void TDecSbac::xCopyContextsFrom (const TDecSbac *pSrc)
 
Void TDecSbac::resetEntropy (TComSlice *pSlice)
 
Void TDecSbac::parseTerminatingBit (UInt &ruiBit)
 
Void TDecSbac::parseRemainingBytes (Bool noTrailingBytesExpected)
 
Void TDecSbac::parseMVPIdx (Int &riMVPIdx)
 
Void TDecSbac::parseSaoMaxUvlc (UInt &val, UInt maxSymbol)
 
Void TDecSbac::parseSaoMerge (UInt &ruiVal)
 
Void TDecSbac::parseSaoTypeIdx (UInt &ruiVal)
 
Void TDecSbac::parseSaoUflc (UInt uiLength, UInt &ruiVal)
 
Void TDecSbac::parseSAOBlkParam (SAOBlkParam &saoBlkParam, Bool *sliceEnabled, Bool leftMergeAvail, Bool aboveMergeAvail, const BitDepths &bitDepths)
 
Void TDecSbac::parseSaoSign (UInt &val)
 
Void TDecSbac::parseSkipFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseCUTransquantBypassFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseSplitFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseMergeFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPUIdx)
 
Void TDecSbac::parseMergeIndex (TComDataCU *pcCU, UInt &ruiMergeIndex)
 
Void TDecSbac::parsePartSize (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parsePredMode (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseIntraDirLumaAng (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseIntraDirChroma (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseInterDir (TComDataCU *pcCU, UInt &ruiInterDir, UInt uiAbsPartIdx)
 
Void TDecSbac::parseRefFrmIdx (TComDataCU *pcCU, Int &riRefFrmIdx, RefPicList eRefList)
 
Void TDecSbac::parseMvd (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth, RefPicList eRefList)
 
Void TDecSbac::parseCrossComponentPrediction (class TComTU &rTu, ComponentID compID)
 
Void TDecSbac::parseTransformSubdivFlag (UInt &ruiSubdivFlag, UInt uiLog2TransformBlockSize)
 
Void TDecSbac::parseQtCbf (TComTU &rTu, const ComponentID compID, const Bool lowestLevel)
 
Void TDecSbac::parseQtRootCbf (UInt uiAbsPartIdx, UInt &uiQtRootCbf)
 
Void TDecSbac::parseDeltaQP (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseChromaQpAdjustment (TComDataCU *cu, UInt absPartIdx, UInt depth)
 
Void TDecSbac::parseIPCMInfo (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void TDecSbac::parseLastSignificantXY (UInt &uiPosLastX, UInt &uiPosLastY, Int width, Int height, ComponentID component, UInt uiScanIdx)
 
Void TDecSbac::parseCoeffNxN (class TComTU &rTu, ComponentID compID)
 
Void TDecSbac::parseTransformSkipFlags (class TComTU &rTu, ComponentID component)
 
Void TDecSbac::parseExplicitRdpcmMode (TComTU &rTu, ComponentID compID)
 
Void TDecSbac::xReadUnarySymbol (UInt &ruiSymbol, ContextModel *pcSCModel, Int iOffset)
 
Void TDecSbac::xReadUnaryMaxSymbol (UInt &ruiSymbol, ContextModel *pcSCModel, Int iOffset, UInt uiMaxSymbol)
 
Void TDecSbac::xReadEpExGolomb (UInt &ruiSymbol, UInt uiCount)
 
Void TDecSbac::xReadCoefRemainExGolomb (UInt &rSymbol, UInt &rParam, const Bool useLimitedPrefixLength, const Int maxLog2TrDynamicRange)
 
 TDecSlice::TDecSlice ()
 
virtual TDecSlice::~TDecSlice ()
 
Void TDecSlice::init (TDecEntropy *pcEntropyDecoder, TDecCu *pcMbDecoder, TDecConformanceCheck *pDecConformanceCheck)
 
Void TDecSlice::create ()
 
Void TDecSlice::destroy ()
 
Void TDecSlice::decompressSlice (TComInputBitstream **ppcSubstreams, TComPic *pcPic, TDecSbac *pcSbacDecoder)
 
 TDecTop::TDecTop ()
 Buffered up prefix SEI NAL Units. More...
 

Detailed Description

Function Documentation

static Void _byteStreamNALUnit ( InputByteStream bs,
vector< uint8_t > &  nalUnit,
AnnexBStats stats 
)
static

Parse an AVC AnnexB Bytestream bs to extract a single nalUnit while accumulating bytestream statistics into stats.

If EOF occurs while trying to extract a NALunit, an exception of std::ios_base::failure is thrown. The contsnts of stats will be correct at this point.

Definition at line 62 of file AnnexBread.cpp.

Void TDecBinCABAC::align ( )
virtual

Implements TDecBinIf.

Definition at line 284 of file TDecBinCoderCABAC.cpp.

Bool byteStreamNALUnit ( InputByteStream bs,
vector< uint8_t > &  nalUnit,
AnnexBStats stats 
)

Parse an AVC AnnexB Bytestream bs to extract a single nalUnit while accumulating bytestream statistics into stats.

Returns false if EOF was reached (NB, nalunit data may be valid), otherwise true.

Definition at line 182 of file AnnexBread.cpp.

static Void calcAndPrintHashStatus ( TComPicYuv pic,
const SEIDecodedPictureHash pictureHashSEI,
const BitDepths bitDepths,
UInt numChecksumErrors 
)
static

Calculate and print hash for pic, compare to picture_digest SEI if present in seis. seis may be NULL. Hash is printed to stdout, in a manner suitable for the status line. Theformat is: [Hash_type:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,(yyy)] Where, x..x is the hash yyy has the following meanings: OK - calculated hash matches the SEI message ***ERROR*** - calculated hash does not match the SEI message unk - no SEI message was available for comparison

Definition at line 208 of file TDecGop.cpp.

static Void convertPayloadToRBSP ( vector< uint8_t > &  nalUnitBuf,
TComInputBitstream bitstream,
Bool  isVclNalUnit 
)
static

Definition at line 58 of file NALread.cpp.

Void TDecBinCABAC::copyState ( const TDecBinIf pcTDecBinIf)
virtual
  • Copy CABAC state.
Parameters
pcTDecBinIfThe source CABAC engine.

Implements TDecBinIf.

Definition at line 97 of file TDecBinCoderCABAC.cpp.

Void TDecSlice::create ( )

Definition at line 56 of file TDecSlice.cpp.

Void TDecCu::create ( UInt  uiMaxDepth,
UInt  uiMaxWidth,
UInt  uiMaxHeight,
ChromaFormat  chromaFormatIDC 
)

create internal buffers

Parameters
uiMaxDepthtotal number of allowable depth
uiMaxWidthlargest CU width
uiMaxHeightlargest CU height
chromaFormatIDCchroma format

Definition at line 80 of file TDecCu.cpp.

Void TDecBinCABAC::decodeAlignedBinsEP ( UInt ruiBins,
Int  numBins 
)

Definition at line 295 of file TDecBinCoderCABAC.cpp.

Void TDecBinCABAC::decodeBin ( UInt ruiBin,
ContextModel rcCtxModel 
)
virtual

Implements TDecBinIf.

Definition at line 110 of file TDecBinCoderCABAC.cpp.

Void TDecBinCABAC::decodeBinEP ( UInt ruiBin)
virtual

Implements TDecBinIf.

Definition at line 186 of file TDecBinCoderCABAC.cpp.

Void TDecBinCABAC::decodeBinsEP ( UInt ruiBin,
Int  numBins 
)
virtual

Implements TDecBinIf.

Definition at line 222 of file TDecBinCoderCABAC.cpp.

Void TDecBinCABAC::decodeBinTrm ( UInt ruiBin)
virtual

Implements TDecBinIf.

Definition at line 338 of file TDecBinCoderCABAC.cpp.

Void TDecCu::decodeCtu ( TComDataCU pCtu,
Bool isLastCtuOfSliceSegment 
)

decode Ctu information

Parse a CTU.

Parameters
pCtu[in/out] pointer to CTU data structure
isLastCtuOfSliceSegment[out] true, if last CTU of the slice segment

Definition at line 142 of file TDecCu.cpp.

Void TDecCu::decompressCtu ( TComDataCU pCtu)

reconstruct Ctu information

Decoding process for a CTU.

Parameters
pCtu[in/out] pointer to CTU data structure

Definition at line 162 of file TDecCu.cpp.

Void TDecSlice::decompressSlice ( TComInputBitstream **  ppcSubstreams,
TComPic pcPic,
TDecSbac pcSbacDecoder 
)

Definition at line 71 of file TDecSlice.cpp.

Void TDecSlice::destroy ( )

Definition at line 60 of file TDecSlice.cpp.

Void TDecCu::destroy ( )

destroy internal buffers

Definition at line 119 of file TDecCu.cpp.

Void TDecBinCABAC::finish ( )
virtual

Implements TDecBinIf.

Definition at line 82 of file TDecBinCoderCABAC.cpp.

Void TDecBinCABAC::init ( TComInputBitstream pcTComBitstream)
virtual

Implements TDecBinIf.

Definition at line 57 of file TDecBinCoderCABAC.cpp.

Void TDecSlice::init ( TDecEntropy pcEntropyDecoder,
TDecCu pcMbDecoder,
TDecConformanceCheck pDecConformanceCheck 
)

Definition at line 64 of file TDecSlice.cpp.

Void TDecCu::init ( TDecEntropy pcEntropyDecoder,
TComTrQuant pcTrQuant,
TComPrediction pcPrediction,
TDecConformanceCheck pConformanceCheck 
)

initialize access channels

Definition at line 61 of file TDecCu.cpp.

Void TDecSbac::load ( const TDecSbac pSrc)

Definition at line 1848 of file TDecSbac.cpp.

Void TDecSbac::loadContexts ( const TDecSbac pSrc)

Definition at line 1853 of file TDecSbac.cpp.

Void TDecCavlc::parseChromaQpAdjustment ( TComDataCU cu,
UInt  absPartIdx,
UInt  depth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1779 of file TDecCAVLC.cpp.

Void TDecSbac::parseChromaQpAdjustment ( TComDataCU cu,
UInt  absPartIdx,
UInt  depth 
)
virtual

parse chroma qp adjustment, converting to the internal table representation.

Returns
Void

Implements TDecEntropyIf.

Definition at line 974 of file TDecSbac.cpp.

Void TDecCavlc::parseCoeffNxN ( class TComTU rTu,
ComponentID  compID 
)
virtual

Implements TDecEntropyIf.

Definition at line 1784 of file TDecCAVLC.cpp.

Void TDecSbac::parseCoeffNxN ( class TComTU rTu,
ComponentID  compID 
)
virtual

Implements TDecEntropyIf.

Definition at line 1225 of file TDecSbac.cpp.

Void TDecCavlc::parseCrossComponentPrediction ( class TComTU rTu,
ComponentID  compID 
)
virtual

Implements TDecEntropyIf.

Definition at line 1769 of file TDecCAVLC.cpp.

Void TDecSbac::parseCrossComponentPrediction ( class TComTU rTu,
ComponentID  compID 
)
virtual

Implements TDecEntropyIf.

Definition at line 849 of file TDecSbac.cpp.

Void TDecCavlc::parseCUTransquantBypassFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1706 of file TDecCAVLC.cpp.

Void TDecSbac::parseCUTransquantBypassFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 406 of file TDecSbac.cpp.

Void TDecCavlc::parseDeltaQP ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1774 of file TDecCAVLC.cpp.

Void TDecSbac::parseDeltaQP ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 934 of file TDecSbac.cpp.

Void TDecCavlc::parseExplicitRdpcmMode ( TComTU rTu,
ComponentID  compID 
)
virtual

Implements TDecEntropyIf.

Definition at line 2056 of file TDecCAVLC.cpp.

Void TDecSbac::parseExplicitRdpcmMode ( TComTU rTu,
ComponentID  compID 
)
virtual

Performs CABAC decoding of the explicit RDPCM mode

Parameters
rTucurrent TU data structure
compIDcomponent identifier

Implements TDecEntropyIf.

Definition at line 1862 of file TDecSbac.cpp.

Void TDecCavlc::parseHrdParameters ( TComHRD hrd,
Bool  cprms_present_flag,
UInt  tempLevelHigh 
)

Definition at line 512 of file TDecCAVLC.cpp.

Void TDecCavlc::parseInterDir ( TComDataCU pcCU,
UInt ruiInterDir,
UInt  uiAbsPartIdx 
)
virtual

Implements TDecEntropyIf.

Definition at line 1754 of file TDecCAVLC.cpp.

Void TDecSbac::parseInterDir ( TComDataCU pcCU,
UInt ruiInterDir,
UInt  uiAbsPartIdx 
)
virtual

Implements TDecEntropyIf.

Definition at line 724 of file TDecSbac.cpp.

Void TDecCavlc::parseIntraDirChroma ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1749 of file TDecCAVLC.cpp.

Void TDecSbac::parseIntraDirChroma ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 699 of file TDecSbac.cpp.

Void TDecCavlc::parseIntraDirLumaAng ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1744 of file TDecCAVLC.cpp.

Void TDecSbac::parseIntraDirLumaAng ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 638 of file TDecSbac.cpp.

Void TDecCavlc::parseIPCMInfo ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Parse I_PCM information.

Parameters
pcCUpointer to CU
uiAbsPartIdxCU index
uiDepthCU depth
Returns
Void

If I_PCM flag indicates that the CU is I_PCM, parse its PCM alignment bits and codes.

Implements TDecEntropyIf.

Definition at line 1739 of file TDecCAVLC.cpp.

Void TDecSbac::parseIPCMInfo ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Parse I_PCM information.

Parameters
pcCU
uiAbsPartIdx
uiDepth
Returns
Void

If I_PCM flag indicates that the CU is I_PCM, parse its PCM alignment bits and codes.

Implements TDecEntropyIf.

Definition at line 364 of file TDecSbac.cpp.

Void TDecSbac::parseLastSignificantXY ( UInt uiPosLastX,
UInt uiPosLastY,
Int  width,
Int  height,
ComponentID  component,
UInt  uiScanIdx 
)

Parse (X,Y) position of the last significant coefficient

Parameters
uiPosLastXreference to X component of last coefficient
uiPosLastYreference to Y component of last coefficient
widthBlock width
heightBlock height
componentchroma compinent ID
uiScanIdxscan type (zig-zag, hor, ver)

This method decodes the X and Y component within a block of the last significant coefficient.

Definition at line 1148 of file TDecSbac.cpp.

Void TDecCavlc::parseMergeFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth,
UInt  uiPUIdx 
)
virtual

Implements TDecEntropyIf.

Definition at line 1809 of file TDecCAVLC.cpp.

Void TDecSbac::parseMergeFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth,
UInt  uiPUIdx 
)
virtual

parse merge flag

Parameters
pcCU
uiAbsPartIdx
uiDepth
uiPUIdx
Returns
Void

Implements TDecEntropyIf.

Definition at line 455 of file TDecSbac.cpp.

Void TDecCavlc::parseMergeIndex ( TComDataCU pcCU,
UInt ruiMergeIndex 
)
virtual

Implements TDecEntropyIf.

Definition at line 1814 of file TDecCAVLC.cpp.

Void TDecSbac::parseMergeIndex ( TComDataCU pcCU,
UInt ruiMergeIndex 
)
virtual

Implements TDecEntropyIf.

Definition at line 471 of file TDecSbac.cpp.

Void TDecCavlc::parseMvd ( TComDataCU pcCU,
UInt  uiAbsPartAddr,
UInt  uiPartIdx,
UInt  uiDepth,
RefPicList  eRefList 
)
virtual

Implements TDecEntropyIf.

Definition at line 1764 of file TDecCAVLC.cpp.

Void TDecSbac::parseMvd ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiPartIdx,
UInt  uiDepth,
RefPicList  eRefList 
)
virtual

Implements TDecEntropyIf.

Definition at line 785 of file TDecSbac.cpp.

Void TDecCavlc::parseMVPIdx ( Int riMVPIdx)
virtual

Implements TDecEntropyIf.

Definition at line 1711 of file TDecCAVLC.cpp.

Void TDecSbac::parseMVPIdx ( Int riMVPIdx)
virtual

Implements TDecEntropyIf.

Definition at line 503 of file TDecSbac.cpp.

Void TDecCavlc::parsePartSize ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1721 of file TDecCAVLC.cpp.

Void TDecSbac::parsePartSize ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

parse partition size

Parameters
pcCU
uiAbsPartIdx
uiDepth
Returns
Void

Implements TDecEntropyIf.

Definition at line 536 of file TDecSbac.cpp.

Void TDecCavlc::parsePPS ( TComPPS pcPPS)
virtual

Implements TDecEntropyIf.

Definition at line 187 of file TDecCAVLC.cpp.

Void TDecCavlc::parsePredMode ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1726 of file TDecCAVLC.cpp.

Void TDecSbac::parsePredMode ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

parse prediction mode

Parameters
pcCU
uiAbsPartIdx
uiDepth
Returns
Void

Implements TDecEntropyIf.

Definition at line 622 of file TDecSbac.cpp.

Void TDecCavlc::parseProfileTier ( ProfileTierLevel ptl,
const Bool  bIsSubLayer 
)

Definition at line 1588 of file TDecCAVLC.cpp.

Void TDecCavlc::parsePTL ( TComPTL rpcPTL,
Bool  profilePresentFlag,
Int  maxNumSubLayersMinus1 
)

Definition at line 1547 of file TDecCAVLC.cpp.

Void TDecCavlc::parseQtCbf ( class TComTU rTu,
const ComponentID  compID,
const Bool  lowestLevel 
)
virtual

Implements TDecEntropyIf.

Definition at line 1794 of file TDecCAVLC.cpp.

Void TDecSbac::parseQtCbf ( TComTU rTu,
const ComponentID  compID,
const Bool  lowestLevel 
)
virtual

Implements TDecEntropyIf.

Definition at line 999 of file TDecSbac.cpp.

Void TDecCavlc::parseQtRootCbf ( UInt  uiAbsPartIdx,
UInt uiQtRootCbf 
)
virtual

Implements TDecEntropyIf.

Definition at line 1799 of file TDecCAVLC.cpp.

Void TDecSbac::parseQtRootCbf ( UInt  uiAbsPartIdx,
UInt uiQtRootCbf 
)
virtual

Implements TDecEntropyIf.

Definition at line 916 of file TDecSbac.cpp.

Void TDecCavlc::parseRefFrmIdx ( TComDataCU pcCU,
Int riRefFrmIdx,
RefPicList  eRefList 
)
virtual

Implements TDecEntropyIf.

Definition at line 1759 of file TDecCAVLC.cpp.

Void TDecSbac::parseRefFrmIdx ( TComDataCU pcCU,
Int riRefFrmIdx,
RefPicList  eRefList 
)
virtual

Implements TDecEntropyIf.

Definition at line 751 of file TDecSbac.cpp.

Void TDecCavlc::parseRemainingBytes ( Bool  noTrailingBytesExpected)
virtual

Implements TDecEntropyIf.

Definition at line 1680 of file TDecCAVLC.cpp.

Void TDecSbac::parseRemainingBytes ( Bool  noTrailingBytesExpected)
virtual

Implements TDecEntropyIf.

Definition at line 186 of file TDecSbac.cpp.

Void TDecSbac::parseSAOBlkParam ( SAOBlkParam saoBlkParam,
Bool sliceEnabled,
Bool  leftMergeAvail,
Bool  aboveMergeAvail,
const BitDepths bitDepths 
)

Definition at line 1691 of file TDecSbac.cpp.

Void TDecSbac::parseSaoMaxUvlc ( UInt val,
UInt  maxSymbol 
)

Definition at line 1617 of file TDecSbac.cpp.

Void TDecSbac::parseSaoMerge ( UInt ruiVal)

Definition at line 1657 of file TDecSbac.cpp.

Void TDecSbac::parseSaoSign ( UInt val)

Definition at line 1686 of file TDecSbac.cpp.

Void TDecSbac::parseSaoTypeIdx ( UInt ruiVal)

Definition at line 1664 of file TDecSbac.cpp.

Void TDecSbac::parseSaoUflc ( UInt  uiLength,
UInt ruiVal 
)

Definition at line 1652 of file TDecSbac.cpp.

Void TDecCavlc::parseScalingList ( TComScalingList scalingList)

decode quantization matrix

Parameters
scalingListquantization matrix information

Definition at line 1946 of file TDecCAVLC.cpp.

Void TDecCavlc::parseShortTermRefPicSet ( TComSPS pcSPS,
TComReferencePictureSet pcRPS,
Int  idx 
)
protected

Definition at line 91 of file TDecCAVLC.cpp.

Void TDecCavlc::parseSkipFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1701 of file TDecCAVLC.cpp.

Void TDecSbac::parseSkipFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

parse skip flag

Parameters
pcCU
uiAbsPartIdx
uiDepth
Returns
Void

Implements TDecEntropyIf.

Definition at line 419 of file TDecSbac.cpp.

Void TDecCavlc::parseSliceHeader ( TComSlice pcSlice,
ParameterSetManager parameterSetManager,
const Int  prevTid0POC 
)
virtual

KS: need to add error handling code here, if PPS is not available

KS: need to add error handling code here, if SPS is not available

Implements TDecEntropyIf.

Definition at line 957 of file TDecCAVLC.cpp.

Void TDecCavlc::parseSplitFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 1716 of file TDecCAVLC.cpp.

Void TDecSbac::parseSplitFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TDecEntropyIf.

Definition at line 510 of file TDecSbac.cpp.

Void TDecCavlc::parseSPS ( TComSPS pcSPS)
virtual

Implements TDecEntropyIf.

Definition at line 590 of file TDecCAVLC.cpp.

Void TDecCavlc::parseTerminatingBit ( UInt ruiBit)
virtual

Implements TDecEntropyIf.

Definition at line 1666 of file TDecCAVLC.cpp.

Void TDecSbac::parseTerminatingBit ( UInt ruiBit)
virtual

Implements TDecEntropyIf.

Definition at line 171 of file TDecSbac.cpp.

Void TDecCavlc::parseTransformSkipFlags ( class TComTU rTu,
ComponentID  component 
)
virtual

Implements TDecEntropyIf.

Definition at line 1804 of file TDecCAVLC.cpp.

Void TDecSbac::parseTransformSkipFlags ( class TComTU rTu,
ComponentID  component 
)
virtual

Implements TDecEntropyIf.

Definition at line 1101 of file TDecSbac.cpp.

Void TDecCavlc::parseTransformSubdivFlag ( UInt ruiSubdivFlag,
UInt  uiLog2TransformBlockSize 
)
virtual

Implements TDecEntropyIf.

Definition at line 1789 of file TDecCAVLC.cpp.

Void TDecSbac::parseTransformSubdivFlag ( UInt ruiSubdivFlag,
UInt  uiLog2TransformBlockSize 
)
virtual

Implements TDecEntropyIf.

Definition at line 902 of file TDecSbac.cpp.

Void TDecCavlc::parseVPS ( TComVPS pcVPS)
virtual

Implements TDecEntropyIf.

Definition at line 862 of file TDecCAVLC.cpp.

Void TDecCavlc::parseVUI ( TComVUI pcVUI,
TComSPS pcSPS 
)

Definition at line 417 of file TDecCAVLC.cpp.

Void read ( InputNALUnit nalu)

create a NALunit structure with given header values and storage for a bitstream

Definition at line 175 of file NALread.cpp.

Void readNalUnitHeader ( InputNALUnit nalu)

Definition at line 129 of file NALread.cpp.

Void TDecSbac::resetEntropy ( TComSlice pSlice)
virtual

Implements TDecEntropyIf.

Definition at line 110 of file TDecSbac.cpp.

Void SEIReader::sei_read_scode ( std::ostream *  pOS,
UInt  uiLength,
Int ruiCode,
const TChar pSymbolName 
)
protected

Definition at line 65 of file SEIread.cpp.

Void TDecEntropy::setEntropyDecoder ( TDecEntropyIf p)

Definition at line 51 of file TDecEntropy.cpp.

Void TDecBinCABAC::start ( )
virtual

Implements TDecBinIf.

Definition at line 69 of file TDecBinCoderCABAC.cpp.

TDecBinCABAC::TDecBinCABAC ( )

Definition at line 47 of file TDecBinCoderCABAC.cpp.

TDecCavlc::TDecCavlc ( )

Definition at line 78 of file TDecCAVLC.cpp.

TDecCu::TDecCu ( )

Definition at line 49 of file TDecCu.cpp.

TDecSbac::TDecSbac ( )

Definition at line 62 of file TDecSbac.cpp.

TDecSlice::TDecSlice ( )

Definition at line 48 of file TDecSlice.cpp.

TDecTop::TDecTop ( )

Buffered up prefix SEI NAL Units.

Definition at line 45 of file TDecTop.cpp.

Void TDecBinCABAC::uninit ( )
virtual

Implements TDecBinIf.

Definition at line 63 of file TDecBinCoderCABAC.cpp.

Void TDecSbac::xCopyContextsFrom ( const TDecSbac pSrc)
  • Initialize our contexts from the nominated source.
Parameters
pSrcContexts to be copied.

Definition at line 1836 of file TDecSbac.cpp.

Void TDecSbac::xCopyFrom ( const TDecSbac pSrc)

Definition at line 1842 of file TDecSbac.cpp.

Void TDecCu::xCopyToPic ( TComDataCU pcCU,
TComPic pcPic,
UInt  uiZorderIdx,
UInt  uiDepth 
)
protected

Definition at line 751 of file TDecCu.cpp.

Void TDecCu::xDecodeCU ( TComDataCU *const  pcCU,
const UInt  uiAbsPartIdx,
const UInt  uiDepth,
Bool isLastCtuOfSliceSegment 
)
protected

decode CU block recursively

Definition at line 189 of file TDecCu.cpp.

Void TDecCu::xDecodeInterTexture ( TComDataCU pcCU,
UInt  uiDepth 
)
protected

Definition at line 760 of file TDecCu.cpp.

Void TDecCu::xDecodePCMTexture ( TComDataCU pcCU,
const UInt  uiPartIdx,
const Pel piPCM,
Pel piReco,
const UInt  uiStride,
const UInt  uiWidth,
const UInt  uiHeight,
const ComponentID  compID 
)
protected

Function for deriving reconstructed luma/chroma samples of a PCM mode CU.

Parameters
pcCUpointer to current CU
uiPartIdxpart index
piPCMpointer to PCM code arrays
piRecopointer to reconstructed sample arrays
uiStridestride of reconstructed sample arrays
uiWidthCU width
uiHeightCU height
compIDcolour component ID
Returns
Void

Definition at line 787 of file TDecCu.cpp.

Void TDecCavlc::xDecodeScalingList ( TComScalingList scalingList,
UInt  sizeId,
UInt  listId 
)

decode DPCM

Parameters
scalingListquantization matrix information
sizeIdsize index
listIdlist index

Definition at line 2003 of file TDecCAVLC.cpp.

Bool TDecCu::xDecodeSliceEnd ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
protected

decode end-of-slice flag

Definition at line 172 of file TDecCu.cpp.

Void TDecCu::xDecompressCU ( TComDataCU pCtu,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
protected

Definition at line 359 of file TDecCu.cpp.

Void TDecCu::xFillPCMBuffer ( TComDataCU pCU,
UInt  depth 
)
protected

Function for filling the PCM buffer of a CU using its reconstructed sample array

Parameters
pCUpointer to current CU
depthCU Depth

Definition at line 832 of file TDecCu.cpp.

Void TDecCu::xFinishDecodeCU ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth,
Bool isLastCtuOfSliceSegment 
)
protected

Definition at line 344 of file TDecCu.cpp.

Void TDecCu::xIntraRecBlk ( TComYuv pcRecoYuv,
TComYuv pcPredYuv,
TComYuv pcResiYuv,
const ComponentID  component,
TComTU rTu 
)
protected

Definition at line 483 of file TDecCu.cpp.

Void TDecCu::xIntraRecQT ( TComYuv pcRecoYuv,
TComYuv pcPredYuv,
TComYuv pcResiYuv,
const ChannelType  chType,
TComTU rTu 
)
protected

Function for deriving reconstructed PU/CU chroma samples with QTree structure

Parameters
pcRecoYuvpointer to reconstructed sample arrays
pcPredYuvpointer to prediction sample arrays
pcResiYuvpointer to residue sample arrays
chTypetexture channel type (luma/chroma)
rTureference to transform data

\ This function derives reconstructed PU/CU chroma samples with QTree recursive structure

Definition at line 716 of file TDecCu.cpp.

Bool TDecCavlc::xMoreRbspData ( )
protected

Definition at line 2027 of file TDecCAVLC.cpp.

Void TDecCavlc::xParsePredWeightTable ( TComSlice pcSlice,
const TComSPS sps 
)

parse explicit wp tables

Definition at line 1824 of file TDecCAVLC.cpp.

Void SyntaxElementParser::xReadCode ( UInt  length,
UInt val 
)
protected

Definition at line 140 of file SyntaxElementParser.cpp.

Void TDecSbac::xReadCoefRemainExGolomb ( UInt rSymbol,
UInt rParam,
const Bool  useLimitedPrefixLength,
const Int  maxLog2TrDynamicRange 
)
private

Parsing of coeff_abs_level_remaing

Parameters
rSymbolreference to coeff_abs_level_remaing
rParamreference to parameter
useLimitedPrefixLength
maxLog2TrDynamicRange

Definition at line 303 of file TDecSbac.cpp.

Void TDecSbac::xReadEpExGolomb ( UInt ruiSymbol,
UInt  uiCount 
)
private

Definition at line 246 of file TDecSbac.cpp.

Void SyntaxElementParser::xReadFlag ( UInt val)
protected

Definition at line 255 of file SyntaxElementParser.cpp.

Void TDecBinCABAC::xReadPCMCode ( UInt  uiLength,
UInt ruiCode 
)
virtual

Read a PCM code.

Parameters
uiLengthcode bit-depth
ruiCodepointer to PCM code value
Returns
Void

Implements TDecBinIf.

Definition at line 375 of file TDecBinCoderCABAC.cpp.

Void SyntaxElementParser::xReadRbspTrailingBits ( )
protected

Definition at line 270 of file SyntaxElementParser.cpp.

Void SyntaxElementParser::xReadSCode ( UInt  length,
Int val 
)
protected

Definition at line 104 of file SyntaxElementParser.cpp.

Void SyntaxElementParser::xReadSvlc ( Int val)
protected

Definition at line 210 of file SyntaxElementParser.cpp.

Void TDecSbac::xReadUnaryMaxSymbol ( UInt ruiSymbol,
ContextModel pcSCModel,
Int  iOffset,
UInt  uiMaxSymbol 
)
private

Definition at line 210 of file TDecSbac.cpp.

Void TDecSbac::xReadUnarySymbol ( UInt ruiSymbol,
ContextModel pcSCModel,
Int  iOffset 
)
private

Definition at line 271 of file TDecSbac.cpp.

Void SyntaxElementParser::xReadUvlc ( UInt val)
protected

Definition at line 166 of file SyntaxElementParser.cpp.

Void TDecCu::xReconInter ( TComDataCU pcCU,
UInt  uiDepth 
)
protected

Definition at line 433 of file TDecCu.cpp.

Void TDecCu::xReconIntraQT ( TComDataCU pcCU,
UInt  uiDepth 
)
protected

Definition at line 679 of file TDecCu.cpp.

Void TDecCu::xReconPCM ( TComDataCU pcCU,
UInt  uiDepth 
)
protected

Function for reconstructing a PCM mode CU.

Parameters
pcCUpointer to current CU
uiDepthCU Depth
Returns
Void

Definition at line 812 of file TDecCu.cpp.

TDecBinCABAC::~TDecBinCABAC ( )
virtual

Definition at line 52 of file TDecBinCoderCABAC.cpp.

TDecCavlc::~TDecCavlc ( )
virtual

Definition at line 82 of file TDecCAVLC.cpp.

TDecCu::~TDecCu ( )
virtual

Definition at line 56 of file TDecCu.cpp.

TDecSbac::~TDecSbac ( )
virtual

Definition at line 102 of file TDecSbac.cpp.

TDecSlice::~TDecSlice ( )
virtual

Definition at line 52 of file TDecSlice.cpp.