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

#include <TComSampleAdaptiveOffset.h>

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

Static Public Member Functions

static Int getMaxOffsetQVal (const Int channelBitDepth)
 

Protected Attributes

UInt m_offsetStepLog2 [MAX_NUM_COMPONENT]
 
TComPicYuvm_tempPicYuv
 
Int m_picWidth
 
Int m_picHeight
 
Int m_maxCUWidth
 
Int m_maxCUHeight
 
Int m_numCTUInWidth
 
Int m_numCTUInHeight
 
Int m_numCTUsPic
 
Int m_lineBufWidth
 
SCharm_signLineBuf1
 
SCharm_signLineBuf2
 
ChromaFormat m_chromaFormatIDC
 

Private Attributes

Bool m_picSAOEnabled [MAX_NUM_COMPONENT]
 
 TComSampleAdaptiveOffset ()
 
virtual ~TComSampleAdaptiveOffset ()
 
Void SAOProcess (TComPic *pDecPic)
 
Void create (Int picWidth, Int picHeight, ChromaFormat format, UInt maxCUWidth, UInt maxCUHeight, UInt maxCUDepth, UInt lumaBitShift, UInt chromaBitShift)
 
Void destroy ()
 
Void reconstructBlkSAOParams (TComPic *pic, SAOBlkParam *saoBlkParams)
 
Void PCMLFDisableProcess (TComPic *pcPic)
 
Void offsetBlock (const Int channelBitDepth, Int typeIdx, Int *offset, Pel *srcBlk, Pel *resBlk, Int srcStride, Int resStride, Int width, Int height, Bool isLeftAvail, Bool isRightAvail, Bool isAboveAvail, Bool isBelowAvail, Bool isAboveLeftAvail, Bool isAboveRightAvail, Bool isBelowLeftAvail, Bool isBelowRightAvail)
 
Void invertQuantOffsets (ComponentID compIdx, Int typeIdc, Int typeAuxInfo, Int *dstOffsets, Int *srcOffsets)
 
Void reconstructBlkSAOParam (SAOBlkParam &recParam, SAOBlkParam *mergeList[NUM_SAO_MERGE_TYPES])
 
Int getMergeList (TComPic *pic, Int ctuRsAddr, SAOBlkParam *blkParams, SAOBlkParam *mergeList[NUM_SAO_MERGE_TYPES])
 
Void offsetCTU (Int ctuRsAddr, TComPicYuv *srcYuv, TComPicYuv *resYuv, SAOBlkParam &saoblkParam, TComPic *pPic)
 
Void xPCMRestoration (TComPic *pcPic)
 
Void xPCMCURestoration (TComDataCU *pcCU, UInt uiAbsZorderIdx, UInt uiDepth)
 
Void xPCMSampleRestoration (TComDataCU *pcCU, UInt uiAbsZorderIdx, UInt uiDepth, const ComponentID compID)
 

Detailed Description

Definition at line 63 of file TComSampleAdaptiveOffset.h.

Constructor & Destructor Documentation

TComSampleAdaptiveOffset::TComSampleAdaptiveOffset ( )

Definition at line 104 of file TComSampleAdaptiveOffset.cpp.

TComSampleAdaptiveOffset::~TComSampleAdaptiveOffset ( )
virtual

Definition at line 113 of file TComSampleAdaptiveOffset.cpp.

Member Function Documentation

Void TComSampleAdaptiveOffset::create ( Int  picWidth,
Int  picHeight,
ChromaFormat  format,
UInt  maxCUWidth,
UInt  maxCUHeight,
UInt  maxCUDepth,
UInt  lumaBitShift,
UInt  chromaBitShift 
)

Definition at line 129 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::destroy ( )

Definition at line 157 of file TComSampleAdaptiveOffset.cpp.

static Int TComSampleAdaptiveOffset::getMaxOffsetQVal ( const Int  channelBitDepth)
inlinestatic

Definition at line 73 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::getMergeList ( TComPic pic,
Int  ctuRsAddr,
SAOBlkParam blkParams,
SAOBlkParam mergeList[NUM_SAO_MERGE_TYPES] 
)
protected

