Core feature-lib for automatic region of interest (AROI) More...
Data Structures | |
| struct | VFTR_AROI_PARAM_S |
| Struct for automatic region of interest parameter. More... | |
| struct | VFTR_AROI_STATUS_S |
| Struct for aroi status. More... | |
| struct | VFTR_AROI_INSTANCE_S |
| Struct for AROI instance status. More... | |
Macros | |
| #define | VFTR_AROI_MIN_UPDATE_RATIO (0) |
| #define | VFTR_AROI_MAX_UPDATE_RATIO (64) |
| #define | VFTR_AROI_AR_FRACTIONAL_BIT (13) |
| #define | VFTR_AROI_MIN_TRACK_DELTA (1) |
| #define | VFTR_AROI_MAX_TRACK_DELTA (255) |
| #define | VFTR_AROI_MIN_WAIT_TIME (0) |
| #define | VFTR_AROI_MAX_WAIT_TIME (1023) |
| #define | VFTR_AROI_MIN_RETURN_DELTA (1) |
| #define | VFTR_AROI_MAX_RETURN_DELTA (255) |
| #define | VFTR_AROI_MIN_OBJ_LIFE_TH (0) |
| #define | VFTR_AROI_MAX_OBJ_LIFE_TH (MPI_IVA_OD_MAX_LIFE) |
Functions | |
| VFTR_AROI_INSTANCE_S * | VFTR_AROI_newInstance () |
| Create AROI (automatic region of interest) instance. More... | |
| INT32 | VFTR_AROI_deleteInstance (VFTR_AROI_INSTANCE_S **instance) |
| Delete AROI instance. More... | |
| INT32 | VFTR_AROI_setParam (VFTR_AROI_INSTANCE_S *instance, const MPI_SIZE_S *res, const VFTR_AROI_PARAM_S *param) |
| Set AROI (automatic region of interest) parameters. More... | |
| INT32 | VFTR_AROI_checkParam (const VFTR_AROI_PARAM_S *param, const MPI_SIZE_S *res) |
| Check AROI parameters. More... | |
| INT32 | VFTR_AROI_getParam (const VFTR_AROI_INSTANCE_S *instance, VFTR_AROI_PARAM_S *param) |
| Get AROI parameters. More... | |
| INT32 | _VFTR_AROI_dump (VFTR_AROI_INSTANCE_S *instance, const MPI_IVA_OBJ_LIST_S *obj_list, VFTR_AROI_STATUS_S *status) |
| Dump AROI debugging info.. More... | |
| INT32 | _VFTR_AROI_detectRoi (VFTR_AROI_INSTANCE_S *instance, const MPI_IVA_OBJ_LIST_S *obj_list, VFTR_AROI_STATUS_S *status) |
| Detect AROI (automatic region of interest) result. More... | |
| FORCE_INLINE INT32 | VFTR_AROI_detectRoi (VFTR_AROI_INSTANCE_S *instance, const MPI_IVA_OBJ_LIST_S *obj_list, VFTR_AROI_STATUS_S *status) |
| An inline function. If variable vftr_dump_en is true, then call dump function for debugging. More... | |
| INT32 | VFTR_AROI_getStat (const VFTR_AROI_INSTANCE_S *instance, VFTR_AROI_STATUS_S *status) |
| Get AROI status. More... | |
| INT32 | VFTR_AROI_getTarget (const VFTR_AROI_INSTANCE_S *instance, MPI_RECT_POINT_S *target) |
| Get AROI target. More... | |
Core feature-lib for automatic region of interest (AROI)
| #define VFTR_AROI_AR_FRACTIONAL_BIT (13) |
Fraction bit of AROI
| #define VFTR_AROI_MAX_OBJ_LIFE_TH (MPI_IVA_OD_MAX_LIFE) |
Max object life threshold of AROI .
| #define VFTR_AROI_MAX_RETURN_DELTA (255) |
Max return delta of AROI.
| #define VFTR_AROI_MAX_TRACK_DELTA (255) |
Max track delta of AROI.
| #define VFTR_AROI_MAX_UPDATE_RATIO (64) |
Max update ratio of AROI.
| #define VFTR_AROI_MAX_WAIT_TIME (1023) |
Max wait time of AROI.
| #define VFTR_AROI_MIN_OBJ_LIFE_TH (0) |
Min object life threshold of AROI .
| #define VFTR_AROI_MIN_RETURN_DELTA (1) |
Min return delta of AROI.
| #define VFTR_AROI_MIN_TRACK_DELTA (1) |
Min track delta of AROI.
| #define VFTR_AROI_MIN_UPDATE_RATIO (0) |
Min update ratio of AROI.
| #define VFTR_AROI_MIN_WAIT_TIME (0) |
Min wait time of AROI.
| INT32 _VFTR_AROI_detectRoi | ( | VFTR_AROI_INSTANCE_S * | instance, |
| const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
| VFTR_AROI_STATUS_S * | status | ||
| ) |
Detect AROI (automatic region of interest) result.
| [in] | instance | AROI instance. |
| [in] | obj_list | OD object list. |
| [out] | status | AROI detected result. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| INT32 _VFTR_AROI_dump | ( | VFTR_AROI_INSTANCE_S * | instance, |
| const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
| VFTR_AROI_STATUS_S * | status | ||
| ) |
Dump AROI debugging info..
| [in] | instance | AROI instance. |
| [in] | obj_list | OD object list. |
| [out] | status | AROI detected result. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| INT32 VFTR_AROI_checkParam | ( | const VFTR_AROI_PARAM_S * | param, |
| const MPI_SIZE_S * | res | ||
| ) |
Check AROI parameters.
| [in] | param | AROI parameters. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| INT32 VFTR_AROI_deleteInstance | ( | VFTR_AROI_INSTANCE_S ** | instance | ) |
Delete AROI instance.
| [in] | instance | AROI instance. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| FORCE_INLINE INT32 VFTR_AROI_detectRoi | ( | VFTR_AROI_INSTANCE_S * | instance, |
| const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
| VFTR_AROI_STATUS_S * | status | ||
| ) |
An inline function. If variable vftr_dump_en is true, then call dump function for debugging.
| INT32 VFTR_AROI_getParam | ( | const VFTR_AROI_INSTANCE_S * | instance, |
| VFTR_AROI_PARAM_S * | param | ||
| ) |
Get AROI parameters.
| [in] | instance | AROI instance. |
| [out] | param | AROI parameters. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| INT32 VFTR_AROI_getStat | ( | const VFTR_AROI_INSTANCE_S * | instance, |
| VFTR_AROI_STATUS_S * | status | ||
| ) |
Get AROI status.
| [in] | instance | AROI instance. |
| [out] | status | AROI detected result. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| INT32 VFTR_AROI_getTarget | ( | const VFTR_AROI_INSTANCE_S * | instance, |
| MPI_RECT_POINT_S * | target | ||
| ) |
Get AROI target.
| [in] | instance | AROI instance. |
| [out] | target | AROI detected target. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| VFTR_AROI_INSTANCE_S* VFTR_AROI_newInstance | ( | ) |
Create AROI (automatic region of interest) instance.
| Not NULL | success to create instance |
| NULL | fail to create instance |
| INT32 VFTR_AROI_setParam | ( | VFTR_AROI_INSTANCE_S * | instance, |
| const MPI_SIZE_S * | res, | ||
| const VFTR_AROI_PARAM_S * | param | ||
| ) |
Set AROI (automatic region of interest) parameters.
| [in] | instance | AROI instance. |
| [in] | param | AROI parameters. |
| 0 | success. |
| EFAULT | input pointer is NULL. |