NVIDIA DeepStream SDK API Reference

6.4 Release
cvcore::Image< ImageType::NV12 > Class Reference

Detailed Description

Definition at line 678 of file Image.h.

Public Member Functions

 Image (std::size_t width, std::size_t height, bool isCPU=true)
 
 Image (std::size_t width, std::size_t height, std::uint8_t *dataPtrLuma, std::uint8_t *dataPtrChroma, bool isCPU=true)
 
 Image (std::size_t width, std::size_t height, std::size_t rowPitchLuma, std::size_t rowPitchChroma, std::uint8_t *dataPtrLuma, std::uint8_t *dataPtrChroma, bool isCPU=true)
 
std::size_t getLumaWidth () const
 
std::size_t getLumaHeight () const
 
std::size_t getChromaWidth () const
 
std::size_t getChromaHeight () const
 
std::size_t getLumaStride (TensorDimension dim) const
 
std::size_t getChromaStride (TensorDimension dim) const
 
std::uint8_t * getLumaData ()
 
std::uint8_t * getChromaData ()
 
const std::uint8_t * getLumaData () const
 
std::size_t getLumaDataSize () const
 
const std::uint8_t * getChromaData () const
 
std::size_t getChromaDataSize () const
 
bool isCPU () const
 

Friends

void Copy (Image< NV12 > &dst, const Image< NV12 > &src, cudaStream_t stream)
 

Constructor & Destructor Documentation

◆ Image() [1/3]

cvcore::Image< ImageType::NV12 >::Image ( std::size_t  width,
std::size_t  height,
bool  isCPU = true 
)
inline

Definition at line 681 of file Image.h.

◆ Image() [2/3]

cvcore::Image< ImageType::NV12 >::Image ( std::size_t  width,
std::size_t  height,
std::uint8_t *  dataPtrLuma,
std::uint8_t *  dataPtrChroma,
bool  isCPU = true 
)
inline

Definition at line 687 of file Image.h.

◆ Image() [3/3]

cvcore::Image< ImageType::NV12 >::Image ( std::size_t  width,
std::size_t  height,
std::size_t  rowPitchLuma,
std::size_t  rowPitchChroma,
std::uint8_t *  dataPtrLuma,
std::uint8_t *  dataPtrChroma,
bool  isCPU = true 
)
inline

Definition at line 694 of file Image.h.

Member Function Documentation

◆ getChromaData() [1/2]

std::uint8_t* cvcore::Image< ImageType::NV12 >::getChromaData ( )
inline

Definition at line 737 of file Image.h.

◆ getChromaData() [2/2]

const std::uint8_t* cvcore::Image< ImageType::NV12 >::getChromaData ( ) const
inline

Definition at line 752 of file Image.h.

◆ getChromaDataSize()

std::size_t cvcore::Image< ImageType::NV12 >::getChromaDataSize ( ) const
inline

Definition at line 757 of file Image.h.

◆ getChromaHeight()

std::size_t cvcore::Image< ImageType::NV12 >::getChromaHeight ( ) const
inline

Definition at line 717 of file Image.h.

◆ getChromaStride()

std::size_t cvcore::Image< ImageType::NV12 >::getChromaStride ( TensorDimension  dim) const
inline

Definition at line 727 of file Image.h.

◆ getChromaWidth()

std::size_t cvcore::Image< ImageType::NV12 >::getChromaWidth ( ) const
inline

Definition at line 712 of file Image.h.

◆ getLumaData() [1/2]

std::uint8_t* cvcore::Image< ImageType::NV12 >::getLumaData ( )
inline

Definition at line 732 of file Image.h.

◆ getLumaData() [2/2]

const std::uint8_t* cvcore::Image< ImageType::NV12 >::getLumaData ( ) const
inline

Definition at line 742 of file Image.h.

◆ getLumaDataSize()

std::size_t cvcore::Image< ImageType::NV12 >::getLumaDataSize ( ) const
inline

Definition at line 747 of file Image.h.

◆ getLumaHeight()

std::size_t cvcore::Image< ImageType::NV12 >::getLumaHeight ( ) const
inline

Definition at line 707 of file Image.h.

◆ getLumaStride()

std::size_t cvcore::Image< ImageType::NV12 >::getLumaStride ( TensorDimension  dim) const
inline

Definition at line 722 of file Image.h.

◆ getLumaWidth()

std::size_t cvcore::Image< ImageType::NV12 >::getLumaWidth ( ) const
inline

Definition at line 702 of file Image.h.

◆ isCPU()

bool cvcore::Image< ImageType::NV12 >::isCPU ( ) const
inline

Definition at line 762 of file Image.h.

Friends And Related Function Documentation

◆ Copy

void Copy ( Image< NV12 > &  dst,
const Image< NV12 > &  src,
cudaStream_t  stream = 0 
)
friend

Definition at line 872 of file Image.h.


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