| 2196 | /////////////// imageMemoryLock proxy |
| 2197 | template<int nth> |
| 2198 | static OfxStatus |
| 2199 | imageMemoryLockNth(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) \ |
| 2220 | case nth: \ |
nothing calls this directly
no outgoing calls
no test coverage detected