VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Kernel Object Extensions

Detailed Description

Adds various extensions to the vx_kernel object.

This section describes different extensions and features to the standard Object: Kernel.

vxLoadKernels

vxLoadKernels function supports relative and absolute paths to libraries, for example:

Enumerations

enum  nvx_mutability_e {
  NVX_MUTABLE_INIT = VX_ENUM_BASE(VX_ID_NVIDIA, NVX_ENUM_MUTABILITY) + 0x0,
  NVX_METADATA_IMMUTABLE_INIT = VX_ENUM_BASE(VX_ID_NVIDIA, NVX_ENUM_MUTABILITY) + 0x1,
  NVX_IMMUTABLE_INIT = VX_ENUM_BASE(VX_ID_NVIDIA, NVX_ENUM_MUTABILITY) + 0x2
}
 Defines the mutability state of custom kernel parameter. More...
 

Functions

vx_status nvxSetKernelParameterMutability (vx_kernel kernel, vx_uint32 index, vx_enum mutability)
 Allows users to set the mutability of the custom kernel. By default, kernel parameters are set to NVX_MUTABLE_INIT. More...
 

Enumeration Type Documentation

Defines the mutability state of custom kernel parameter.

Enumerator
NVX_MUTABLE_INIT 

A Change of the parameter does not imply a node re-initialization.

NVX_METADATA_IMMUTABLE_INIT 

A Change of the parameter meta-data implies a node re-initialization.

NVX_IMMUTABLE_INIT 

A Change of the parameter meta-data or value implies a node re-initialization.

Definition at line 104 of file nvx.h.

Function Documentation

vx_status nvxSetKernelParameterMutability ( vx_kernel  kernel,
vx_uint32  index,
vx_enum  mutability 
)

Allows users to set the mutability of the custom kernel. By default, kernel parameters are set to NVX_MUTABLE_INIT.

Parameters
[in]kernelThe reference to the kernel added with vxAddKernel.
[in]indexThe index of the parameter to add.
[in]mutabilityThe mutability of the parameter with regard to the kernel initialization function. This must be a value from nvx_mutability_e.
Returns
A vx_status_e enumerated value.
Return values
VX_SUCCESSParameter is successfully set on kernel.
VX_ERROR_INVALID_REFERENCEThe value passed as kernel was not a vx_kernel.
Precondition
vxAddKernel