#include <gfx_image_pixelformat.h>

Several functions use this helper structure to pass the image data to functions.
Public Member Functions | |
| ImageBufferTemplate (const ImageBufferTemplate &src) | |
| ImageBufferTemplate (typename BASECLASS::PIXELTYPE *buffer, const PixelFormat &format) | |
| ImageBufferTemplate (typename BASECLASS::PIXELTYPE *buffer, BITS inc, const ChannelOffsets &channelOffsets, const PixelFormat &format) | |
| ImageBufferTemplate (const BASECLASS &buffer, const ChannelOffsets &channelOffsets, const PixelFormat &format) | |
| ImageBufferTemplate & | operator= (const ImageBufferTemplate &src) |
| const ImageConstBuffer & | ToConst () const |
Public Attributes | |
| const ChannelOffsets & | _channelOffsets |
| PixelFormat | _format |
| ImageBufferTemplate | ( | const ImageBufferTemplate< BASECLASS > & | src | ) |
Copy constructor.
| ImageBufferTemplate | ( | typename BASECLASS::PIXELTYPE * | buffer, |
| const PixelFormat & | format | ||
| ) |
Constructs the ImageBuffer object. The channelOffsets and increment is automatically taken from the pixelformat.
| ImageBufferTemplate | ( | typename BASECLASS::PIXELTYPE * | buffer, |
| BITS | inc, | ||
| const ChannelOffsets & | channelOffsets, | ||
| const PixelFormat & | format | ||
| ) |
Constructs the helper object.
| [in] | buffer | Pointer to the memory block of the pixel data. |
| [in] | inc | Distance in number of bytes from one pixel to the next. For packed pixels this value is equal to BytesPerPixel(). |
| [in] | channelOffsets | Distance of the channels of a pixel. This can be used to work with planes. For packed pixels this value is equal to BytesPerChannel(). |
| [in] | format | Pixel format of the buffer. |
| ImageBufferTemplate | ( | const BASECLASS & | buffer, |
| const ChannelOffsets & | channelOffsets, | ||
| const PixelFormat & | format | ||
| ) |
Constructs the helper object.
| [in] | buffer | PixelConst/MutableBuffer that points to the pixel memory/offset. |
| [in] | channelOffsets | Distance of the channels of a pixel. This can be used to work with planes. For packed pixels this value is equal to BytesPerChannel(). |
| [in] | format | Pixel format of the buffer. |
| ImageBufferTemplate& operator= | ( | const ImageBufferTemplate< BASECLASS > & | src | ) |
| const ImageConstBuffer& ToConst | ( | ) | const |
| const ChannelOffsets& _channelOffsets |
| PixelFormat _format |