CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The Internal Context API. More...
Namespaces | |
namespace | coreflow |
The internal representation of a vx_array. | |
Classes | |
struct | vx_processor_t |
The processor structure which contains the graph queue. More... | |
struct | vx_module_t |
The tracking structure for a module. More... | |
struct | vx_external_t |
The framework's internal-external memory tracking structure. More... | |
struct | vx_memory_map_t |
The framework's mapping memory tracking structure. More... | |
Functions | |
coreflow::Context::Context () | |
Construct a new Context object. | |
coreflow::Context::Context (const Context &)=delete | |
Delete copy constructor and assignment operator to prevent copying. | |
coreflow::Context::~Context () | |
Destroy the Context object. | |
static vx_context | coreflow::Context::createContext () |
Create a new context. | |
vx_uint16 | coreflow::Context::vendorId () const |
Get vendor id. | |
vx_uint16 | coreflow::Context::version () const |
Get version number. | |
vx_uint32 | coreflow::Context::numModules () const |
Get number of loaded modules. | |
vx_uint32 | coreflow::Context::numReferences () const |
Get number of references. | |
const vx_char * | coreflow::Context::implName () const |
Get the implementation name. | |
const vx_char * | coreflow::Context::extensions () const |
Get the names of the extensions supported. | |
vx_size | coreflow::Context::convolutionMaxDim () const |
Get the max dimensions of a convolution supported. | |
vx_size | coreflow::Context::nonLinearMaxDim () const |
Get the max dimensions of a non linear supported. | |
vx_size | coreflow::Context::opticalFlowMaxWindowDim () const |
Get the optical flow max window dimension supported. | |
vx_border_t | coreflow::Context::immediateBorder () const |
Get the immediate border. | |
vx_enum | coreflow::Context::immediateBorderPolicy () const |
Get the immediate border policy. | |
vx_uint32 | coreflow::Context::numUniqueKernels () const |
Get the number of unique kernels. | |
vx_size | coreflow::Context::maxTensorDims () const |
Get the max tensor dimensions supported. | |
std::vector< vx_kernel_info_t > | coreflow::Context::uniqueKernelTable () |
Get the unique kernel information. | |
void | coreflow::Context::setLoggingEnabled (vx_bool flag) |
Set the logging enabled state. | |
void | coreflow::Context::setPerfEnabled (vx_bool flag) |
Set the perf enabled state. | |
static vx_bool | coreflow::Context::isValidContext (vx_context context) |
This determines if a context is valid. | |
static vx_bool | coreflow::Context::isValidType (vx_enum type) |
This returns true if the type is within the definition of types in OpenVX. | |
static vx_bool | coreflow::Context::isValidImport (vx_enum type) |
This determines if the import type is supported. | |
vx_target * | coreflow::Context::findTargetByString (const char *target_string) |
Find target by string. | |
vx_bool | coreflow::Context::addAccessor (vx_size size, vx_enum usage, void *&ptr, vx_reference ref, vx_uint32 *pIndex, void *extra_data) |
Searches the accessors list to find an open spot and then will allocate memory if needed. | |
void | coreflow::Context::removeAccessor (vx_uint32 index) |
Finds and removes an accessor from the list. | |
vx_bool | coreflow::Context::findAccessor (const void *ptr, vx_uint32 *pIndex) |
Finds the accessor in the list and returns the index. | |
vx_bool | coreflow::Context::memoryMap (vx_reference ref, vx_size size, vx_enum usage, vx_enum mem_type, vx_uint32 flags, void *extra_data, void **ptr, vx_map_id *map_id) |
Searches the memory maps list to find an open slot and allocate memory for mapped buffer. | |
vx_bool | coreflow::Context::findMemoryMap (vx_reference ref, vx_map_id map_id) |
Checks the consistency of given ref & map_id by looking into memory maps list. | |
void | coreflow::Context::memoryUnmap (vx_uint32 map_id) |
Finds and removes a map_id from the list. | |
static vx_bool | coreflow::Context::isValidBorderMode (vx_enum mode) |
Validate border mode supported. | |
vx_enum | coreflow::Context::registerUserStruct (vx_size size) |
Register a user struct with a certain number of bytes. | |
vx_enum | coreflow::Context::getUserStructByName (const vx_char *name) |
Get the User Struct By Name object. | |
vx_status | coreflow::Context::getUserStructNameByEnum (vx_enum user_struct_type, vx_char *type_name, vx_size name_size) |
Get the User Struct Name By Enum object. | |
vx_status | coreflow::Context::getUserStructEnumByName (const vx_char *type_name, vx_enum *user_struct_type) |
Get the User Struct Enum By Name object. | |
vx_enum | coreflow::Context::registerUserStructWithName (vx_size size, const vx_char *type_name) |
Register user struct with name. | |
vx_status | coreflow::Context::allocateKernelId (vx_enum *pKernelEnumId) |
Allocate a unique kernel id. | |
vx_status | coreflow::Context::allocateLibraryId (vx_enum *pLibraryId) |
Allocate a unique library id. | |
vx_status | coreflow::Context::setImmediateModeTarget (vx_enum target_enum, const char *target_string) |
Set the Immediate Mode Target. | |
The Internal Context API.
vx_bool coreflow::Context::addAccessor | ( | vx_size | size, |
vx_enum | usage, | ||
void *& | ptr, | ||
vx_reference | ref, | ||
vx_uint32 * | pIndex, | ||
void * | extra_data ) |
#include <vx_context.h>
Searches the accessors list to find an open spot and then will allocate memory if needed.
#include <vx_context.h>
Allocate a unique kernel id.
pKernelEnumId | Pointer to allocated kernel id by the framework. |
#include <vx_context.h>
Allocate a unique library id.
pLibraryId | Pointer to allocated library id by the framework. |
coreflow::Context::Context | ( | ) |
#include <vx_context.h>
Construct a new Context object.
|
delete |
#include <vx_context.h>
Delete copy constructor and assignment operator to prevent copying.
vx_size coreflow::Context::convolutionMaxDim | ( | ) | const |
#include <vx_context.h>
Get the max dimensions of a convolution supported.
|
static |
#include <vx_context.h>
Create a new context.
const vx_char * coreflow::Context::extensions | ( | ) | const |
#include <vx_context.h>
Get the names of the extensions supported.
#include <vx_context.h>
Finds the accessor in the list and returns the index.
vx_bool coreflow::Context::findMemoryMap | ( | vx_reference | ref, |
vx_map_id | map_id ) |
#include <vx_context.h>
Checks the consistency of given ref & map_id by looking into memory maps list.
vx_target * coreflow::Context::findTargetByString | ( | const char * | target_string | ) |
#include <vx_context.h>
Find target by string.
target_string | target string |
#include <vx_context.h>
Get the User Struct By Name object.
name | The user struct name. |
vx_status coreflow::Context::getUserStructEnumByName | ( | const vx_char * | type_name, |
vx_enum * | user_struct_type ) |
#include <vx_context.h>
Get the User Struct Enum By Name object.
type_name | The user struct name. |
user_struct_type | The user struct type enumeration. |
vx_status coreflow::Context::getUserStructNameByEnum | ( | vx_enum | user_struct_type, |
vx_char * | type_name, | ||
vx_size | name_size ) |
#include <vx_context.h>
Get the User Struct Name By Enum object.
user_struct_type | Enumeration for user struct type. |
type_name | Name of user struct type. |
name_size | Size of user struct name. |
vx_border_t coreflow::Context::immediateBorder | ( | ) | const |
vx_enum coreflow::Context::immediateBorderPolicy | ( | ) | const |
#include <vx_context.h>
Get the immediate border policy.
const vx_char * coreflow::Context::implName | ( | ) | const |
#include <vx_context.h>
Validate border mode supported.
mode | border mode |
|
static |
#include <vx_context.h>
This determines if a context is valid.
[in] | context | The pointer to the context to test. |
vx_true_e | The context is valid. |
vx_false_e | The context is not valid. |
#include <vx_context.h>
This determines if the import type is supported.
[in] | type | The vx_import_type_e value. |
#include <vx_context.h>
This returns true if the type is within the definition of types in OpenVX.
[in] | type | The vx_type_e value. |
vx_size coreflow::Context::maxTensorDims | ( | ) | const |
#include <vx_context.h>
Get the max tensor dimensions supported.
vx_bool coreflow::Context::memoryMap | ( | vx_reference | ref, |
vx_size | size, | ||
vx_enum | usage, | ||
vx_enum | mem_type, | ||
vx_uint32 | flags, | ||
void * | extra_data, | ||
void ** | ptr, | ||
vx_map_id * | map_id ) |
#include <vx_context.h>
Searches the memory maps list to find an open slot and allocate memory for mapped buffer.
void coreflow::Context::memoryUnmap | ( | vx_uint32 | map_id | ) |
#include <vx_context.h>
Finds and removes a map_id from the list.
vx_size coreflow::Context::nonLinearMaxDim | ( | ) | const |
#include <vx_context.h>
Get the max dimensions of a non linear supported.
vx_uint32 coreflow::Context::numModules | ( | ) | const |
#include <vx_context.h>
Get number of loaded modules.
vx_uint32 coreflow::Context::numReferences | ( | ) | const |
#include <vx_context.h>
Get number of references.
vx_uint32 coreflow::Context::numUniqueKernels | ( | ) | const |
#include <vx_context.h>
Get the number of unique kernels.
vx_size coreflow::Context::opticalFlowMaxWindowDim | ( | ) | const |
#include <vx_context.h>
Get the optical flow max window dimension supported.
#include <vx_context.h>
Register a user struct with a certain number of bytes.
size | The size in bytes of the user struct. |
#include <vx_context.h>
Register user struct with name.
size | Size of user struct name. |
type_name | The user struct name. |
void coreflow::Context::removeAccessor | ( | vx_uint32 | index | ) |
#include <vx_context.h>
Finds and removes an accessor from the list.
vx_status coreflow::Context::setImmediateModeTarget | ( | vx_enum | target_enum, |
const char * | target_string ) |
#include <vx_context.h>
Set the Immediate Mode Target.
target_enum | The target enumeration. |
target_string | The target string. |
void coreflow::Context::setLoggingEnabled | ( | vx_bool | flag | ) |
#include <vx_context.h>
Set the logging enabled state.
OPENVX_USE_OPENCL_INTEROP
flag | vx_bool indicating whether to enable or disable logging |
void coreflow::Context::setPerfEnabled | ( | vx_bool | flag | ) |
#include <vx_context.h>
Set the perf enabled state.
flag | vx_bool indicating whether to enable or disable performance tracking |
std::vector< vx_kernel_info_t > coreflow::Context::uniqueKernelTable | ( | ) |
#include <vx_context.h>
Get the unique kernel information.
vx_uint16 coreflow::Context::vendorId | ( | ) | const |
vx_uint16 coreflow::Context::version | ( | ) | const |
coreflow::Context::~Context | ( | ) |
#include <vx_context.h>
Destroy the Context object.