TuttleOFX  1
OFX::ImageMemory Class Reference

Class that skins image memory allocation. More...

#include <ofxsImageEffect.h>

Public Member Functions

 ImageMemory ()
 Class that skins image memory allocation.
 ImageMemory (size_t nBytes, ImageEffect *associatedEffect=0)
 ~ImageMemory ()
 dtor
void alloc (size_t nBytes, ImageEffect *associatedEffect)
void * lock (void)
 lock the memory and return a pointer to it
void unlock (void)
 unlock the memory

Protected Attributes

OfxImageMemoryHandle _handle
bool _alloc

Detailed Description

Class that skins image memory allocation.

Definition at line 732 of file ofxsImageEffect.h.


Constructor & Destructor Documentation

OFX::ImageMemory::ImageMemory ( )

Class that skins image memory allocation.

Definition at line 1701 of file ofxsImageEffect.cpp.

OFX::ImageMemory::ImageMemory ( size_t  nBytes,
ImageEffect associatedEffect = 0 
)

Definition at line 1707 of file ofxsImageEffect.cpp.

References alloc().

Here is the call graph for this function:

OFX::ImageMemory::~ImageMemory ( )

Member Function Documentation

void OFX::ImageMemory::alloc ( size_t  nBytes,
ImageEffect associatedEffect 
)
void * OFX::ImageMemory::lock ( void  )

lock the memory and return a pointer to it

Definition at line 1742 of file ofxsImageEffect.cpp.

References _handle, OFX::Private::gEffectSuite, OfxImageEffectSuiteV1::imageMemoryLock, kOfxStatErrMemory, and OFX::throwSuiteStatusException().

Here is the call graph for this function:

void OFX::ImageMemory::unlock ( void  )

unlock the memory

Definition at line 1754 of file ofxsImageEffect.cpp.

References _handle, OFX::Private::gEffectSuite, and OfxImageEffectSuiteV1::imageMemoryUnlock.


Field Documentation

bool OFX::ImageMemory::_alloc [protected]

Definition at line 736 of file ofxsImageEffect.h.

Referenced by alloc(), and ~ImageMemory().

Definition at line 735 of file ofxsImageEffect.h.

Referenced by alloc(), lock(), unlock(), and ~ImageMemory().


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