Name

OfxImageEffectSuiteV1::imageMemoryAlloc — Allocate memory from the host's image memory pool

Synopsis

#include "ofxImageEffect.h" 
OfxStatus(*imageMemoryAlloc)(OfxImageEffectHandleinstanceHandle,
  size_tnBytes,
  OfxImageMemoryHandle *memoryHandle);
 

Arguments

  • instanceHandle -
  • nBytes -
  • memoryHandle -

Description

Memory handles allocated by this should be freed by OfxImageEffectSuiteV1::imageMemoryFree. To access the memory behind the handle you need to call OfxImageEffectSuiteV1::imageMemoryLock.

See ImageEffectsMemoryAllocation.

Returns

  • kOfxStatOK if all went well, a valid memory handle is placed in memoryHandle
  • kOfxStatErrBadHandle if instanceHandle is not valid, memoryHandle is set to NULL
  • kOfxStatErrMemory if there was not enough memory to satisfy the call, memoryHandle is set to NULL