Definition at line 192 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::invertQuantOffsets ( ComponentID  compIdx,
Int  typeIdc,
Int  typeAuxInfo,
Int dstOffsets,
Int srcOffsets 
)
protected

Definition at line 167 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::offsetBlock ( const Int  channelBitDepth,
Int  typeIdx,
Int offset,
Pel srcBlk,
Pel resBlk,
Int  srcStride,
Int  resStride,
Int  width,
Int  height,
Bool  isLeftAvail,
Bool  isRightAvail,
Bool  isAboveAvail,
Bool  isBelowAvail,
Bool  isAboveLeftAvail,
Bool  isAboveRightAvail,
Bool  isBelowLeftAvail,
Bool  isBelowRightAvail 
)
protected

Definition at line 313 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::offsetCTU ( Int  ctuRsAddr,
TComPicYuv srcYuv,
TComPicYuv resYuv,
SAOBlkParam saoblkParam,
TComPic pPic 
)
protected

Definition at line 554 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::PCMLFDisableProcess ( TComPic pcPic)

PCM LF disable process.

Parameters
pcPicpicture (TComPic) pointer
Note
Replace filtered sample values of PCM mode blocks with the transmitted and reconstructed ones.

Definition at line 645 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::reconstructBlkSAOParam ( SAOBlkParam recParam,
SAOBlkParam mergeList[NUM_SAO_MERGE_TYPES] 
)
protected

Definition at line 248 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::reconstructBlkSAOParams ( TComPic pic,
SAOBlkParam saoBlkParams 
)

Definition at line 286 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::SAOProcess ( TComPic pDecPic)

Definition at line 614 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::xPCMCURestoration ( TComDataCU pcCU,
UInt  uiAbsZorderIdx,
UInt  uiDepth 
)
protected

PCM CU restoration.

Parameters
pcCUpointer to current CU
uiAbsZorderIdxpart index
uiDepthCU depth

Definition at line 673 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::xPCMRestoration ( TComPic pcPic)
protected

Picture-level PCM restoration.

Parameters
pcPicpicture (TComPic) pointer

Definition at line 653 of file TComSampleAdaptiveOffset.cpp.

Void TComSampleAdaptiveOffset::xPCMSampleRestoration ( TComDataCU pcCU,
UInt  uiAbsZorderIdx,
UInt  uiDepth,
const ComponentID  compID 
)
protected

PCM sample restoration.

Parameters
pcCUpointer to current CU
uiAbsZorderIdxpart index
uiDepthCU depth
compIDtexture component type

Definition at line 711 of file TComSampleAdaptiveOffset.cpp.

Member Data Documentation

ChromaFormat TComSampleAdaptiveOffset::m_chromaFormatIDC
protected

Definition at line 100 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_lineBufWidth
protected

Definition at line 97 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_maxCUHeight
protected

Definition at line 91 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_maxCUWidth
protected

Definition at line 90 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_numCTUInHeight
protected

Definition at line 93 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_numCTUInWidth
protected

Definition at line 92 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_numCTUsPic
protected

Definition at line 94 of file TComSampleAdaptiveOffset.h.

UInt TComSampleAdaptiveOffset::m_offsetStepLog2[MAX_NUM_COMPONENT]
protected

Definition at line 86 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_picHeight
protected

Definition at line 89 of file TComSampleAdaptiveOffset.h.

Bool TComSampleAdaptiveOffset::m_picSAOEnabled[MAX_NUM_COMPONENT]
private

Definition at line 102 of file TComSampleAdaptiveOffset.h.

Int TComSampleAdaptiveOffset::m_picWidth
protected

Definition at line 88 of file TComSampleAdaptiveOffset.h.

SChar* TComSampleAdaptiveOffset::m_signLineBuf1
protected

Definition at line 98 of file TComSampleAdaptiveOffset.h.

SChar* TComSampleAdaptiveOffset::m_signLineBuf2
protected

Definition at line 99 of file TComSampleAdaptiveOffset.h.

TComPicYuv* TComSampleAdaptiveOffset::m_tempPicYuv
protected

Definition at line 87 of file TComSampleAdaptiveOffset.h.


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