HEVC Test Model (HM)  HM-16.3
Public Member Functions | Protected Attributes | List of all members
TEncCavlc Class Reference

CAVLC encoder class. More...

#include <TEncCavlc.h>

Inheritance diagram for TEncCavlc:
Inheritance graph
[legend]
Collaboration diagram for TEncCavlc:
Collaboration graph
[legend]

Public Member Functions

SliceType determineCabacInitIdx ()
 
Void setBitstream (TComBitIf *p)
 
Void setSlice (TComSlice *p)
 
Void resetBits ()
 
UInt getNumberOfWrittenBits ()
 
Void codeSAOBlkParam (SAOBlkParam &saoBlkParam, Bool *sliceEnabled, Bool leftMergeAvail, Bool aboveMergeAvail, Bool onlyEstMergeInfo=false)
 
Void codeAlfCtrlFlag (ComponentID component, UInt code)
 
- Public Member Functions inherited from TEncEntropyIf
virtual ~TEncEntropyIf ()
 

Protected Attributes

TComSlicem_pcSlice
 
- Protected Attributes inherited from SyntaxElementWriter
TComBitIfm_pcBitIf
 
 TEncCavlc ()
 
virtual ~TEncCavlc ()
 
Void resetEntropy ()
 
Void codeVPS (const TComVPS *pcVPS)
 
Void codeVUI (const TComVUI *pcVUI, const TComSPS *pcSPS)
 
Void codeSPS (const TComSPS *pcSPS)
 
Void codePPS (const TComPPS *pcPPS)
 
Void codeSliceHeader (TComSlice *pcSlice)
 
Void codePTL (const TComPTL *pcPTL, Bool profilePresentFlag, Int maxNumSubLayersMinus1)
 
Void codeProfileTier (const ProfileTierLevel *ptl, const Bool bIsSubLayer)
 
Void codeHrdParameters (const TComHRD *hrd, Bool commonInfPresentFlag, UInt maxNumSubLayersMinus1)
 
Void codeTilesWPPEntryPoint (TComSlice *pSlice)
 
Void codeTerminatingBit (UInt uilsLast)
 
Void codeSliceFinish ()
 
Void codeMVPIdx (TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefList)
 
Void codeCUTransquantBypassFlag (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeSkipFlag (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeMergeFlag (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeMergeIndex (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeInterModeFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiEncMode)
 
Void codeSplitFlag (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void codePartSize (TComDataCU *pcCU, UInt uiAbsPartIdx, UInt uiDepth)
 
Void codePredMode (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeIPCMInfo (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeTransformSubdivFlag (UInt uiSymbol, UInt uiCtx)
 
Void codeQtCbf (TComTU &rTu, const ComponentID compID, const Bool lowestLevel)
 
Void codeQtRootCbf (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeQtCbfZero (TComTU &rTu, const ChannelType chType)
 
Void codeQtRootCbfZero (TComDataCU *pcCU)
 
Void codeIntraDirLumaAng (TComDataCU *pcCU, UInt absPartIdx, Bool isMultiple)
 
Void codeIntraDirChroma (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeInterDir (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeRefFrmIdx (TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefList)
 
Void codeMvd (TComDataCU *pcCU, UInt uiAbsPartIdx, RefPicList eRefList)
 
Void codeCrossComponentPrediction (TComTU &rTu, ComponentID compID)
 
Void codeDeltaQP (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeChromaQpAdjustment (TComDataCU *pcCU, UInt uiAbsPartIdx)
 
Void codeCoeffNxN (TComTU &rTu, TCoeff *pcCoef, const ComponentID compID)
 
Void codeTransformSkipFlags (TComTU &rTu, ComponentID component)
 
Void estBit (estBitsSbacStruct *pcEstBitsSbac, Int width, Int height, ChannelType chType)
 
Void xCodePredWeightTable (TComSlice *pcSlice)
 Code weighted prediction tables. More...
 
Void codeScalingList (const TComScalingList &scalingList)
 
Void xCodeScalingList (const TComScalingList *scalingList, UInt sizeId, UInt listId)
 
Void codeDFFlag (UInt uiCode, const Char *pSymbolName)
 
Void codeDFSvlc (Int iCode, const Char *pSymbolName)
 
Void codeExplicitRdpcmMode (TComTU &rTu, const ComponentID compID)
 
Void codeShortTermRefPicSet (const TComReferencePictureSet *pcRPS, Bool calledFromSliceHeader, Int idx)
 
Bool findMatchingLTRP (TComSlice *pcSlice, UInt *ltrpsIndex, Int ltrpPOC, Bool usedFlag)
 

Additional Inherited Members

- Protected Member Functions inherited from SyntaxElementWriter
 SyntaxElementWriter ()
 
virtual ~SyntaxElementWriter ()
 
Void setBitstream (TComBitIf *p)
 
UInt xConvertToUInt (Int iValue)
 
Void xWriteCode (UInt uiCode, UInt uiLength)
 
Void xWriteUvlc (UInt uiCode)
 
Void xWriteSvlc (Int iCode)
 
Void xWriteFlag (UInt uiCode)
 
Void xWriteCodeTr (UInt value, UInt length, const Char *pSymbolName)
 
Void xWriteUvlcTr (UInt value, const Char *pSymbolName)
 
Void xWriteSvlcTr (Int value, const Char *pSymbolName)
 
Void xWriteFlagTr (UInt value, const Char *pSymbolName)
 

Detailed Description

CAVLC encoder class.

Definition at line 61 of file TEncCavlc.h.

Constructor & Destructor Documentation

TEncCavlc::TEncCavlc ( )

Definition at line 70 of file TEncCavlc.cpp.

TEncCavlc::~TEncCavlc ( )
virtual

Definition at line 75 of file TEncCavlc.cpp.

Member Function Documentation

Void TEncCavlc::codeAlfCtrlFlag ( ComponentID  component,
UInt  code 
)
inline

Definition at line 101 of file TEncCavlc.h.

Void TEncCavlc::codeChromaQpAdjustment ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1324 of file TEncCavlc.cpp.

Void TEncCavlc::codeCoeffNxN ( TComTU rTu,
TCoeff pcCoef,
const ComponentID  compID 
)
virtual

Implements TEncEntropyIf.

Definition at line 1329 of file TEncCavlc.cpp.

Void TEncCavlc::codeCrossComponentPrediction ( TComTU rTu,
ComponentID  compID 
)
virtual

Implements TEncEntropyIf.

Definition at line 1307 of file TEncCavlc.cpp.

Void TEncCavlc::codeCUTransquantBypassFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1228 of file TEncCavlc.cpp.

Void TEncCavlc::codeDeltaQP ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1312 of file TEncCavlc.cpp.

Void TEncCavlc::codeDFFlag ( UInt  uiCode,
const Char pSymbolName 
)
virtual

Implements TEncEntropyIf.

Definition at line 89 of file TEncCavlc.cpp.

Void TEncCavlc::codeDFSvlc ( Int  iCode,
const Char pSymbolName 
)
virtual

Implements TEncEntropyIf.

Definition at line 93 of file TEncCavlc.cpp.

Void TEncCavlc::codeExplicitRdpcmMode ( TComTU rTu,
const ComponentID  compID 
)
virtual

Implements TEncEntropyIf.

Definition at line 1508 of file TEncCavlc.cpp.

Void TEncCavlc::codeHrdParameters ( const TComHRD hrd,
Bool  commonInfPresentFlag,
UInt  maxNumSubLayersMinus1 
)

Definition at line 396 of file TEncCavlc.cpp.

Void TEncCavlc::codeInterDir ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1292 of file TEncCavlc.cpp.

Void TEncCavlc::codeInterModeFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth,
UInt  uiEncMode 
)

Definition at line 1223 of file TEncCavlc.cpp.

Void TEncCavlc::codeIntraDirChroma ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1287 of file TEncCavlc.cpp.

Void TEncCavlc::codeIntraDirLumaAng ( TComDataCU pcCU,
UInt  absPartIdx,
Bool  isMultiple 
)
virtual

Implements TEncEntropyIf.

Definition at line 1282 of file TEncCavlc.cpp.

Void TEncCavlc::codeIPCMInfo ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Code I_PCM information.

Parameters
pcCUpointer to CU
uiAbsPartIdxCU index
Returns
Void

Implements TEncEntropyIf.

Definition at line 1277 of file TEncCavlc.cpp.

Void TEncCavlc::codeMergeFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1213 of file TEncCavlc.cpp.

Void TEncCavlc::codeMergeIndex ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1218 of file TEncCavlc.cpp.

Void TEncCavlc::codeMvd ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
RefPicList  eRefList 
)
virtual

Implements TEncEntropyIf.

Definition at line 1302 of file TEncCavlc.cpp.

Void TEncCavlc::codeMVPIdx ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
RefPicList  eRefList 
)
virtual

Implements TEncEntropyIf.

Definition at line 1198 of file TEncCavlc.cpp.

Void TEncCavlc::codePartSize ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TEncEntropyIf.

Definition at line 1203 of file TEncCavlc.cpp.

Void TEncCavlc::codePPS ( const TComPPS pcPPS)
virtual

Implements TEncEntropyIf.

Definition at line 155 of file TEncCavlc.cpp.

Void TEncCavlc::codePredMode ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1208 of file TEncCavlc.cpp.

Void TEncCavlc::codeProfileTier ( const ProfileTierLevel ptl,
const Bool  bIsSubLayer 
)

Definition at line 1102 of file TEncCavlc.cpp.

Void TEncCavlc::codePTL ( const TComPTL pcPTL,
Bool  profilePresentFlag,
Int  maxNumSubLayersMinus1 
)

Definition at line 1066 of file TEncCavlc.cpp.

Void TEncCavlc::codeQtCbf ( TComTU rTu,
const ComponentID  compID,
const Bool  lowestLevel 
)
virtual

Implements TEncEntropyIf.

Definition at line 1248 of file TEncCavlc.cpp.

Void TEncCavlc::codeQtCbfZero ( TComTU rTu,
const ChannelType  chType 
)
virtual

Implements TEncEntropyIf.

Definition at line 1258 of file TEncCavlc.cpp.

Void TEncCavlc::codeQtRootCbf ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1253 of file TEncCavlc.cpp.

Void TEncCavlc::codeQtRootCbfZero ( TComDataCU pcCU)
virtual

Implements TEncEntropyIf.

Definition at line 1262 of file TEncCavlc.cpp.

Void TEncCavlc::codeRefFrmIdx ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
RefPicList  eRefList 
)
virtual

Implements TEncEntropyIf.

Definition at line 1297 of file TEncCavlc.cpp.

Void TEncCavlc::codeSAOBlkParam ( SAOBlkParam saoBlkParam,
Bool sliceEnabled,
Bool  leftMergeAvail,
Bool  aboveMergeAvail,
Bool  onlyEstMergeInfo = false 
)
inlinevirtual

Implements TEncEntropyIf.

Definition at line 95 of file TEncCavlc.h.

Void TEncCavlc::codeScalingList ( const TComScalingList scalingList)

code quantization matrix

Parameters
scalingListquantization matrix information

Definition at line 1429 of file TEncCavlc.cpp.

Void TEncCavlc::codeShortTermRefPicSet ( const TComReferencePictureSet pcRPS,
Bool  calledFromSliceHeader,
Int  idx 
)
protected

Definition at line 98 of file TEncCavlc.cpp.

Void TEncCavlc::codeSkipFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1233 of file TEncCavlc.cpp.

Void TEncCavlc::codeSliceFinish ( )
virtual

Implements TEncEntropyIf.

Definition at line 1194 of file TEncCavlc.cpp.

Void TEncCavlc::codeSliceHeader ( TComSlice pcSlice)
virtual

Implements TEncEntropyIf.

Definition at line 719 of file TEncCavlc.cpp.

Void TEncCavlc::codeSplitFlag ( TComDataCU pcCU,
UInt  uiAbsPartIdx,
UInt  uiDepth 
)
virtual

Implements TEncEntropyIf.

Definition at line 1238 of file TEncCavlc.cpp.

Void TEncCavlc::codeSPS ( const TComSPS pcSPS)
virtual

Implements TEncEntropyIf.

Definition at line 467 of file TEncCavlc.cpp.

Void TEncCavlc::codeTerminatingBit ( UInt  uilsLast)
virtual

Implements TEncEntropyIf.

Definition at line 1190 of file TEncCavlc.cpp.

Void TEncCavlc::codeTilesWPPEntryPoint ( TComSlice pSlice)
virtual

Write tiles and wavefront substreams sizes for the slice header (entry points).

Parameters
pSliceTComSlice structure that contains the substream size information.

Implements TEncEntropyIf.

Definition at line 1154 of file TEncCavlc.cpp.

Void TEncCavlc::codeTransformSkipFlags ( TComTU rTu,
ComponentID  component 
)
virtual

Implements TEncEntropyIf.

Definition at line 1267 of file TEncCavlc.cpp.

Void TEncCavlc::codeTransformSubdivFlag ( UInt  uiSymbol,
UInt  uiCtx 
)
virtual

Implements TEncEntropyIf.

Definition at line 1243 of file TEncCavlc.cpp.

Void TEncCavlc::codeVPS ( const TComVPS pcVPS)
virtual

Implements TEncEntropyIf.

Definition at line 647 of file TEncCavlc.cpp.

Void TEncCavlc::codeVUI ( const TComVUI pcVUI,
const TComSPS pcSPS 
)

Definition at line 310 of file TEncCavlc.cpp.

SliceType TEncCavlc::determineCabacInitIdx ( )
inlinevirtual

Implements TEncEntropyIf.

Definition at line 76 of file TEncCavlc.h.

Void TEncCavlc::estBit ( estBitsSbacStruct pcEstBitsSbac,
Int  width,
Int  height,
ChannelType  chType 
)
virtual

Implements TEncEntropyIf.

Definition at line 1334 of file TEncCavlc.cpp.

Bool TEncCavlc::findMatchingLTRP ( TComSlice pcSlice,
UInt ltrpsIndex,
Int  ltrpPOC,
Bool  usedFlag 
)
protected

Definition at line 1493 of file TEncCavlc.cpp.

UInt TEncCavlc::getNumberOfWrittenBits ( )
inlinevirtual

Implements TEncEntropyIf.

Definition at line 81 of file TEncCavlc.h.

Void TEncCavlc::resetBits ( )
inlinevirtual

Implements TEncEntropyIf.

Definition at line 80 of file TEncCavlc.h.

Void TEncCavlc::resetEntropy ( )
virtual

Implements TEncEntropyIf.

Definition at line 84 of file TEncCavlc.cpp.

Void TEncCavlc::setBitstream ( TComBitIf p)
inlinevirtual

Implements TEncEntropyIf.

Definition at line 78 of file TEncCavlc.h.

Void TEncCavlc::setSlice ( TComSlice p)
inlinevirtual

Implements TEncEntropyIf.

Definition at line 79 of file TEncCavlc.h.

Void TEncCavlc::xCodePredWeightTable ( TComSlice pcSlice)

Code weighted prediction tables.

Definition at line 1345 of file TEncCavlc.cpp.

Void TEncCavlc::xCodeScalingList ( const TComScalingList scalingList,
UInt  sizeId,
UInt  listId 
)

code DPCM

Parameters
scalingListquantization matrix information
sizeIdsize index
listIdlist index

Definition at line 1465 of file TEncCavlc.cpp.

Member Data Documentation

TComSlice* TEncCavlc::m_pcSlice
protected

Definition at line 68 of file TEncCavlc.h.


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