| 1945 | |
| 1946 | template<unsigned int majorVersion, MergePluginEnum plugin> |
| 1947 | ImageEffect* |
| 1948 | MergePluginFactory<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 | |
| 1962 | static MergePluginFactory<kPluginVersionMajor,eMergePluginMerge> p1(kPluginIdentifier, kPluginVersionMajor, kPluginVersionMinor); |
nothing calls this directly
no test coverage detected