| 462 | |
| 463 | template<int nComponents> |
| 464 | void |
| 465 | SimpleFilterPlugin::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 | |
| 487 | template <class PIX, int nComponents, int maxValue> |
| 488 | void |
nothing calls this directly
no outgoing calls
no test coverage detected