38 #ifndef __TCOMPICYUV__
39 #define __TCOMPICYUV__
94 const UInt maxCUWidth,
95 const UInt maxCUHeight,
96 const UInt maxCUDepth,
97 const Bool bUseMargin);
102 const Bool bUseMargin=
false,
103 const UInt maxCUWidth=0,
104 const UInt maxCUHeight=0);
167 Void dump (
const std::string &fileName,
const BitDepths &bitDepths,
const Bool bAppend=
false,
const Bool bForceTo8Bit=
false)
const ;
181 #endif // __TCOMPICYUV__
Int m_marginX
margin of Luma channel (chroma's may be smaller, depending on ratio)
Int getStride(const ChannelType id) const
Int m_picHeight
Height of picture in pixels.
Pel * getAddr(const ComponentID ch, const Int ctuRSAddr, const Int uiAbsZorderIdx)
Defines version information, constants and small in-line functions.
UInt calcChecksum(const TComPicYuv &pic, TComPictureHash &digest, const BitDepths &bitDepths)
Int getStride(const ComponentID id) const
Pel * getAddr(const ComponentID ch, const Int ctuRSAddr)
global variables & functions (header)
Void createWithoutCUInfo(const Int picWidth, const Int picHeight, const ChromaFormat chromaFormatIDC, const Bool bUseMargin=false, const UInt maxCUWidth=0, const UInt maxCUHeight=0)
used for margin only
Int getHeight(const ComponentID id) const
Pel * m_apiPicBuf[MAX_NUM_COMPONENT]
Buffer (including margin)
const Pel * getBuf(const ComponentID ch) const
UInt calcMD5(const TComPicYuv &pic, TComPictureHash &digest, const BitDepths &bitDepths)
UInt getChannelTypeScaleY(const ChannelType id) const
Int * m_ctuOffsetInBuffer[MAX_NUM_CHANNEL_TYPE]
Gives an offset in the buffer for a given CTU (and channel)
const Pel * getAddr(const ComponentID ch, const Int ctuRSAddr) const
Int getWidth(const ComponentID id) const
UInt getComponentScaleY(const ComponentID id) const
UInt getComponentScaleX(const ComponentID id) const
Void copyToPic(TComPicYuv *pcPicYuvDst) const
Pel * m_piPicOrg[MAX_NUM_COMPONENT]
m_apiPicBufY + m_iMarginLuma*getStride() + m_iMarginLuma
Int getTotalHeight(const ComponentID id) const
ChromaFormat
chroma formats (according to semantics of chroma_format_idc)
Int m_marginY
margin of Luma channel (chroma's may be smaller, depending on ratio)
UInt g_auiZscanToRaster[MAX_NUM_PART_IDXS_IN_CTU_WIDTH *MAX_NUM_PART_IDXS_IN_CTU_WIDTH]
const Pel * getAddr(const ComponentID ch, const Int ctuRSAddr, const Int uiAbsZorderIdx) const
UInt getNumberValidComponents() const
Int * m_subCuOffsetInBuffer[MAX_NUM_CHANNEL_TYPE]
Gives an offset in the buffer for a given sub-CU (and channel), relative to start of CTU...
Int getMarginX(const ComponentID id) const
UInt getChannelTypeScaleX(const ChannelType id) const
Void dump(const std::string &fileName, const BitDepths &bitDepths, const Bool bAppend=false, const Bool bForceTo8Bit=false) const
Pel * getAddr(const ComponentID ch)
Void create(const Int picWidth, const Int picHeight, const ChromaFormat chromaFormatIDC, const UInt maxCUWidth, const UInt maxCUHeight, const UInt maxCUDepth, const Bool bUseMargin)
if true, then a margin of uiMaxCUWidth+16 and uiMaxCUHeight+16 is created around the image...
Int getMarginY(const ComponentID id) const
Int m_picWidth
Width of picture in pixels.
Void setBorderExtension(Bool b)
std::string hashToString(const TComPictureHash &digest, Int numChar)
Pel * getBuf(const ComponentID ch)
ChromaFormat m_chromaFormatIDC
Chroma Format.
UInt calcCRC(const TComPicYuv &pic, TComPictureHash &digest, const BitDepths &bitDepths)
const Pel * getAddr(const ComponentID ch) const
ChromaFormat getChromaFormat() const