Image format descriptor.
Public Member Functions | |
RX_CUDA_EXP | CRxImageFormat () |
Default constructor. More... | |
RX_CUDA_EXP | CRxImageFormat (int iWidthPX, int iHeightPX) |
Constructor. Defines only the width and the height. More... | |
RX_CUDA_EXP | CRxImageFormat (int iWidth, int iHeight, Interop::Runtime28::EPixelType::ID ePixelType, Interop::Runtime28::EDataType::ID eDataType) |
Default constructor. More... | |
CRxImageFormat (const Interop::Runtime28::IImage *pxImg) | |
Constructor that creates an image format that is equal to the image format of the given image interface. More... | |
RX_CUDA_EXP | ~CRxImageFormat () |
Destructor. More... | |
RX_CUDA_EXP int | GetBitDepth () const |
Gets the bit depth. This is the number of bits per channel. More... | |
RX_CUDA_EXP unsigned | GetByteCount () const |
Gets the total number of bytes allocated by images that are of this image format. More... | |
RX_CUDA_EXP int | GetBytesPerChannel () const |
Gets the bytes per channel. 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 | HasCustomDataType () const |
Returns true if the data type of this image format is one of the custom (non primitive) data types. 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... | |
CRxString | ToString () const |
Convert this CRxImageFormat into a string representation. More... | |
Static Public Member Functions | |
static CRxString | DataType2String (Interop::Runtime28::EDataType::ID eDataType) |
Converts the given data type to a string. More... | |
static CRxString | PixelType2String (Interop::Runtime28::EPixelType::ID ePixelType) |
Converts the given pixel type to a string. More... | |
Public Attributes | |
Interop::Runtime28::EDataType::ID | m_eDataType |
Interop::Runtime28::EPixelType::ID | m_ePixelType |
int | m_iHeight |
int | m_iWidth |
|
inline |
Default constructor.
|
inline |
Constructor. Defines only the width and the height.
iWidthPX | The width in pixels. |
iHeightPX | The height in pixels. |
|
inline |
Default constructor.
|
inline |
Constructor that creates an image format that is equal to the image format of the given image interface.
pxImg | The image interface pointer. |
|
inline |
Destructor.
|
inlinestatic |
Converts the given data type to a string.
eDataType | The data type. |
|
inline |
Gets the bit depth. This is the number of bits per channel.
|
inline |
Gets the total number of bytes allocated by images that are of this image format.
|
inline |
Gets the bytes per channel.
|
inline |
Gets the bytes per pixel.
|
inline |
Gets the component count.
|
inline |
Gets the pixel count.
|
inline |
Returns true if the data type of this image format is one of the custom (non primitive) data types.
|
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 | The pixel type. |
|
inline |
Resets this CRxImageFormat.
|
inline |
Convert this CRxImageFormat into a string representation.
Interop::Runtime28::EDataType::ID Rx::CRxImageFormat::m_eDataType |
Interop::Runtime28::EPixelType::ID Rx::CRxImageFormat::m_ePixelType |
int Rx::CRxImageFormat::m_iHeight |
int Rx::CRxImageFormat::m_iWidth |