DeepImagePixelMutableBuffer Struct Reference

#include <gfx_image_storage_deepimage.h>

Inheritance diagram for DeepImagePixelMutableBuffer:

详细描述

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.

公共成员函数

  DeepImagePixelMutableBuffer ( UInt32 *counts, Pix *&buffer, BITS inc)
-  Public Member Functions inherited from PixelMutableBuffer
  PixelMutableBuffer ()=default
  PixelMutableBuffer (const PixelMutableBuffer & src )
  PixelMutableBuffer (const PixelMutableBuffer & src , Int offset)
  PixelMutableBuffer ( Pix *buffer, BITS inc)
PixelMutableBuffer operator= (const PixelMutableBuffer & src )
  operator const PixelConstBuffer & () const

Public Attributes

UInt32 _counts
Pix *&  _bufferPtr
-  Public Attributes inherited from PixelMutableBuffer
Pix _buffer
BITS   _inc

Additional Inherited Members

-  Public Types inherited from PixelMutableBuffer
using  PIXELTYPE = Pix

构造函数 & 析构函数文档编制

◆  DeepImagePixelMutableBuffer()

DeepImagePixelMutableBuffer ( UInt32 counts ,
Pix *&  buffer ,
BITS   inc  
)

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

UInt32 sampleCounts[2]; Pix * pixelData; finally { DeleteMem (pixelData); }; DeepImagePixelConstBuffer buffer(sampleCounts, pixelData, pixelFormat.GetBitsPerPixel());
参数
[in] counts Pointer to a memory block that receives the number of samples per pixel. The array needs to be as long as the number of requested pixel.
[in,out] buffer Pointer to the memory block which receives the pixel data. Important: This memory is reallocated with ReAllocMem and needs to be freed after this call!
[in] inc Pixel offset between 2 samples.

Member Data Documentation

◆  _counts

UInt32 * _counts

◆  _bufferPtr

Pix *& _bufferPtr
UInt32
maxon::UInt32 UInt32
定义: ge_sys_math.h:59
maxon::DeleteMem
void DeleteMem(T *&p)
定义: defaultallocator.h:258
maxon::Pix
UChar Pix
unspecified pixel format depth.
定义: gfx_image_imagechannel.h:17