VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Utility.hpp File Reference

Detailed Description

The NVXIO utility functions.

Definition in file Utility.hpp.

Go to the source code of this file.

Data Structures

struct  nvxio::ContextGuard
 ContextGuard is a wrapper for vx_context. More...
 

Namespaces

 nvxio
 Contains API for image reading and rendering.
 

Macros

#define NVXIO_ASSERT(cond)
 Checks a condition. More...
 
#define NVXIO_CHECK_REFERENCE(ref)   NVXIO_ASSERT(ref != 0 && vxGetStatus((vx_reference)ref) == VX_SUCCESS)
 Checks a reference. More...
 
#define NVXIO_SAFE_CALL(vxOp)
 Performs an operation. More...
 
#define NVXIO_THROW_EXCEPTION(msg)
 Throws std::runtime_error exception. More...
 

Functions

void nvxio::checkIfContextIsValid (vx_context context)
 Checks whether the context is valid and throws an exception in case of failure. More...
 
template<typename T , vx_size N>
vx_size nvxio::dimOf (T(&)[N])
 Returns the size of an array (the N template argument). More...
 
template<typename T , typename... Args>
std::unique_ptr< T > nvxio::makeUP (Args &&...args)
 make_unique function. More...
 
void VX_CALLBACK nvxio::stdoutLogCallback (vx_context context, vx_reference ref, vx_status status, const vx_char string[])
 The callback for OpenVX error logs, which prints messages to standard output. More...
 

Variables

const vx_float64 nvxio::PI = 3.1415926535897932
 Double-precision PI. More...
 
const vx_float32 nvxio::PI_F = 3.14159265f
 Float-precision PI. More...