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

decoder class More...

#include <TDecTop.h>

Collaboration diagram for TDecTop:
Collaboration graph
[legend]

Public Member Functions

Void setDecodedPictureHashSEIEnabled (Int enabled)
 
Void setTMctsCheckEnabled (Bool enabled)
 
Bool getNoOutputPriorPicsFlag ()
 
Void setNoOutputPriorPicsFlag (Bool val)
 
Void setFirstSliceInPicture (bool val)
 
Bool getFirstSliceInSequence ()
 
Void setFirstSliceInSequence (bool val)
 
Void setDecodedSEIMessageOutputStream (std::ostream *pOpStream)
 
UInt getNumberOfChecksumErrorsDetected () const
 

Protected Member Functions

Void xUpdatePreviousTid0POC (TComSlice *pSlice)
 

Private Attributes

Int m_iMaxRefPicNum
 
NalUnitType m_associatedIRAPType
 NAL unit type of the associated IRAP picture. More...
 
Int m_pocCRA
 POC number of the latest CRA picture. More...
 
Int m_pocRandomAccess
 POC number of the random access point (the first IDR or CRA picture) More...
 
TComList< TComPic * > m_cListPic
 
ParameterSetManager m_parameterSetManager
 
TComSlicem_apcSlicePilot
 
SEIMessages m_SEIs
 List of SEI messages that have been received before the first slice and between slices, excluding prefix SEIs... More...
 
TComPrediction m_cPrediction
 
TComTrQuant m_cTrQuant
 
TDecGop m_cGopDecoder
 
TDecSlice m_cSliceDecoder
 
TDecCu m_cCuDecoder
 
TDecEntropy m_cEntropyDecoder
 
TDecCavlc m_cCavlcDecoder
 
TDecSbac m_cSbacDecoder
 
TDecBinCABAC m_cBinCABAC
 
SEIReader m_seiReader
 
TComLoopFilter m_cLoopFilter
 
TComSampleAdaptiveOffset m_cSAO
 
TDecConformanceCheck m_conformanceCheck
 
TComPicm_pcPic
 
UInt m_uiSliceIdx
 
Int m_prevPOC
 
Int m_prevTid0POC
 
Bool m_bFirstSliceInPicture
 
Bool m_bFirstSliceInSequence
 
Bool m_prevSliceSkipped
 
Int m_skippedPOC
 
Bool m_bFirstSliceInBitstream
 
Int m_lastPOCNoOutputPriorPics
 
Bool m_isNoOutputPriorPics
 
Bool m_craNoRaslOutputFlag
 
std::ostream * m_pDecodedSEIOutputStream
 
Bool m_warningMessageSkipPicture
 
Bool m_tmctsCheckEnabled
 
std::list< InputNALUnit * > m_prefixSEINALUs
 
Bool isSkipPictureForBLA (Int &iPOCLastDisplay)
 
Bool isRandomAccessSkipPicture (Int &iSkipFrame, Int &iPOCLastDisplay)
 
 TDecTop ()
 Buffered up prefix SEI NAL Units. More...
 
virtual ~TDecTop ()
 
Void create ()
 
Void destroy ()
 
Void init ()
 
Bool decode (InputNALUnit &nalu, Int &iSkipFrame, Int &iPOCLastDisplay)
 
Void deletePicBuffer ()
 
Void executeLoopFilters (Int &poc, TComList< TComPic * > *&rpcListPic)
 
Void checkNoOutputPriorPics (TComList< TComPic * > *rpcListPic)
 
Void xGetNewPicBuffer (const TComSPS &sps, const TComPPS &pps, TComPic *&rpcPic, const UInt temporalLayer)
 
Void xCreateLostPicture (Int iLostPOC)
 
Void xActivateParameterSets ()
 
Bool xDecodeSlice (InputNALUnit &nalu, Int &iSkipFrame, Int iPOCLastDisplay)
 
Void xDecodeVPS (const std::vector< UChar > &naluData)
 
Void xDecodeSPS (const std::vector< UChar > &naluData)
 
Void xDecodePPS (const std::vector< UChar > &naluData)
 
Void xParsePrefixSEImessages ()
 
Void xAnalysePrefixSEImessages ()
 
Void xParsePrefixSEIsForUnknownVCLNal ()
 

Detailed Description

decoder class

Definition at line 66 of file TDecTop.h.

Constructor & Destructor Documentation

TDecTop::~TDecTop ( )
virtual

Definition at line 97 of file TDecTop.cpp.

Member Function Documentation

Void TDecTop::checkNoOutputPriorPics ( TComList< TComPic * > *  rpcListPic)

Definition at line 242 of file TDecTop.cpp.

Void TDecTop::create ( )

Definition at line 112 of file TDecTop.cpp.

Bool TDecTop::decode ( InputNALUnit nalu,
Int iSkipFrame,
Int iPOCLastDisplay 
)

Definition at line 778 of file TDecTop.cpp.

Void TDecTop::deletePicBuffer ( )

Definition at line 142 of file TDecTop.cpp.

Void TDecTop::destroy ( )

Definition at line 119 of file TDecTop.cpp.

Void TDecTop::executeLoopFilters ( Int poc,
TComList< TComPic * > *&  rpcListPic 
)

Definition at line 219 of file TDecTop.cpp.

Bool TDecTop::getFirstSliceInSequence ( )
inline

Definition at line 145 of file TDecTop.h.

Bool TDecTop::getNoOutputPriorPicsFlag ( )
inline

Definition at line 142 of file TDecTop.h.

UInt TDecTop::getNumberOfChecksumErrorsDetected ( ) const
inline

Definition at line 151 of file TDecTop.h.

Void TDecTop::init ( )

Definition at line 129 of file TDecTop.cpp.

Bool TDecTop::isRandomAccessSkipPicture ( Int iSkipFrame,
Int iPOCLastDisplay 
)
private

Function for checking if picture should be skipped because of random access

Parameters
iSkipFrameskip frame counter
iPOCLastDisplayPOC of last picture displayed
Returns
true if the picture shold be skipped in the random access. This function checks the skipping of pictures in the case of -s option random access. All pictures prior to the random access point indicated by the counter iSkipFrame are skipped. It also checks the type of Nal unit type at the random access point. If the random access point is CRA/CRANT/BLA/BLANT, TFD pictures with POC less than the POC of the random access point are skipped. If the random access point is IDR all pictures after the random access point are decoded. If the random access point is none of the above, a warning is issues, and decoding of pictures with POC equal to or greater than the random access point POC is attempted. For non IDR/CRA/BLA random access point there is no guarantee that the decoder will not crash.

Definition at line 956 of file TDecTop.cpp.

Bool TDecTop::isSkipPictureForBLA ( Int iPOCLastDisplay)
private

Function for checking if picture should be skipped because of association with a previous BLA picture

Parameters
iPOCLastDisplayPOC of last picture displayed
Returns
true if the picture should be skipped This function skips all TFD pictures that follow a BLA picture in decoding order and precede it in output order.

Definition at line 932 of file TDecTop.cpp.

Void TDecTop::setDecodedPictureHashSEIEnabled ( Int  enabled)
inline

Definition at line 129 of file TDecTop.h.

Void TDecTop::setDecodedSEIMessageOutputStream ( std::ostream *  pOpStream)
inline

Definition at line 150 of file TDecTop.h.

Void TDecTop::setFirstSliceInPicture ( bool  val)
inline

Definition at line 144 of file TDecTop.h.

Void TDecTop::setFirstSliceInSequence ( bool  val)
inline

Definition at line 146 of file TDecTop.h.

Void TDecTop::setNoOutputPriorPicsFlag ( Bool  val)
inline

Definition at line 143 of file TDecTop.h.

Void TDecTop::setTMctsCheckEnabled ( Bool  enabled)
inline

Definition at line 131 of file TDecTop.h.

Void TDecTop::xActivateParameterSets ( )
protected

Definition at line 306 of file TDecTop.cpp.

Void TDecTop::xAnalysePrefixSEImessages ( )
protected

Definition at line 463 of file TDecTop.cpp.

Void TDecTop::xCreateLostPicture ( Int  iLostPOC)
protected

Definition at line 261 of file TDecTop.cpp.

Void TDecTop::xDecodePPS ( const std::vector< UChar > &  naluData)
protected

Definition at line 771 of file TDecTop.cpp.

Bool TDecTop::xDecodeSlice ( InputNALUnit nalu,
Int iSkipFrame,
Int  iPOCLastDisplay 
)
protected

Definition at line 486 of file TDecTop.cpp.

Void TDecTop::xDecodeSPS ( const std::vector< UChar > &  naluData)
protected

Definition at line 761 of file TDecTop.cpp.

Void TDecTop::xDecodeVPS ( const std::vector< UChar > &  naluData)
protected

Definition at line 753 of file TDecTop.cpp.

Void TDecTop::xGetNewPicBuffer ( const TComSPS sps,
const TComPPS pps,
TComPic *&  rpcPic,
const UInt  temporalLayer 
)
protected

Definition at line 164 of file TDecTop.cpp.

Void TDecTop::xParsePrefixSEImessages ( )
protected

Definition at line 451 of file TDecTop.cpp.

Void TDecTop::xParsePrefixSEIsForUnknownVCLNal ( )
protected

Definition at line 439 of file TDecTop.cpp.

Void TDecTop::xUpdatePreviousTid0POC ( TComSlice pSlice)
inlineprotected

Definition at line 162 of file TDecTop.h.

Member Data Documentation

TComSlice* TDecTop::m_apcSlicePilot
private

Definition at line 77 of file TDecTop.h.

NalUnitType TDecTop::m_associatedIRAPType
private

NAL unit type of the associated IRAP picture.

Definition at line 71 of file TDecTop.h.

Bool TDecTop::m_bFirstSliceInBitstream
private

Definition at line 106 of file TDecTop.h.

Bool TDecTop::m_bFirstSliceInPicture
private

Definition at line 102 of file TDecTop.h.

Bool TDecTop::m_bFirstSliceInSequence
private

Definition at line 103 of file TDecTop.h.

TDecBinCABAC TDecTop::m_cBinCABAC
private

Definition at line 90 of file TDecTop.h.

TDecCavlc TDecTop::m_cCavlcDecoder
private

Definition at line 88 of file TDecTop.h.

TDecCu TDecTop::m_cCuDecoder
private

Definition at line 86 of file TDecTop.h.

TDecEntropy TDecTop::m_cEntropyDecoder
private

Definition at line 87 of file TDecTop.h.

TDecGop TDecTop::m_cGopDecoder
private

Definition at line 84 of file TDecTop.h.

TComList<TComPic*> TDecTop::m_cListPic
private

Definition at line 75 of file TDecTop.h.

TComLoopFilter TDecTop::m_cLoopFilter
private

Definition at line 92 of file TDecTop.h.

TDecConformanceCheck TDecTop::m_conformanceCheck
private

Definition at line 94 of file TDecTop.h.

TComPrediction TDecTop::m_cPrediction
private

Definition at line 82 of file TDecTop.h.

Bool TDecTop::m_craNoRaslOutputFlag
private

Definition at line 109 of file TDecTop.h.

TComSampleAdaptiveOffset TDecTop::m_cSAO
private

Definition at line 93 of file TDecTop.h.

TDecSbac TDecTop::m_cSbacDecoder
private

Definition at line 89 of file TDecTop.h.

TDecSlice TDecTop::m_cSliceDecoder
private

Definition at line 85 of file TDecTop.h.

TComTrQuant TDecTop::m_cTrQuant
private

Definition at line 83 of file TDecTop.h.

Int TDecTop::m_iMaxRefPicNum
private

Definition at line 69 of file TDecTop.h.

Bool TDecTop::m_isNoOutputPriorPics
private

Definition at line 108 of file TDecTop.h.

Int TDecTop::m_lastPOCNoOutputPriorPics
private

Definition at line 107 of file TDecTop.h.

ParameterSetManager TDecTop::m_parameterSetManager
private

Definition at line 76 of file TDecTop.h.

TComPic* TDecTop::m_pcPic
private

Definition at line 98 of file TDecTop.h.

std::ostream* TDecTop::m_pDecodedSEIOutputStream
private

Definition at line 113 of file TDecTop.h.

Int TDecTop::m_pocCRA
private

POC number of the latest CRA picture.

Definition at line 72 of file TDecTop.h.

Int TDecTop::m_pocRandomAccess
private

POC number of the random access point (the first IDR or CRA picture)

Definition at line 73 of file TDecTop.h.

std::list<InputNALUnit*> TDecTop::m_prefixSEINALUs
private

Definition at line 121 of file TDecTop.h.

Int TDecTop::m_prevPOC
private

Definition at line 100 of file TDecTop.h.

Bool TDecTop::m_prevSliceSkipped
private

Definition at line 104 of file TDecTop.h.

Int TDecTop::m_prevTid0POC
private

Definition at line 101 of file TDecTop.h.

SEIReader TDecTop::m_seiReader
private

Definition at line 91 of file TDecTop.h.

SEIMessages TDecTop::m_SEIs
private

List of SEI messages that have been received before the first slice and between slices, excluding prefix SEIs...

Definition at line 79 of file TDecTop.h.

Int TDecTop::m_skippedPOC
private

Definition at line 105 of file TDecTop.h.

Bool TDecTop::m_tmctsCheckEnabled
private

Definition at line 118 of file TDecTop.h.

UInt TDecTop::m_uiSliceIdx
private

Definition at line 99 of file TDecTop.h.

Bool TDecTop::m_warningMessageSkipPicture
private

Definition at line 115 of file TDecTop.h.


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