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

Method createInstance

Merge/Merge.cpp:1947–1959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1945
1946template<unsigned int majorVersion, MergePluginEnum plugin>
1947ImageEffect*
1948MergePluginFactory<majorVersion,plugin>::createInstance(OfxImageEffectHandle handle,
1949 ContextEnum /*context*/)
1950{
1951 assert(unsignedToString(12345) == "12345");
1952 //Natron >= 2.0 allows multiple inputs to be folded like the viewer node, so use this to merge
1953 //more than 2 images
1954 bool numerousInputs = (/*plugin != eMergePluginRoto &&*/
1955 getImageEffectHostDescription()->isNatron &&
1956 getImageEffectHostDescription()->versionMajor >= 2);
1957
1958 return new MergePlugin(handle, this->getMajorVersion(), this->getMinorVersion(), plugin, numerousInputs);
1959}
1960
1961
1962static MergePluginFactory<kPluginVersionMajor,eMergePluginMerge> p1(kPluginIdentifier, kPluginVersionMajor, kPluginVersionMinor);

Callers

nothing calls this directly

Calls 1

unsignedToStringFunction · 0.70

Tested by

no test coverage detected