Blender  V3.3
Public Member Functions | List of all members
blender::compositor::MemoryProxy Class Reference

A MemoryProxy is a unique identifier for a memory buffer. A single MemoryProxy is used among all chunks of the same buffer, the MemoryBuffer only stores the data of a single chunk. More...

#include <COM_MemoryProxy.h>

Public Member Functions

 MemoryProxy (DataType type)
 
void set_executor (ExecutionGroup *executor)
 set the ExecutionGroup that can be scheduled to calculate a certain chunk. More...
 
ExecutionGroupget_executor () const
 get the ExecutionGroup that can be scheduled to calculate a certain chunk. More...
 
void set_write_buffer_operation (WriteBufferOperation *operation)
 set the WriteBufferOperation that is responsible for writing to this MemoryProxy More...
 
WriteBufferOperationget_write_buffer_operation () const
 get the WriteBufferOperation that is responsible for writing to this MemoryProxy More...
 
void allocate (unsigned int width, unsigned int height)
 allocate memory of size width x height More...
 
void free ()
 free the allocated memory More...
 
MemoryBufferget_buffer ()
 get the allocated memory More...
 
DataType get_data_type ()
 

Detailed Description

A MemoryProxy is a unique identifier for a memory buffer. A single MemoryProxy is used among all chunks of the same buffer, the MemoryBuffer only stores the data of a single chunk.

Definition at line 25 of file COM_MemoryProxy.h.

Constructor & Destructor Documentation

◆ MemoryProxy()

blender::compositor::MemoryProxy::MemoryProxy ( DataType  type)

Definition at line 9 of file COM_MemoryProxy.cc.

Member Function Documentation

◆ allocate()

void blender::compositor::MemoryProxy::allocate ( unsigned int  width,
unsigned int  height 
)

allocate memory of size width x height

Definition at line 17 of file COM_MemoryProxy.cc.

References blender::compositor::Default, height, result, and width.

Referenced by blender::compositor::WriteBufferOperation::init_execution().

◆ free()

void blender::compositor::MemoryProxy::free ( )

free the allocated memory

Definition at line 28 of file COM_MemoryProxy.cc.

Referenced by blender::compositor::WriteBufferOperation::deinit_execution().

◆ get_buffer()

MemoryBuffer* blender::compositor::MemoryProxy::get_buffer ( )
inline

◆ get_data_type()

DataType blender::compositor::MemoryProxy::get_data_type ( )
inline

Definition at line 103 of file COM_MemoryProxy.h.

Referenced by blender::compositor::MemoryBuffer::MemoryBuffer().

◆ get_executor()

ExecutionGroup* blender::compositor::MemoryProxy::get_executor ( ) const
inline

◆ get_write_buffer_operation()

WriteBufferOperation* blender::compositor::MemoryProxy::get_write_buffer_operation ( ) const
inline

◆ set_executor()

void blender::compositor::MemoryProxy::set_executor ( ExecutionGroup executor)
inline

set the ExecutionGroup that can be scheduled to calculate a certain chunk.

Parameters
groupthe ExecutionGroup to set

Definition at line 54 of file COM_MemoryProxy.h.

Referenced by blender::compositor::NodeOperationBuilder::group_operations(), and blender::compositor::WriteBufferOperation::WriteBufferOperation().

◆ set_write_buffer_operation()

void blender::compositor::MemoryProxy::set_write_buffer_operation ( WriteBufferOperation operation)
inline

set the WriteBufferOperation that is responsible for writing to this MemoryProxy

Parameters
operation

Definition at line 71 of file COM_MemoryProxy.h.

Referenced by blender::compositor::WriteBufferOperation::WriteBufferOperation().


The documentation for this class was generated from the following files: