| 417 | } |
| 418 | |
| 419 | void |
| 420 | VectorToColorPluginFactory::describeInContext(ImageEffectDescriptor &desc, |
| 421 | ContextEnum context) |
| 422 | { |
| 423 | // Source clip only in the filter context |
| 424 | // create the mandated source clip |
| 425 | ClipDescriptor *srcClip = desc.defineClip(kOfxImageEffectSimpleSourceClipName); |
| 426 | |
| 427 | srcClip->addSupportedComponent(ePixelComponentRGBA); |
| 428 | srcClip->addSupportedComponent(ePixelComponentRGB); |
| 429 | srcClip->setTemporalClipAccess(false); |
| 430 | srcClip->setSupportsTiles(kSupportsTiles); |
| 431 | srcClip->setIsMask(false); |
| 432 | |
| 433 | // create the mandated output clip |
| 434 | ClipDescriptor *dstClip = desc.defineClip(kOfxImageEffectOutputClipName); |
| 435 | dstClip->addSupportedComponent(ePixelComponentRGBA); |
| 436 | dstClip->addSupportedComponent(ePixelComponentRGB); |
| 437 | dstClip->setSupportsTiles(kSupportsTiles); |
| 438 | |
| 439 | // make some pages and to things in |
| 440 | PageParamDescriptor *page = desc.definePageParam("Controls"); |
| 441 | |
| 442 | // xChannel |
| 443 | { |
| 444 | ChoiceParamDescriptor *param = desc.defineChoiceParam(kParamXChannel); |
| 445 | param->setLabel(kParamXChannelLabel); |
| 446 | param->setHint(kParamXChannelHint); |
| 447 | addInputChannelOtions(param, eInputChannelR, context); |
| 448 | if (page) { |
| 449 | page->addChild(*param); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | // yChannel |
| 454 | { |
| 455 | ChoiceParamDescriptor *param = desc.defineChoiceParam(kParamYChannel); |
| 456 | param->setLabel(kParamYChannelLabel); |
| 457 | param->setHint(kParamYChannelHint); |
| 458 | addInputChannelOtions(param, eInputChannelG, context); |
| 459 | if (page) { |
| 460 | page->addChild(*param); |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | // opposite |
| 465 | { |
| 466 | BooleanParamDescriptor *param = desc.defineBooleanParam(kParamOpposite); |
| 467 | param->setLabel(kParamOppositeLabel); |
| 468 | param->setHint(kParamOppositeHint); |
| 469 | if (page) { |
| 470 | page->addChild(*param); |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | // inverseY |
| 475 | { |
| 476 | BooleanParamDescriptor *param = desc.defineBooleanParam(kParamInverseY); |
nothing calls this directly
no test coverage detected