The image class encapsulates image information. More...
#include <image.h>
Public Member Functions | |
| uint64_t | getFrameID () const |
| size_t | getHeight () const |
| uint64_t | getPixelFormat () const |
| const uint8_t * | getPixels () const |
| Pointer to pixel information of the image. More... | |
| uint64_t | getTimestampNS () const |
| size_t | getWidth () const |
| size_t | getXOffset () const |
| size_t | getXPadding () const |
| size_t | getYOffset () const |
| size_t | getYPadding () const |
| Image (const Buffer *buffer, std::uint32_t part) | |
| Copies the image information of the buffer. More... | |
| bool | isBigEndian () const |
Private Member Functions | |
| Image (class Image &) | |
| Image & | operator= (const Image &) |
Private Attributes | |
| bool | bigendian |
| uint64_t | frameid |
| size_t | height |
| std::unique_ptr< uint8_t[]> | pixel |
| uint64_t | pixelformat |
| uint64_t | timestamp |
| size_t | width |
| size_t | xoffset |
| size_t | xpadding |
| size_t | yoffset |
| size_t | ypadding |
The image class encapsulates image information.
It can be created from a buffer or a buffer part in case of a mult part buffer and provides a part of its information. It can be used to temporarily store the image so that the buffer can be freed.
NOTE: A GenTLException is thrown in case of a severe error.
| rcg::Image::Image | ( | const Buffer * | buffer, |
| std::uint32_t | part | ||
| ) |
|
private |
|
inline |