CoreFlow 1.0.0
A modern orchestration and execution runtime
Loading...
Searching...
No Matches
Internal Memory API.

The Internal Memory API. More...

Namespaces

namespace  coreflow
 The internal representation of a vx_array.
 

Classes

struct  vx_memory_t
 The raw definition of memory layout. More...
 

Functions

static vx_bool coreflow::Memory::freeMemory (vx_context context, vx_memory_t *memory)
 Frees a memory block.
 
static vx_bool coreflow::Memory::allocateMemory (vx_context context, vx_memory_t *memory)
 Allocates a memory block.
 
static void coreflow::Memory::printMemory (vx_memory_t *mem)
 Print info of memory block.
 
static vx_size coreflow::Memory::computeMemorySize (vx_memory_t *memory, vx_uint32 p)
 Compute size of memory block.
 
static void * coreflow::Memory::formatMemoryPtr (vx_memory_t *memory, vx_uint32 c, vx_uint32 x, vx_uint32 y, vx_uint32 p)
 Get pointer to memory block.
 

Detailed Description

The Internal Memory API.

Function Documentation

◆ allocateMemory()

static vx_bool coreflow::Memory::allocateMemory ( vx_context context,
vx_memory_t * memory )
static

#include <vx_memory.h>

Allocates a memory block.

Parameters
[in]contextThe reference to the overall context.
[in]memoryThe memory block.
Returns
vx_true_e if successful.

◆ computeMemorySize()

static vx_size coreflow::Memory::computeMemorySize ( vx_memory_t * memory,
vx_uint32 p )
static

#include <vx_memory.h>

Compute size of memory block.

Parameters
[in]memoryThe memory block.
[in]pThe plane index.
Returns
Size of memory block.

◆ formatMemoryPtr()

static void * coreflow::Memory::formatMemoryPtr ( vx_memory_t * memory,
vx_uint32 c,
vx_uint32 x,
vx_uint32 y,
vx_uint32 p )
static

#include <vx_memory.h>

Get pointer to memory block.

Parameters
memoryThe memory block.
cThe channel index.
xThe stride in x-dim.
yThe stride in y-dim.
pThe plane index.
Returns
Pointer to memory block.

◆ freeMemory()

static vx_bool coreflow::Memory::freeMemory ( vx_context context,
vx_memory_t * memory )
static

#include <vx_memory.h>

Frees a memory block.

Parameters
[in]contextThe reference to the overall context.
[in]memoryThe memory block.
Returns
vx_true_e if successful.

◆ printMemory()

static void coreflow::Memory::printMemory ( vx_memory_t * mem)
static

#include <vx_memory.h>

Print info of memory block.

Parameters
[in]memThe memory block.