![]() |
VisionWorks Toolkit ReferenceDecember 18, 2015 | 1.2 Release |
This section illustrates the implementation of the input validation callback function.
An input validation callback function is needed to validate node input parameter data objects. The callback is called automatically at graph verification time for each individual input parameter of any node that instantiates the user custom kernel.
2.1 Input validation callback prototype
Input validation callbacks have the same prototype for any kernel:
This function must return an error status in case the parameter checked by the validator function is incorrect. There is also the possibility to provide richer information by logging a message (with vxAddLogEntry
) that is retrieved by the application if it has registered a log callback function.
2.2 Check the source array
2.3 Check for the Boolean scalar