TuttleOFX
1
|
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 |
Class that skins image memory allocation.
Definition at line 732 of file ofxsImageEffect.h.
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().
OFX::ImageMemory::~ImageMemory | ( | ) |
dtor
Definition at line 1715 of file ofxsImageEffect.cpp.
References _alloc, _handle, OFX::Private::gEffectSuite, and OfxImageEffectSuiteV1::imageMemoryFree.
void OFX::ImageMemory::alloc | ( | size_t | nBytes, |
ImageEffect * | associatedEffect | ||
) |
Definition at line 1724 of file ofxsImageEffect.cpp.
References _alloc, OFX::ImageEffect::_effectHandle, _handle, OFX::Private::gEffectSuite, OfxImageEffectSuiteV1::imageMemoryAlloc, kOfxStatErrMemory, and OFX::throwSuiteStatusException().
Referenced by ImageMemory().
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().
void OFX::ImageMemory::unlock | ( | void | ) |
unlock the memory
Definition at line 1754 of file ofxsImageEffect.cpp.
References _handle, OFX::Private::gEffectSuite, and OfxImageEffectSuiteV1::imageMemoryUnlock.
bool OFX::ImageMemory::_alloc [protected] |
Definition at line 736 of file ofxsImageEffect.h.
Referenced by alloc(), and ~ImageMemory().
OfxImageMemoryHandle OFX::ImageMemory::_handle [protected] |
Definition at line 735 of file ofxsImageEffect.h.
Referenced by alloc(), lock(), unlock(), and ~ImageMemory().