DeepImagePixelConstBuffer Struct Reference

#include <gfx_image_storage_deepimage.h>

Inheritance diagram for DeepImagePixelConstBuffer:

Detailed Description

Extends PixelConstBuffer with the count of samples per pixel for depth pixel buffers. this structure is only valid if SETPIXELHANDLERFLAGS::DEPTH and SETPIXELFLAGS::DEPTH is given.

Public Member Functions

 DeepImagePixelConstBuffer (const UInt32 *counts, const Pix *buffer, BITS inc)
 
- Public Member Functions inherited from PixelConstBuffer
 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 UInt32_counts
 
- Public Attributes inherited from PixelConstBuffer
const Pix_buffer
 
BITS _inc
 

Additional Inherited Members

- Public Types inherited from PixelConstBuffer
using PIXELTYPE = const Pix
 

Constructor & Destructor Documentation

◆ DeepImagePixelConstBuffer()

DeepImagePixelConstBuffer ( const UInt32 counts,
const Pix buffer,
BITS  inc 
)

DeepImagePixelConstBuffer constructor. The following example illustrates how the data needs to be delivered.

UInt32 sampleCounts[2] = { 2, 1 };
Pix8u greyPixelData[3] = { pixel1.1, pixel1.2, pixel2.1 };
DeepImagePixelConstBuffer buffer(sampleCounts, greyPixelData, sizeof(Pix8u));
const char ** buffer
Definition: abstract.h:327
maxon::UInt32 UInt32
Definition: ge_sys_math.h:61
UChar Pix8u
pixel format with 8 bit unsigned integer values (0..255).
Definition: gfx_image_imagechannel.h:18
DeepImagePixelConstBuffer(const UInt32 *counts, const Pix *buffer, BITS inc)
Definition: gfx_image_storage_deepimage.h:31
Parameters
[in]countsPointer to a memory block with the number of samples per pixel. The array needs to be as long as the number of requested pixel.
[in]bufferPointer to the memory block with the pixel data. Each pixel needs exactly the number of samples defined in "counts".
[in]incPixel offset between 2 samples.

Member Data Documentation

◆ _counts

const UInt32* _counts