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

Method renderForComponents

Templates/SimpleFilter.cpp:464–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463template<int nComponents>
464void
465SimpleFilterPlugin::renderForComponents(const RenderArguments &args)
466{
467 BitDepthEnum dstBitDepth = _dstClip->getPixelDepth();
468
469 switch (dstBitDepth) {
470 case eBitDepthUByte:
471 renderForBitDepth<unsigned char, nComponents, 255>(args);
472 break;
473
474 case eBitDepthUShort:
475 renderForBitDepth<unsigned short, nComponents, 65535>(args);
476 break;
477
478 case eBitDepthFloat:
479 renderForBitDepth<float, nComponents, 1>(args);
480 break;
481 default:
482 //std::cout << "depth usupported\n";
483 throwSuiteStatusException(kOfxStatErrUnsupported);
484 }
485}
486
487template <class PIX, int nComponents, int maxValue>
488void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected