ImageBufferTemplate< BASECLASS > Struct Template Reference Graphics

#include <gfx_image_pixelformat.h>

详细描述

template<typename BASECLASS>
struct maxon::ImageBufferTemplate< BASECLASS >

Several functions use this helper structure to pass the image data to 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() [1/4]

ImageBufferTemplate ( const ImageBufferTemplate < BASECLASS > &  src )

Copy constructor.

◆  ImageBufferTemplate() [2/4]

ImageBufferTemplate ( typename BASECLASS::PIXELTYPE *  buffer ,
const PixelFormat &  format  
)

Constructs the ImageBuffer object. The channelOffsets and increment is automatically taken from the pixelformat.

◆  ImageBufferTemplate() [3/4]

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() [4/4]

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.

成员函数文档编制

◆  operator=()

ImageBufferTemplate & operator= ( const ImageBufferTemplate < BASECLASS > &  src )

◆  ToConst()

const ImageConstBuffer & ToConst ( ) const

Member Data Documentation

◆  _channelOffsets

const ChannelOffsets & _channelOffsets

◆  _format

PixelFormat _format