|
Blink API
|
Example NDK plug-in, based on DD::Image::PlanarIop, that does a blur and gain using the Blink API. More...
Public Member Functions | |
| BlinkBlurAndGain (Node *node) | |
| void | knobs (DD::Image::Knob_Callback f) |
| This override of an NDK function creates the controls that will be exposed to the user. | |
| void | _validate (bool) |
| The subclass-dependent portion of validate(). This is called by validate() after checking to see if it is needed. | |
| void | getRequests (const DD::Image::Box &box, const DD::Image::ChannelSet &channels, int count, DD::Image::RequestOutput &reqData) const |
| Override for the getRequests() function on a PlanarIop. | |
| virtual bool | useStripes () const |
| Whether to process in stripes or full-frame. | |
| virtual size_t | stripeHeight () const |
| Set the stripe height to use for processing. | |
| void | renderStripe (DD::Image::ImagePlane &outputPlane) |
| const char * | Class () const |
| Return the name of the class. | |
| const char * | node_help () const |
| Return a brief description of the node. | |
Static Public Attributes | |
| static const Iop::Description | description |
| Information to the plug-in manager of DDImage/Nuke. | |
Protected Attributes | |
| Blink::ComputeDevice | _gpuDevice |
| Reference to the GPU device to process on. | |
| bool | _useGPUIfAvailable |
| Whether to process on the GPU, if available. | |
| int | _radius |
| The radius to use for the blur kernel. | |
| float | _gain |
| The amount of gain to apply. | |
| Blink::ProgramSource | _blurProgram |
| This holds the ProgramSource for the blur kernel. | |
| Blink::ProgramSource | _gainProgram |
| This holds the ProgramSource for the gain kernel. | |
Example NDK plug-in, based on DD::Image::PlanarIop, that does a blur and gain using the Blink API.
| void BlinkBlurAndGain::renderStripe | ( | DD::Image::ImagePlane & | outputPlane | ) |
This function does all the work in a PlanarIop. It is guaranteed that outputPlane here will never have more than the 4 channels which can be stored in a Blink::Image.
| ©2013 The Foundry Visionmongers, Ltd. All Rights Reserved. |