PixelConstBuffer Struct Reference

#include <gfx_image_pixelformat.h>

Inheritance diagram for PixelConstBuffer:

Detailed Description

Several functions use this helper structure to pass the image data to functions.

Public Types

using PIXELTYPE = const Pix
 

Public Member Functions

 PixelConstBuffer ()=default
 
 PixelConstBuffer (const PixelConstBuffer &src)
 
 PixelConstBuffer (const PixelConstBuffer &src, Int offset)
 
 PixelConstBuffer (const Pix *buffer, BITS inc)
 
PixelConstBufferoperator= (const PixelConstBuffer &src)
 

Public Attributes

const Pix_buffer
 
BITS _inc
 

Member Typedef Documentation

◆ PIXELTYPE

using PIXELTYPE = const Pix

Constructor & Destructor Documentation

◆ PixelConstBuffer() [1/4]

PixelConstBuffer ( )
default

◆ PixelConstBuffer() [2/4]

Copy constructor.

◆ PixelConstBuffer() [3/4]

PixelConstBuffer ( const PixelConstBuffer src,
Int  offset 
)

Copy constructor with alignment.

◆ PixelConstBuffer() [4/4]

PixelConstBuffer ( const Pix buffer,
BITS  inc 
)

Constructs the helper object.

Parameters
[in]bufferPointer to the memory block of the pixel data.
[in]incDistance in number of bytes from one pixel to the next. For packed pixels this value is equal to BytesPerPixel().

Member Function Documentation

◆ operator=()

PixelConstBuffer& operator= ( const PixelConstBuffer src)

Member Data Documentation

◆ _buffer

const Pix* _buffer

◆ _inc

BITS _inc