Vision Apps User Guide

Introduction

This section contains module APIs for the MSC HW Mosaic Node tivxImgMosaicNode.

Data Structures

struct  ImgMosaicObj
 HW Mosaic Module Data Structure. More...
 

Functions

vx_status app_init_img_mosaic (vx_context context, ImgMosaicObj *imgMosaicObj, char *objName, vx_int32 bufq_depth)
 Mosaic module init helper function. More...
 
void app_deinit_img_mosaic (ImgMosaicObj *imgMosaicObj, vx_int32 bufq_depth)
 Mosaic module deinit helper function. More...
 
void app_delete_img_mosaic (ImgMosaicObj *imgMosaicObj)
 Mosaic module delete helper function. More...
 
vx_status app_create_graph_img_mosaic (vx_graph graph, ImgMosaicObj *imgMosaicObj, vx_image background)
 Mosaic module create helper function. More...
 
vx_status writeMosaicOutput (char *file_name, vx_image out_img)
 Mosaic module write image helper function. More...
 

Function Documentation

◆ app_init_img_mosaic()

vx_status app_init_img_mosaic ( vx_context  context,
ImgMosaicObj imgMosaicObj,
char *  objName,
vx_int32  bufq_depth 
)

Mosaic module init helper function.

This mosaic init helper function will create all the data objects required to create the mosaic node

Parameters
[in]contextOpenVX context which must be created using vxCreateContext
[out]imgMosaicObjMosaic Module object which gets populated with mosaic node data objects
[in]objNameString of the name of this object
[in]bufq_depthMosaic output buffer queue depth

◆ app_deinit_img_mosaic()

void app_deinit_img_mosaic ( ImgMosaicObj imgMosaicObj,
vx_int32  bufq_depth 
)

Mosaic module deinit helper function.

This mosaic deinit helper function will release all the data objects created during the app_init_img_mosaic call

Parameters
[in,out]imgMosaicObjMosaic Module object which contains mosaic node data objects which are released in this function
[in]bufq_depthMosaic output buffer queue depth

◆ app_delete_img_mosaic()

void app_delete_img_mosaic ( ImgMosaicObj imgMosaicObj)

Mosaic module delete helper function.

This mosaic delete helper function will delete the mosaic node that is created during the app_create_graph_img_mosaic call

Parameters
[in,out]imgMosaicObjMosaic Module object which contains mosaic node objects which are released in this function

◆ app_create_graph_img_mosaic()

vx_status app_create_graph_img_mosaic ( vx_graph  graph,
ImgMosaicObj imgMosaicObj,
vx_image  background 
)

Mosaic module create helper function.

This mosaic create helper function will create the node using all the data objects created during the app_init_img_mosaic call.

Parameters
[in]graphOpenVX graph that has been created using vxCreateGraph and where the mosaic node is created
[in,out]imgMosaicObjMosaic Module object which contains mosaic node which is created in this function
[in]backgroundBackground image provided in NV12 format will be used. If NULL, background will be black

◆ writeMosaicOutput()

vx_status writeMosaicOutput ( char *  file_name,
vx_image  out_img 
)

Mosaic module write image helper function.

This mosaic helper function will write the contents of the provided image to the path provided in the file_name argument

Parameters
[in]file_nameString of file path for where this output will be written
[in]out_imgOutput image to write to file