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

Function getViewCountNth

DebugProxy/DebugProxy.cpp:2516–2536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2514
2515template<int nth>
2516static OfxStatus
2517getViewCountNth(OfxImageEffectHandle effect,
2518 int *nViews)
2519{
2520 OfxStatus st;
2521
2522 assert( nth < gHost.size() && nth < gPluginsSetHost.size() );
2523 try {
2524 st = (gImageEffectPlaneV2Host[nth]->getViewCount ?
2525 gImageEffectPlaneV2Host[nth]->getViewCount(effect, nViews) :
2526 kOfxStatErrMissingHostFeature);
2527 } catch (...) {
2528 std::cout << "OFX DebugProxy: " << gPlugins[nth].pluginIdentifier << "..getViewCount(" << effect << ", " << *nViews << "): host exception!" << std::endl;
2529 throw;
2530 }
2531
2532 std::cout << "OFX DebugProxy: " << gPlugins[nth].pluginIdentifier << "..getViewCount(" << effect << ", " << *nViews << ")->" << StatStr(st);
2533 std::cout << std::endl;
2534
2535 return st;
2536}
2537
2538#define NTHFUNC(nth) \
2539case nth: \

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected