VPI - Vision Programming Interface

1.2 Release

Context.h File Reference

Functions and structures for dealing with VPI contexts. More...

#include "Export.h"
#include "Status.h"
#include "Types.h"
#include "Version.h"
#include <stdint.h>
+ Include dependency graph for Context.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VPI_INVALID_CONTEXT   ((VPIContext)-1)
 Represents a context was destroyed or is invalid for some other reason.
 
Special contexts
#define VPI_GLOBAL_CONTEXT   ((VPIContext)0x610BA1C1D)
 Global context identifier.
 

Functions

VPIStatus vpiContextCreate (uint32_t flags, VPIContext *ctx)
 Create a context instance. More...
 
VPIStatus vpiContextCreateCudaContextWrapper (uint32_t flags, CUcontext cudaCtx, VPIContext *ctx)
 Create a context instance that wraps a CUDA context. More...
 
void vpiContextDestroy (VPIContext ctx)
 Destroy a context instance as well as all resources it owns. More...
 
VPIStatus vpiContextSetParallelFor (VPIContext ctx, const VPIParallelForConfig *config)
 Controls low-level task parallelism of CPU devices owned by the context. More...
 
VPIStatus vpiContextGetParallelFor (VPIContext ctx, VPIParallelForConfig *config)
 Returns parameters set by vpiContextSetParallelFor. More...
 
VPIStatus vpiContextGetCurrent (VPIContext *ctx)
 Gets the context for the calling thread. More...
 
VPIStatus vpiContextSetCurrent (VPIContext ctx)
 Sets the context for the calling thread. More...
 
VPIStatus vpiContextPush (VPIContext ctx)
 Pushes the context to a per-thread context stack and sets this context as the current context for the calling thread. More...
 
VPIStatus vpiContextPop (VPIContext *ctx)
 Pops a context from a per-thread context stack and saves it to the ctx variable. More...
 
VPIStatus vpiContextGetFlags (VPIContext ctx, uint32_t *flags)
 Get the current context flags. More...
 

Detailed Description

Functions and structures for dealing with VPI contexts.

Definition in file Context.h.