CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
User Facing Import Kernel API

The Public Import Kernel API. More...

Functions

VX_API_ENTRY vx_status VX_API_CALL vxQueryMetaFormatAttribute (vx_meta_format meta, vx_enum attribute, void *ptr, vx_size size)
 This function allows a user to query the attributes of a vx_meta_format object in a kernel parameter.
 
VX_API_ENTRY vx_kernel VX_API_CALL vxImportKernelFromURL (vx_context context, const vx_char *type, const vx_char *url)
 Import a kernel from binary specified by URL.
 

Detailed Description

The Public Import Kernel API.

Function Documentation

◆ vxImportKernelFromURL()

VX_API_ENTRY vx_kernel VX_API_CALL vxImportKernelFromURL ( vx_context context,
const vx_char * type,
const vx_char * url )

#include <vx_khr_import_kernel.h>

Import a kernel from binary specified by URL.

The name of kernel parameters can be queried using the vxQueryReference API with vx_parameter as ref and VX_REFERENCE_NAME as attribute.

Parameters
context[in] The OpenVX context
type[in] Vendor-specific identifier that indicates to the implementation how to interpret the url. For example, if an implementation can interpret the url as a file, a folder a symbolic label, or a pointer, then a vendor may choose to use "vx_<vendor>_file", "vx_<vendor>_folder", "vx_<vendor>_label", and "vx_<vendor>_pointer", respectively for this field. Container types starting with "vx_khr_" are reserved. Refer to vendor documentation for list of container types supported
url[in] URL to binary container.
Return values
Onsuccess, a valid vx_kernel object. Calling vxGetStatus with the return value as a parameter will return VX_SUCCESS if the function was successful.

◆ vxQueryMetaFormatAttribute()

VX_API_ENTRY vx_status VX_API_CALL vxQueryMetaFormatAttribute ( vx_meta_format meta,
vx_enum attribute,
void * ptr,
vx_size size )

#include <vx_api.h>

This function allows a user to query the attributes of a vx_meta_format object in a kernel parameter.

The vx_meta_format object contains two types of information: data object meta data and some specific information that defines how the valid region of an image changes

The meta data attributes that can be queried are identified by this list: