Core feature-lib for tamper detection. More...
Data Structures | |
| struct | VFTR_TD_PARAM_S |
| Structure for the parameters of tamper detection. More... | |
| struct | VFTR_TD_STATUS_S |
| Structure for the result of tamper detection. More... | |
| struct | VFTR_TD_MPI_INPUT_S |
| Structure for the inputs of tamper detection within Region of interest. More... | |
| struct | VFTR_TD_INSTANCE_S |
| Structure for the tamper detection object. More... | |
Macros | |
| #define | VFTR_TD_SENSITIVITY_MIN 0 |
| #define | VFTR_TD_SENSITIVITY_MAX 255 |
| #define | VFTR_TD_ENDURANCE_MIN 0 |
| #define | VFTR_TD_ENDURANCE_MAX 255 |
| #define | VFTR_TD_ALARM_MASK |
Typedefs | |
| typedef struct vftr_td_algo_status_s | VFTR_TD_ALGO_STATUS_S |
Enumerations | |
| enum | VFTR_TD_ALARM_E { VFTR_TD_ALARM_MULTIPLE, VFTR_TD_ALARM_BLOCK, VFTR_TD_ALARM_DEFOCUSING, VFTR_TD_ALARM_REDIRECTING, VFTR_TD_ALARM_NUM } |
| Enumeration of tamper alarm. More... | |
Functions | |
| VFTR_TD_INSTANCE_S * | VFTR_TD_newInstance () |
| Create tamper detection instance. More... | |
| INT32 | VFTR_TD_deleteInstance (VFTR_TD_INSTANCE_S **instance) |
| Delete tamper detection instance. More... | |
| INT32 | VFTR_TD_setParam (VFTR_TD_INSTANCE_S *instance, const VFTR_TD_PARAM_S *param) |
| Set tamper detection parameters. More... | |
| INT32 | VFTR_TD_checkParam (const VFTR_TD_PARAM_S *param) |
| check tamper detection parameters. More... | |
| INT32 | VFTR_TD_getParam (const VFTR_TD_INSTANCE_S *instance, VFTR_TD_PARAM_S *param) |
| Get tamper detection parameters. More... | |
| INT32 | VFTR_TD_detect (VFTR_TD_INSTANCE_S *instance, const VFTR_TD_MPI_INPUT_S *mpi_input, VFTR_TD_STATUS_S *status) |
| Detect tamper. More... | |
| INT32 | VFTR_TD_getStat (const VFTR_TD_INSTANCE_S *instance, VFTR_TD_STATUS_S *stat) |
| Get tamper detection status. More... | |
| INT32 | VFTR_TD_init (VFTR_TD_INSTANCE_S *instance, const MPI_RECT_S *roi) |
| Initialize tamper detect instance value. More... | |
Core feature-lib for tamper detection.
| #define VFTR_TD_ALARM_MASK |
alarm bit mask.
| #define VFTR_TD_ENDURANCE_MAX 255 |
maxmal endurance.
| #define VFTR_TD_ENDURANCE_MIN 0 |
minimal endurance.
| #define VFTR_TD_SENSITIVITY_MAX 255 |
maxmal sensitivity.
| #define VFTR_TD_SENSITIVITY_MIN 0 |
minimal sensitivity.
| enum VFTR_TD_ALARM_E |
| INT32 VFTR_TD_checkParam | ( | const VFTR_TD_PARAM_S * | param | ) |
check tamper detection parameters.
| [in] | param | Tamper detection parameters. |
| 0 | Success. |
| EFAULT | Input pointer is NULL. |
| EINVAL | Tamper detection parameters are invalid. |
| INT32 VFTR_TD_deleteInstance | ( | VFTR_TD_INSTANCE_S ** | instance | ) |
Delete tamper detection instance.
| [in,out] | instance | Tamper detection instance. |
| 0 | success. |
| EFAULT | input pointer is NULL. |
| INT32 VFTR_TD_detect | ( | VFTR_TD_INSTANCE_S * | instance, |
| const VFTR_TD_MPI_INPUT_S * | mpi_input, | ||
| VFTR_TD_STATUS_S * | status | ||
| ) |
Detect tamper.
| [in,out] | instance | Tamper detection instance. |
| [in] | mpi_input | Tamper detection input. |
| [out] | status | Tamper detection output result. |
| 0 | Success. |
| EFAULT | Parameters are NULL. |
| INT32 VFTR_TD_getParam | ( | const VFTR_TD_INSTANCE_S * | instance, |
| VFTR_TD_PARAM_S * | param | ||
| ) |
Get tamper detection parameters.
| [in] | instance | TD instance. |
| [out] | param | TD parameters. |
| 0 | Success. |
| EFAULT | Input pointer is NULL. |
| INT32 VFTR_TD_getStat | ( | const VFTR_TD_INSTANCE_S * | instance, |
| VFTR_TD_STATUS_S * | status | ||
| ) |
Get tamper detection status.
| [in] | instance | Tamper detection instance. |
| [out] | status | Detected result. |
| 0 | Success. |
| EFAULT | Input pointer is NULL |
| INT32 VFTR_TD_init | ( | VFTR_TD_INSTANCE_S * | instance, |
| const MPI_RECT_S * | roi | ||
| ) |
Initialize tamper detect instance value.
| [in,out] | instance | Tamper detection instance. |
| [in] | roi | Region of interest to be detected |
| 0 | Success. |
| VFTR_TD_INSTANCE_S* VFTR_TD_newInstance | ( | ) |
Create tamper detection instance.
| Not NULL | success to create instance. |
| NULL | fail to create instance. |
| INT32 VFTR_TD_setParam | ( | VFTR_TD_INSTANCE_S * | instance, |
| const VFTR_TD_PARAM_S * | param | ||
| ) |
Set tamper detection parameters.
| [in,out] | instance | tamper detection instance. |
| [in] | param | tamper detection parameters. |
| 0 | success. |
| EFAULT | input pointer is NULL. |