MCPcopy Create free account
hub / github.com/NatronGitHub/openfx-misc / imageMemoryLockNth

Function imageMemoryLockNth

DebugProxy/DebugProxy.cpp:2198–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2196/////////////// imageMemoryLock proxy
2197template<int nth>
2198static OfxStatus
2199imageMemoryLockNth(OfxImageMemoryHandle memoryHandle,
2200 void **returnedPtr)
2201{
2202 OfxStatus st;
2203
2204 assert( nth < gHost.size() && nth < gPluginsSetHost.size() );
2205 try {
2206 st = (gEffectHost[nth]->imageMemoryLock ?
2207 gEffectHost[nth]->imageMemoryLock(memoryHandle, returnedPtr) :
2208 kOfxStatErrMissingHostFeature);
2209 } catch (...) {
2210 std::cout << "OFX DebugProxy: " << gPlugins[nth].pluginIdentifier << "..imageMemoryLock(" << memoryHandle << ", " << returnedPtr << "): host exception!" << std::endl;
2211 throw;
2212 }
2213
2214 std::cout << "OFX DebugProxy: " << gPlugins[nth].pluginIdentifier << "..imageMemoryLock(" << memoryHandle << ")->" << StatStr(st) << ": " << *returnedPtr << std::endl;
2215
2216 return st;
2217}
2218
2219#define NTHFUNC(nth) \
2220case nth: \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected