Core feature-lib for door keeper. More...
Data Structures | |
| struct | VFTR_DK_PARAM_S |
| Struct for door keeper parameter. More... | |
| struct | VFTR_DK_INSTANCE_STATUS_S |
| Struct for door keeper status of each object. More... | |
| struct | VFTR_DK_STATUS_S |
| Struct for door keeper status. More... | |
| struct | VFTR_DK_INSTANCE_S |
| Struct for door keeper instance. More... | |
Macros | |
| #define | IVA_JIF_HZ (100) |
| #define | VFTR_DK_OVERLAP_FRACTION 8 |
| #define | VFTR_DK_OVERLAP_WEIGHT_MAX (1 << (VFTR_DK_OVERLAP_FRACTION)) |
Enumerations | |
| enum | VFTR_DK_DET_RESULT_E { VFTR_DK_DET_UNKNOWN = 0, VFTR_DK_DET_APPEAR = 1, VFTR_DK_DET_PASSBY = 2, VFTR_DK_DET_APPROACH = 3, VFTR_DK_DET_LOITER = 4, VFTR_DK_DET_VISIT = 5, VFTR_DK_DET_NUM = 6 } |
| Enumeration of door keeper detection status. More... | |
Functions | |
| VFTR_DK_INSTANCE_S * | VFTR_DK_newInstance () |
| Create door keeper instance. More... | |
| INT32 | VFTR_DK_deleteInstance (VFTR_DK_INSTANCE_S **instance) |
| Delete door keeper instance. More... | |
| INT32 | VFTR_DK_setParam (VFTR_DK_INSTANCE_S *instance, const MPI_SIZE_S *res, const VFTR_DK_PARAM_S *param) |
| Set door keeper parameters. More... | |
| INT32 | VFTR_DK_checkParam (const VFTR_DK_PARAM_S *param) |
| Check door keeper parameters is valid or not. More... | |
| INT32 | VFTR_DK_getParam (const VFTR_DK_INSTANCE_S *instance, VFTR_DK_PARAM_S *param) |
| Get door keeper parameters. More... | |
| INT32 | _VFTR_DK_dump (VFTR_DK_INSTANCE_S *instance, const MPI_IVA_OBJ_LIST_S *obj_list, VFTR_DK_STATUS_S *status) |
| Dump DK debuging info. More... | |
| INT32 | _VFTR_DK_detect (VFTR_DK_INSTANCE_S *instance, const MPI_IVA_OBJ_LIST_S *obj_list, VFTR_DK_STATUS_S *status) |
| Detect door keeper. More... | |
| INT32 | VFTR_DK_getStat (const VFTR_DK_INSTANCE_S *instance, VFTR_DK_STATUS_S *stat) |
| Get door keeper detected result. More... | |
| FORCE_INLINE INT32 | VFTR_DK_detect (VFTR_DK_INSTANCE_S *instance, const MPI_IVA_OBJ_LIST_S *obj_list, VFTR_DK_STATUS_S *status) |
| An inline function. If variable vftr_dump_en is true, then call dump function for debugging. More... | |
Core feature-lib for door keeper.
| #define IVA_JIF_HZ (100) |
IVA jiffer time (in Hz)
| enum VFTR_DK_DET_RESULT_E |
Enumeration of door keeper detection status.
| INT32 _VFTR_DK_detect | ( | VFTR_DK_INSTANCE_S * | instance, |
| const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
| VFTR_DK_STATUS_S * | status | ||
| ) |
Detect door keeper.
| [in] | instance | Pointer to door keeper instance. |
| [in] | obj_list | Pointer to object list. |
| [out] | status | Pointer to door keeper detected result. |
| 0 | success. |
| -EFAULT | input pointer is NULL. |
| INT32 _VFTR_DK_dump | ( | VFTR_DK_INSTANCE_S * | instance, |
| const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
| VFTR_DK_STATUS_S * | status | ||
| ) |
Dump DK debuging info.
| [in] | instance | The pointer to door keeper parameters instance. |
| [in] | obj_list | The pointer to object list. |
| [out] | status | The pointer to door keeper parameters result. |
| 0 | success. |
| -EFAULT | input pointer is NULL. |
| INT32 VFTR_DK_checkParam | ( | const VFTR_DK_PARAM_S * | param | ) |
Check door keeper parameters is valid or not.
| [in] | param | Pointer to door keeper parameters. |
| 0 | success. |
| -EINVAL | door keeper parameters is invalid. |
| INT32 VFTR_DK_deleteInstance | ( | VFTR_DK_INSTANCE_S ** | instance | ) |
Delete door keeper instance.
| [in] | instance | Pointer to pointer to door keeper instance. |
| 0 | success. |
| -EFAULT | pointer of door keeper instance is NULL. |
| FORCE_INLINE INT32 VFTR_DK_detect | ( | VFTR_DK_INSTANCE_S * | instance, |
| const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
| VFTR_DK_STATUS_S * | status | ||
| ) |
An inline function. If variable vftr_dump_en is true, then call dump function for debugging.
| INT32 VFTR_DK_getParam | ( | const VFTR_DK_INSTANCE_S * | instance, |
| VFTR_DK_PARAM_S * | param | ||
| ) |
Get door keeper parameters.
| [in] | instance | Pointer to door keeper instance. |
| [out] | param | Pointer to door keeper parameters. |
| 0 | success. |
| -EFAULT | input pointer is NULL. |
| INT32 VFTR_DK_getStat | ( | const VFTR_DK_INSTANCE_S * | instance, |
| VFTR_DK_STATUS_S * | status | ||
| ) |
Get door keeper detected result.
| [in] | instance | Pointer to door keeper instance. |
| [out] | status | Pointer to door keeper detected result. |
| 0 | success. |
| -EFAULT | input pointer is NULL. |
| VFTR_DK_INSTANCE_S* VFTR_DK_newInstance | ( | ) |
Create door keeper instance.
| NULL | fail to create instance |
| Not NULL | success to create instance |
| INT32 VFTR_DK_setParam | ( | VFTR_DK_INSTANCE_S * | instance, |
| const MPI_SIZE_S * | res, | ||
| const VFTR_DK_PARAM_S * | param | ||
| ) |
Set door keeper parameters.
| [in] | instance | Pointer to door keeper instance. |
| [in] | res | Pointer to mpi resolution. |
| [in] | param | Pointer to door keeper parameters. |
| 0 | success. |
| -EFAULT | input pointer is NULL. |