This section contains module APIs for the TIOVX LDC node tivxVpacLdcNode.
|
vx_status | app_init_ldc (vx_context context, LDCObj *ldcObj, SensorObj *sensorObj, char *objName, uint32_t num_cameras_enabled) |
| LDC module init helper function. More...
|
|
void | app_deinit_ldc (LDCObj *ldcObj) |
| LDC module deinit helper function. More...
|
|
void | app_delete_ldc (LDCObj *ldcObj) |
| LDC module delete helper function. More...
|
|
vx_status | app_create_graph_ldc (vx_graph graph, LDCObj *ldcObj, vx_object_array input_arr, const char *target) |
| LDC module create helper function. More...
|
|
vx_status | app_create_graph_ldc_write_output (vx_graph graph, LDCObj *ldcObj) |
| LDC module write output helper function. More...
|
|
vx_status | app_send_cmd_ldc_write_node (LDCObj *ldcObj, vx_uint32 start_frame, vx_uint32 num_frames, vx_uint32 num_skip) |
| LDC module write output helper function. More...
|
|
◆ LDC_TABLE_WIDTH
#define LDC_TABLE_WIDTH (1920) |
Default LDC table width. Can be modified as needed for use case.
◆ LDC_TABLE_HEIGHT
#define LDC_TABLE_HEIGHT (1080) |
Default LDC table width. Can be modified as needed for use case.
◆ LDC_DS_FACTOR
#define LDC_DS_FACTOR (2) |
Default LDC downscale factor. Can be modified as needed for use case.
◆ LDC_BLOCK_WIDTH
#define LDC_BLOCK_WIDTH (64) |
Default LDC block width. Can be modified as needed for use case.
◆ LDC_BLOCK_HEIGHT
#define LDC_BLOCK_HEIGHT (32) |
Default LDC block height. Can be modified as needed for use case.
◆ LDC_PIXEL_PAD
#define LDC_PIXEL_PAD (1) |
Default LDC pixel padding. Can be modified as needed for use case.
◆ app_init_ldc()
vx_status app_init_ldc |
( |
vx_context |
context, |
|
|
LDCObj * |
ldcObj, |
|
|
SensorObj * |
sensorObj, |
|
|
char * |
objName, |
|
|
uint32_t |
num_cameras_enabled |
|
) |
| |
LDC module init helper function.
This LDC init helper function will create all the data objects required to create the LDC node
- Parameters
-
[in] | context | OpenVX context which must be created using vxCreateContext |
[out] | ldcObj | LDC Module object which gets populated with LDC node data objects |
[in] | sensorObj | Sensor Module object used to initialize LDC data object parameters; must be initialized prior to passing to this function |
[in] | objName | String of the name of this object |
[in] | num_cameras_enabled | Number of cameras enabled |
◆ app_deinit_ldc()
void app_deinit_ldc |
( |
LDCObj * |
ldcObj | ) |
|
LDC module deinit helper function.
This LDC deinit helper function will release all the data objects created during the app_init_ldc call
- Parameters
-
[in,out] | ldcObj | LDC Module object which contains LDC node data objects which are released in this function |
◆ app_delete_ldc()
void app_delete_ldc |
( |
LDCObj * |
ldcObj | ) |
|
LDC module delete helper function.
This LDC delete helper function will delete the LDC node and write node that is created during the app_create_graph_ldc call
- Parameters
-
[in,out] | ldcObj | LDC Module object which contains LDC node objects which are released in this function |
◆ app_create_graph_ldc()
vx_status app_create_graph_ldc |
( |
vx_graph |
graph, |
|
|
LDCObj * |
ldcObj, |
|
|
vx_object_array |
input_arr, |
|
|
const char * |
target |
|
) |
| |
LDC module create helper function.
This LDC create helper function will create the node using all the data objects created during the app_init_ldc call. Internally calls app_create_graph_ldc_write_output if en_out_ldc_write is set
- Parameters
-
[in] | graph | OpenVX graph that has been created using vxCreateGraph and where the LDC node is created |
[in,out] | ldcObj | LDC Module object which contains LDC node and write node which are created in this function |
[in] | input_arr | Input object array to LDC node. Must be created separately using vxCreateObjectArray |
[in] | target | The name of the target (ASCII string) on which the node executes. |
◆ app_create_graph_ldc_write_output()
vx_status app_create_graph_ldc_write_output |
( |
vx_graph |
graph, |
|
|
LDCObj * |
ldcObj |
|
) |
| |
LDC module write output helper function.
This LDC create helper function will create the node for writing the LDC output
- Parameters
-
[in] | graph | OpenVX graph |
[in,out] | ldcObj | LDC Module object which contains LDC node and write node which are created in this function |
◆ app_send_cmd_ldc_write_node()
vx_status app_send_cmd_ldc_write_node |
( |
LDCObj * |
ldcObj, |
|
|
vx_uint32 |
start_frame, |
|
|
vx_uint32 |
num_frames, |
|
|
vx_uint32 |
num_skip |
|
) |
| |
LDC module write output helper function.
This LDC create helper function will create the node for writing the LDC output
- Parameters
-
[in] | ldcObj | LDC Module object which contains the write node used in this function |
[in] | start_frame | Starting frame to write |
[in] | num_frames | Total number of frames to write |
[in] | num_skip | Number of capture frames to skip writing |