Image format descriptor.
Public Member Functions | |
RX_CUDA_EXP | CRxImageFormat () |
Default constructor. More... | |
RX_CUDA_EXP | CRxImageFormat (int iWidth, int iHeight, Rx::Interop::Runtime28::EPixelType::ID ePixelType, Rx::Interop::Runtime28::EDataType::ID eDataType) |
Default constructor. More... | |
RX_CUDA_EXP | ~CRxImageFormat () |
Destructor. More... | |
RX_CUDA_EXP unsigned | GetByteCount () const |
Gets the byte count. More... | |
RX_CUDA_EXP int | GetBytesPerPixel () const |
Gets the bytes per pixel. More... | |
RX_CUDA_EXP int | GetComponentCount () const |
Gets the component count. More... | |
RX_CUDA_EXP unsigned | GetPixelCount () const |
Gets the pixel count. More... | |
RX_CUDA_EXP bool | IsBayerPixelType () const |
Query if this CRxImageFormat is bayer pixel type. More... | |
template<class TPix > | |
RX_CUDA_EXP bool | IsOfType () const |
Test whether format is of particular pixel type. More... | |
RX_CUDA_EXP bool | operator!= (const CRxImageFormat &xFormat) const |
Inequality operator. More... | |
RX_CUDA_EXP bool | operator== (const CRxImageFormat &xFormat) const |
Equality operator. More... | |
RX_CUDA_EXP void | Reset () |
Resets this CRxImageFormat. More... | |
Rx::CRxString | ToString () const |
Convert this CRxImageFormat into a string representation. More... | |
Static Public Member Functions | |
static Rx::CRxString | DataType2String (Rx::Interop::Runtime28::EDataType::ID eDataType) |
Converts the given data type to a string. More... | |
static Rx::CRxString | PixelType2String (Rx::Interop::Runtime28::EPixelType::ID ePixelType) |
Converts the given pixel type to a string. More... | |
Public Attributes | |
Rx::Interop::Runtime28::EDataType::ID | m_eDataType |
Rx::Interop::Runtime28::EPixelType::ID | m_ePixelType |
int | m_iHeight |
int | m_iWidth |
|
inline |
Default constructor.
|
inline |
Default constructor.
|
inline |
Destructor.
|
inlinestatic |
Converts the given data type to a string.
eDataType | Data type. |
|
inline |
Gets the byte count.
|
inline |
Gets the bytes per pixel.
|
inline |
Gets the component count.
|
inline |
Gets the pixel count.
|
inline |
Query if this CRxImageFormat is bayer pixel type.
|
inline |
Test whether format is of particular pixel type.
This function uses the static function IsOfType() of the pixel types to check whether the given template parameter pixel type matches the pixel and data types of this instance.
TPix | Type of the pix. |
|
inline |
Inequality operator.
xFormat | Describes the format to use. |
|
inline |
Equality operator.
xFormat | Describes the format to use. |
|
inlinestatic |
Converts the given pixel type to a string.
ePixelType | Pixel type. |
|
inline |
Resets this CRxImageFormat.
|
inline |
Convert this CRxImageFormat into a string representation.
Rx::Interop::Runtime28::EDataType::ID Rx::CRxImageFormat::m_eDataType |
Rx::Interop::Runtime28::EPixelType::ID Rx::CRxImageFormat::m_ePixelType |
int Rx::CRxImageFormat::m_iHeight |
int Rx::CRxImageFormat::m_iWidth |