38 #ifndef __TCOMSAMPLEADAPTIVEOFFSET__
39 #define __TCOMSAMPLEADAPTIVEOFFSET__
52 #define MAX_SAO_TRUNCATED_BITDEPTH 10
60 return (T(0) < val) - (val < T(0));
77 ,
Bool isLeftAvail,
Bool isRightAvail,
Bool isAboveAvail,
Bool isBelowAvail,
Bool isAboveLeftAvail,
Bool isAboveRightAvail,
Bool isBelowLeftAvail,
Bool isBelowRightAvail);
Void xPCMCURestoration(TComDataCU *pcCU, UInt uiAbsZorderIdx, UInt uiDepth)
picture class (symbol + YUV buffers)
Defines version information, constants and small in-line functions.
ChromaFormat m_chromaFormatIDC
Bool m_picSAOEnabled[MAX_NUM_COMPONENT]
Int getMergeList(TComPic *pic, Int ctuRsAddr, SAOBlkParam *blkParams, SAOBlkParam *mergeList[NUM_SAO_MERGE_TYPES])
Void invertQuantOffsets(ComponentID compIdx, Int typeIdc, Int typeAuxInfo, Int *dstOffsets, Int *srcOffsets)
Void reconstructBlkSAOParam(SAOBlkParam &recParam, SAOBlkParam *mergeList[NUM_SAO_MERGE_TYPES])
TComPicYuv * m_tempPicYuv
Void xPCMSampleRestoration(TComDataCU *pcCU, UInt uiAbsZorderIdx, UInt uiDepth, const ComponentID compID)
Void offsetCTU(Int ctuRsAddr, TComPicYuv *srcYuv, TComPicYuv *resYuv, SAOBlkParam &saoblkParam, TComPic *pPic)
Void create(Int picWidth, Int picHeight, ChromaFormat format, UInt maxCUWidth, UInt maxCUHeight, UInt maxCUDepth, UInt lumaBitShift, UInt chromaBitShift)
UInt m_offsetStepLog2[MAX_NUM_COMPONENT]
#define MAX_SAO_TRUNCATED_BITDEPTH
ChromaFormat
chroma formats (according to semantics of chroma_format_idc)
Void PCMLFDisableProcess(TComPic *pcPic)
TComSampleAdaptiveOffset()
static Int getMaxOffsetQVal(const Int channelBitDepth)
Void SAOProcess(TComPic *pDecPic)
virtual ~TComSampleAdaptiveOffset()
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 reconstructBlkSAOParams(TComPic *pic, SAOBlkParam *saoBlkParams)
Void xPCMRestoration(TComPic *pcPic)