|
CoreFlow 1.0.0
A modern orchestration and execution runtime
|
The internal Image API. More...
Namespaces | |
| namespace | coreflow |
| The internal representation of a vx_array. | |
Macros | |
| #define | VX_PLANE_MAX (4) |
| The maximum number of 2d planes an image may have. | |
Enumerations | |
| enum | vx_dim_e { VX_DIM_C = 0 , VX_DIM_X , VX_DIM_Y , VX_DIM_MAX } |
| The dimensions enumeration, also stride enumerations. More... | |
| enum | vx_bounds_e { VX_BOUND_START , VX_BOUND_END , VX_BOUND_MAX } |
| The bounds enumeration. More... | |
Functions | |
| coreflow::Image::Image (vx_context context, vx_reference ref) | |
| Construct a new Image object. | |
| coreflow::Image::~Image () | |
| Destroy the Image object. | |
| static vx_bool | coreflow::Image::isValidImage (vx_image image) |
| Used to validate the vx_image types. | |
| static vx_image | coreflow::Image::createImage (vx_context context, vx_uint32 width, vx_uint32 height, vx_df_image color, vx_bool is_virtual=vx_false_e) |
| Create a Image object. | |
| void | coreflow::Image::initPlane (vx_uint32 index, vx_uint32 soc, vx_uint32 channels, vx_uint32 width, vx_uint32 height) |
| Used to initialize a single plane in an image object. | |
| void | coreflow::Image::initImage (vx_uint32 width, vx_uint32 height, vx_df_image color) |
| Used to initialize the image meta-data structure with the correct values per the df_image code. | |
| vx_bool | coreflow::Image::allocateImage () |
| Used to allocate an image object. | |
| static vx_bool | coreflow::Image::isSupportedFourcc (vx_df_image code) |
| Determines which VX_DF_IMAGE are supported in the sample implementation. | |
| static vx_bool | coreflow::Image::isValidDimensions (vx_uint32 width, vx_uint32 height, vx_df_image color) |
| Validate image dimensions. | |
| static vx_uint32 | coreflow::Image::computePatchOffset (vx_uint32 x, vx_uint32 y, const vx_imagepatch_addressing_t *addr) |
| Compute patch offset. | |
| static vx_uint32 | coreflow::Image::computePlaneOffset (vx_image image, vx_uint32 x, vx_uint32 y, vx_uint32 p) |
| Compute plane offset. | |
| static vx_uint32 | coreflow::Image::computePatchRangeSize (vx_uint32 range, const vx_imagepatch_addressing_t *addr) |
| Compute patch range size. | |
| static vx_uint32 | coreflow::Image::computePlaneRangeSize (vx_image image, vx_uint32 range, vx_uint32 p) |
| Compute plane range size. | |
| static vx_size | coreflow::Image::sizeOfChannel (vx_df_image color) |
| Size of color channel. | |
| vx_uint32 | coreflow::Image::wdth () const |
| Get the width of the image. | |
| vx_uint32 | coreflow::Image::hght () const |
| Get the height of the image. | |
| vx_df_image | coreflow::Image::fmt () const |
| Get the format of the image. | |
| vx_size | coreflow::Image::numPlanes () const |
| Get the number of planes in the image. | |
| vx_enum | coreflow::Image::colorSpace () const |
| Get the color space of the image. | |
| vx_enum | coreflow::Image::colorRange () const |
| Get the color range of the image. | |
| vx_size | coreflow::Image::size () const |
| Get size of image. | |
| vx_enum | coreflow::Image::memoryType () const |
| Get the memory type. | |
| void | coreflow::Image::setSpace (vx_enum value) |
| Set the color space. | |
| vx_status | coreflow::Image::swapHandle (void *const new_ptrs[], void *prev_ptrs[], vx_size num_planes) |
| Swap the handle of the image. | |
| vx_status | coreflow::Image::getValidRegion (vx_rectangle_t *rect) |
| Get the Valid Region object. | |
| vx_status | coreflow::Image::setValidRect (const vx_rectangle_t *rect) |
| Set the Valid Region object. | |
| vx_status | coreflow::Image::setPixelValues (const vx_pixel_value_t *pixel_value) |
| Get the pixel values of the image. | |
| vx_size | coreflow::Image::computePatchSize (const vx_rectangle_t *rect, vx_uint32 plane_index) |
| Compute the size of the patch in bytes. | |
| vx_status | coreflow::Image::accessPatch (const vx_rectangle_t *rect, vx_uint32 plane_index, vx_imagepatch_addressing_t *addr, void **ptr, vx_enum usage) |
| Access the image patch. | |
| vx_status | coreflow::Image::commitPatch (const vx_rectangle_t *rect, vx_uint32 plane_index, const vx_imagepatch_addressing_t *addr, const void *ptr) |
| Commit the image patch. | |
| vx_status | coreflow::Image::copyPatch (const vx_rectangle_t *rect, vx_uint32 plane_index, const vx_imagepatch_addressing_t *addr, void *ptr, vx_enum usage, vx_enum mem_type) |
| Copy the image patch to/from user memory. | |
| vx_status | coreflow::Image::mapPatch (const vx_rectangle_t *rect, vx_uint32 plane_index, vx_map_id *map_id, vx_imagepatch_addressing_t *addr, void **ptr, vx_enum usage, vx_enum mem_type, vx_uint32 flags) |
| Used to map an image patch. | |
| vx_status | coreflow::Image::unmapPatch (vx_map_id map_id) |
| Unmap an image patch. | |
| static void | coreflow::Image::printImage (vx_image image) |
| Prints the values of the images. | |
| static void | coreflow::Image::printImageAddressing (const vx_imagepatch_addressing_t *addr) |
| Prints the addressing information of an image patch. | |
| void | coreflow::Image::freeImage () |
| Used to free an image object. Only the data is freed, not the meta-data structure. | |
| void | coreflow::Image::destruct () override final |
| Destroys an image. | |
The internal Image API.
| #define VX_PLANE_MAX (4) |
#include <vx_internal.h>
The maximum number of 2d planes an image may have.
| enum vx_bounds_e |
#include <vx_internal.h>
The bounds enumeration.
| Enumerator | |
|---|---|
| VX_BOUND_START | The starting inclusive bound. |
| VX_BOUND_END | The ending exclusive bound. |
| VX_BOUND_MAX | [hidden] The maximum bound dimension |
| enum vx_dim_e |
#include <vx_internal.h>
The dimensions enumeration, also stride enumerations.
| Enumerator | |
|---|---|
| VX_DIM_C | Channels dimension, stride. |
| VX_DIM_X | Width (dimension) or x stride. |
| VX_DIM_Y | Height (dimension) or y stride. |
| VX_DIM_MAX | [hidden] The maximum number of dimensions |
| vx_status coreflow::Image::accessPatch | ( | const vx_rectangle_t * | rect, |
| vx_uint32 | plane_index, | ||
| vx_imagepatch_addressing_t * | addr, | ||
| void ** | ptr, | ||
| vx_enum | usage ) |
#include <vx_image.h>
Access the image patch.
| rect | The rectangle to access |
| plane_index | The plane index to access |
| addr | The addressing information for the patch |
| ptr | The pointer to the user memory |
| usage | The usage of the memory (read/write) |
| vx_bool coreflow::Image::allocateImage | ( | ) |
#include <vx_image.h>
Used to allocate an image object.
| vx_enum coreflow::Image::colorRange | ( | ) | const |
| vx_enum coreflow::Image::colorSpace | ( | ) | const |
| vx_status coreflow::Image::commitPatch | ( | const vx_rectangle_t * | rect, |
| vx_uint32 | plane_index, | ||
| const vx_imagepatch_addressing_t * | addr, | ||
| const void * | ptr ) |
#include <vx_image.h>
Commit the image patch.
| rect | The rectangle to commit |
| plane_index | The plane index to commit |
| addr | The addressing information for the patch |
| ptr | The pointer to the user memory |
|
static |
#include <vx_image.h>
Compute patch offset.
| x | x coord |
| y | y coord |
| addr | image patch addressing |
|
static |
#include <vx_image.h>
Compute patch range size.
| range | range |
| addr | image patch addressing |
| vx_size coreflow::Image::computePatchSize | ( | const vx_rectangle_t * | rect, |
| vx_uint32 | plane_index ) |
#include <vx_image.h>
Compute the size of the patch in bytes.
| rect | The rectangle to compute the size for |
| plane_index | The plane index to compute the size for |
|
static |
#include <vx_image.h>
Compute plane offset.
| image | image |
| x | x coord |
| y | y coord |
| p | plane index |
|
static |
#include <vx_image.h>
Compute plane range size.
| image | image |
| range | range |
| p | plane index |
| vx_status coreflow::Image::copyPatch | ( | const vx_rectangle_t * | rect, |
| vx_uint32 | plane_index, | ||
| const vx_imagepatch_addressing_t * | addr, | ||
| void * | ptr, | ||
| vx_enum | usage, | ||
| vx_enum | mem_type ) |
#include <vx_image.h>
Copy the image patch to/from user memory.
| rect | The rectangle to copy |
| plane_index | The plane index to copy |
| addr | The addressing information for the patch |
| ptr | The pointer to the user memory |
| usage | The usage of the memory (read/write) |
| mem_type | The type of memory (host, opencl, etc.) |
|
static |
#include <vx_image.h>
Create a Image object.
| [in] | context | context to associate image to |
| [in] | width | width of image |
| [in] | height | height of image |
| [in] | color | format / color of image |
| [in] | is_virtual | indicate of object is virtual or not |
|
finaloverridevirtual |
| vx_df_image coreflow::Image::fmt | ( | ) | const |
| void coreflow::Image::freeImage | ( | ) |
#include <vx_image.h>
Used to free an image object. Only the data is freed, not the meta-data structure.
| vx_status coreflow::Image::getValidRegion | ( | vx_rectangle_t * | rect | ) |
#include <vx_image.h>
Get the Valid Region object.
| rect | The rectangle to fill with the valid region |
| vx_uint32 coreflow::Image::hght | ( | ) | const |
| coreflow::Image::Image | ( | vx_context | context, |
| vx_reference | ref ) |
#include <vx_image.h>
Construct a new Image object.
| context | The context associated with this obj |
| ref | The parent ref of this obj |
| void coreflow::Image::initImage | ( | vx_uint32 | width, |
| vx_uint32 | height, | ||
| vx_df_image | color ) |
#include <vx_image.h>
Used to initialize the image meta-data structure with the correct values per the df_image code.
| [in] | width | Width in pixels |
| [in] | height | Height in pixels |
| [in] | color | VX_DF_IMAGE color space. |
| void coreflow::Image::initPlane | ( | vx_uint32 | index, |
| vx_uint32 | soc, | ||
| vx_uint32 | channels, | ||
| vx_uint32 | width, | ||
| vx_uint32 | height ) |
#include <vx_image.h>
Used to initialize a single plane in an image object.
| [in] | index | The index to the plane. |
| [in] | soc | The unit size (size of pixel). |
| [in] | channels | The number of channels in the plane. |
| [in] | width | The width in pixels. |
| [in] | height | The height in pixels. |
|
static |
#include <vx_image.h>
Determines which VX_DF_IMAGE are supported in the sample implementation.
| [in] | code | The df_image code to test. |
| vx_bool | |
| vx_true_e | The code is supported. |
| vx_false_e | The code is not supported. |
|
static |
#include <vx_image.h>
Validate image dimensions.
| width | width |
| height | height |
| color | color |
#include <vx_image.h>
Used to validate the vx_image types.
| [in] | image | The vx_image to validate. |
| vx_status coreflow::Image::mapPatch | ( | const vx_rectangle_t * | rect, |
| vx_uint32 | plane_index, | ||
| vx_map_id * | map_id, | ||
| vx_imagepatch_addressing_t * | addr, | ||
| void ** | ptr, | ||
| vx_enum | usage, | ||
| vx_enum | mem_type, | ||
| vx_uint32 | flags ) |
#include <vx_image.h>
Used to map an image patch.
| [in] | rect | The rectangle to map. |
| [in] | plane_index | The plane index to map. |
| [out] | map_id | The map id to use. |
| [out] | addr | The addressing information for the patch. |
| [out] | ptr | The pointer to the mapped memory. |
| [in] | usage | The usage of the memory (read/write). |
| [in] | mem_type | The type of memory (host, opencl, etc.). |
| [in] | flags | Additional flags for mapping. |
| vx_enum coreflow::Image::memoryType | ( | ) | const |
| vx_size coreflow::Image::numPlanes | ( | ) | const |
|
static |
#include <vx_image.h>
Prints the values of the images.
|
static |
#include <vx_image.h>
Prints the addressing information of an image patch.
| [in] | addr | The addressing structure. |
| vx_status coreflow::Image::setPixelValues | ( | const vx_pixel_value_t * | pixel_value | ) |
#include <vx_image.h>
Get the pixel values of the image.
| pixel_value | The pixel value structure to fill |
| void coreflow::Image::setSpace | ( | vx_enum | value | ) |
| vx_status coreflow::Image::setValidRect | ( | const vx_rectangle_t * | rect | ) |
#include <vx_image.h>
Set the Valid Region object.
| rect | The rectangle to set as the valid region |
| vx_size coreflow::Image::size | ( | ) | const |
|
static |
| vx_status coreflow::Image::swapHandle | ( | void *const | new_ptrs[], |
| void * | prev_ptrs[], | ||
| vx_size | num_planes ) |
#include <vx_image.h>
Swap the handle of the image.
| new_ptrs | The new pointers to the image planes |
| prev_ptrs | The previous pointers to the image planes |
| num_planes | The number of planes in the image |
#include <vx_image.h>
Unmap an image patch.
| map_id | The map id to unmap |
| vx_uint32 coreflow::Image::wdth | ( | ) | const |
| coreflow::Image::~Image | ( | ) |
#include <vx_image.h>
Destroy the Image object.