173 Int blkX = ( iTransUnitIdx * iBlkSizeForComponent ) & ( width - 1 );
174 Int blkY = ( iTransUnitIdx * iBlkSizeForComponent ) &~ ( width - 1 );
179 return m_apiBuf[id] + blkX + blkY * iBlkSizeForComponent;
185 Int blkX = ( iTransUnitIdx * iBlkSizeForComponent ) & ( width - 1 );
186 Int blkY = ( iTransUnitIdx * iBlkSizeForComponent ) &~ ( width - 1 );
191 return m_apiBuf[id] + blkX + blkY * iBlkSizeForComponent;
211 #endif // __TCOMYUV__
Void destroy()
Destroy YUV buffer.
ChromaFormat m_chromaFormatIDC
Void copyToPartComponent(const ComponentID id, TComYuv *pcYuvDst, const UInt uiDstPartIdx) const
Defines version information, constants and small in-line functions.
Void copyPartToYuv(TComYuv *pcYuvDst, const UInt uiSrcPartIdx) const
const Pel * getAddr(const ComponentID id) const
Pel * getAddr(const ComponentID id, const UInt iTransUnitIdx, const UInt iBlkSizeForComponent)
Pel * getAddr(const ComponentID id, const UInt uiPartUnitIdx)
Void copyPartToPartComponent(const ComponentID id, TComYuv *pcYuvDst, const UInt uiPartIdx, const UInt uiWidthComponent, const UInt uiHeightComponent) const
UInt getStride(const ComponentID id) const
Void copyToPicYuv(TComPicYuv *pcPicYuvDst, const UInt ctuRsAddr, const UInt uiAbsZorderIdx, const UInt uiPartDepth=0, const UInt uiPartIdx=0) const
UInt getHeight(const ComponentID id) const
Void copyPartToPartComponentMxN(const ComponentID id, TComYuv *pcYuvDst, const TComRectangle &rect) const
const Pel * getAddr(const ComponentID id, const UInt iTransUnitIdx, const UInt iBlkSizeForComponent) const
const Pel * getAddrPix(const ComponentID id, const UInt iPixX, const UInt iPixY) const
UInt getWidth(const ComponentID id) const
UInt getComponentScaleX(const ComponentID id) const
const Pel * getAddr(const ComponentID id, const UInt uiPartUnitIdx) const
Void copyToPicComponent(const ComponentID id, TComPicYuv *pcPicYuvDst, const UInt iCtuRsAddr, const UInt uiAbsZorderIdx, const UInt uiPartDepth=0, const UInt uiPartIdx=0) const
Void addClip(const TComYuv *pcYuvSrc0, const TComYuv *pcYuvSrc1, const UInt uiTrUnitIdx, const UInt uiPartSize, const BitDepths &clipBitDepths)
Void copyToPartYuv(TComYuv *pcYuvDst, const UInt uiDstPartIdx) const
UInt getComponentScaleY(const ComponentID id) const
Void create(const UInt iWidth, const UInt iHeight, const ChromaFormat chromaFormatIDC)
Create YUV buffer.
Void subtract(const TComYuv *pcYuvSrc0, const TComYuv *pcYuvSrc1, const UInt uiTrUnitIdx, const UInt uiPartSize)
Pel * getAddr(const ComponentID id)
ChromaFormat
chroma formats (according to semantics of chroma_format_idc)
Void removeHighFreq(const TComYuv *pcYuvSrc, const UInt uiPartIdx, const UInt uiWidth, const UInt uiHeight, const Int bitDepths[MAX_NUM_CHANNEL_TYPE], const Bool bClipToBitDepths)
UInt g_auiZscanToRaster[MAX_NUM_PART_IDXS_IN_CTU_WIDTH *MAX_NUM_PART_IDXS_IN_CTU_WIDTH]
picture YUV buffer class (header)
Pel * m_apiBuf[MAX_NUM_COMPONENT]
ChromaFormat getChromaFormat() const
Void copyFromPicComponent(const ComponentID id, const TComPicYuv *pcPicYuvSrc, const UInt iCtuRsAddr, const UInt uiAbsZorderIdx)
Void addAvg(const TComYuv *pcYuvSrc0, const TComYuv *pcYuvSrc1, const UInt iPartUnitIdx, const UInt iWidth, const UInt iHeight, const BitDepths &clipBitDepths)
Void copyPartToComponent(const ComponentID id, TComYuv *pcYuvDst, const UInt uiSrcPartIdx) const
UInt g_auiRasterToPelX[MAX_NUM_PART_IDXS_IN_CTU_WIDTH *MAX_NUM_PART_IDXS_IN_CTU_WIDTH]
UInt getNumberValidComponents() const
Pel * getAddrPix(const ComponentID id, const UInt iPixX, const UInt iPixY)
Void copyPartToPartYuv(TComYuv *pcYuvDst, const UInt uiPartIdx, const UInt uiWidth, const UInt uiHeight) const
Void clear()
clear YUV buffer
Void copyFromPicYuv(const TComPicYuv *pcPicYuvSrc, const UInt ctuRsAddr, const UInt uiAbsZorderIdx)
UInt g_auiRasterToPelY[MAX_NUM_PART_IDXS_IN_CTU_WIDTH *MAX_NUM_PART_IDXS_IN_CTU_WIDTH]