This section contains module APIs for the MSC HW Mosaic Node tivxImgMosaicNode.
◆ 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] | context | OpenVX context which must be created using vxCreateContext |
[out] | imgMosaicObj | Mosaic Module object which gets populated with mosaic node data objects |
[in] | objName | String of the name of this object |
[in] | bufq_depth | Mosaic 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] | imgMosaicObj | Mosaic Module object which contains mosaic node data objects which are released in this function |
[in] | bufq_depth | Mosaic output buffer queue depth |
◆ app_delete_img_mosaic()
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] | imgMosaicObj | Mosaic 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] | graph | OpenVX graph that has been created using vxCreateGraph and where the mosaic node is created |
[in,out] | imgMosaicObj | Mosaic Module object which contains mosaic node which is created in this function |
[in] | background | Background 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_name | String of file path for where this output will be written |
[in] | out_img | Output image to write to file |