![]() |
IDSpeakIPL
v1.9.1
|
Represents a pixel format and its specific properties. More...
#include <peak_ipl/types/peak_ipl_pixel_format.hpp>
Public Member Functions | |
| PixelFormat () | |
| Constructor for a new PixelFormat instance. More... | |
| PixelFormat (peak::ipl::PixelFormatName name) | |
| Constructor for a new PixelFormat instance. More... | |
| ~PixelFormat ()=default | |
| Destructor for the PixelFormat instance. More... | |
| PixelFormat (PixelFormat &&other)=default | |
| Copy Constructor for a new PixelFormat instance. More... | |
| PixelFormat (const PixelFormat &other)=default | |
| Move constructor for PixelFormat instance. More... | |
| PixelFormat & | operator= (const PixelFormat &other)=default |
| Copy assigment for PixelFormat instance. More... | |
| PixelFormat & | operator= (PixelFormat &&other)=default |
| Move assignment for PixelFormat instance. More... | |
| PEAK_IPL_NO_DISCARD std::string | Name () const |
| Returns the name of the pixel format as String. More... | |
| PEAK_IPL_NO_DISCARD peak::ipl::PixelFormatName | PixelFormatName () const |
| Returns the name of the pixel format as enum value. More... | |
| PEAK_IPL_NO_DISCARD bool | operator== (const PixelFormat &other) const |
| Compare PixelFormat. More... | |
| PEAK_IPL_NO_DISCARD size_t | NumSignificantBitsPerChannel () const |
| Returns the number of significant bits per pixel per channel of the given pixel format. More... | |
| PEAK_IPL_NO_DISCARD size_t | NumStorageBitsPerChannel () const |
| Returns the number of storage bits per pixel per channel of the given pixel format. More... | |
| PEAK_IPL_NO_DISCARD size_t | NumChannels () const |
| Returns the number of channels the given pixel format has. More... | |
| PEAK_IPL_NO_DISCARD uint32_t | MaximumValuePerChannel () const |
| Returns the maximum value of one pixel channel the given pixel format has. More... | |
| PEAK_IPL_NO_DISCARD size_t | NumSignificantBitsPerPixel () const |
| Returns the number of significant bits per pixel the given pixel format has. More... | |
| PEAK_IPL_NO_DISCARD size_t | NumStorageBitsPerPixel () const |
| Returns the number of storage bits per pixel the given pixel format has. More... | |
| PEAK_IPL_NO_DISCARD peak::ipl::Endianness | Endianness () const |
| Returns the endianness of the given pixel format. More... | |
| PEAK_IPL_NO_DISCARD uint64_t | CalculateStorageSizeOfPixels (uint64_t numPixels) const |
| Returns the storage size the given number pixels of the given pixel format in bytes. More... | |
| PEAK_IPL_NO_DISCARD bool | IsPacked () const |
| Returns whether the pixel format is packed. More... | |
| PEAK_IPL_NO_DISCARD bool | IsBayered () const |
| Returns whether the pixel format is a bayer format. More... | |
| PEAK_IPL_NO_DISCARD bool | IsYUV () const |
| Returns whether the pixel format is a yuv format. More... | |
| PEAK_IPL_NO_DISCARD peak::ipl::BayerPattern | BayerPattern () const |
| Queries the bayer pattern of the given pixel format. More... | |
Represents a pixel format and its specific properties.
|
inline |
Constructor for a new PixelFormat instance.
Creates a new PixelFormat instance. The PixelFormatName is initialized to PixelFormatName::Invalid.
|
inline |
Constructor for a new PixelFormat instance.
Creates a new PixelFormat instance. The PixelFormatName is initialized to name.
| [in] | name | Used Pixel Format Name. |
|
default |
|
default |
Copy Constructor for a new PixelFormat instance.
Creates a new PixelFormat instance. The PixelFormatName is copied from other
| [in] | other | The other instance to copy the PixelFormatName from. |
|
default |
Move constructor for PixelFormat instance.
Moves the PixelFormatName from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move the PixelFormatName from. |
|
inline |
Queries the bayer pattern of the given pixel format.
| Exception | An internal error has occurred. |
|
inline |
Returns the storage size the given number pixels of the given pixel format in bytes.
For example, the calculation of the required buffer size, supply width multiplied by height here.
| [in] | numPixels | The number of pixels. |
| Exception | An internal error has occurred. |
|
inline |
Returns the endianness of the given pixel format.
| Exception | An internal error has occurred. |
|
inline |
Returns whether the pixel format is a bayer format.
| Exception | An internal error has occurred. |
|
inline |
Returns whether the pixel format is packed.
| Exception | An internal error has occurred. |
|
inline |
Returns whether the pixel format is a yuv format.
| Exception | An internal error has occurred. |
|
inline |
Returns the maximum value of one pixel channel the given pixel format has.
| Exception | An internal error has occurred. |
|
inline |
Returns the name of the pixel format as String.
|
inline |
Returns the number of channels the given pixel format has.
| Exception | An internal error has occurred. |
|
inline |
Returns the number of significant bits per pixel per channel of the given pixel format.
| Exception | An internal error has occurred. |
|
inline |
Returns the number of significant bits per pixel the given pixel format has.
| Exception | An internal error has occurred. |
|
inline |
Returns the number of storage bits per pixel per channel of the given pixel format.
| Exception | An internal error has occurred. |
|
inline |
Returns the number of storage bits per pixel the given pixel format has.
For unpacked formats, this is normally a multiple of 8. For packed formats, this is normally the same as NumSignificantBitsPerPixel.
| Exception | An internal error has occurred. |
|
default |
Copy assigment for PixelFormat instance.
Copies the PixelFormatName from other to this instance.
| [in] | other | The other instance to copy the PixelFormatName from. |
|
default |
Move assignment for PixelFormat instance.
Moves the PixelFormatName from other to this.
| [in] | other | The other instance to move the PixelFormatName from. |
|
inline |
Compare PixelFormat.
Compares the PixelFormatName from other to this instance
| [in] | other | The other instance to compare. |
|
inline |
Returns the name of the pixel format as enum value.