lib: Move action state functions to correct C file
This commit is contained in:
parent
aff7efd891
commit
b5f175b78e
2 changed files with 25 additions and 25 deletions
|
@ -39,6 +39,31 @@
|
||||||
#define BOZORTH3_DEFAULT_THRESHOLD 40
|
#define BOZORTH3_DEFAULT_THRESHOLD 40
|
||||||
#define IMG_ENROLL_STAGES 5
|
#define IMG_ENROLL_STAGES 5
|
||||||
|
|
||||||
|
enum fp_imgdev_enroll_state
|
||||||
|
fpi_imgdev_get_action_state(struct fp_img_dev *imgdev)
|
||||||
|
{
|
||||||
|
return imgdev->action_state;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum fp_imgdev_action
|
||||||
|
fpi_imgdev_get_action(struct fp_img_dev *imgdev)
|
||||||
|
{
|
||||||
|
return imgdev->action;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
fpi_imgdev_get_action_result(struct fp_img_dev *imgdev)
|
||||||
|
{
|
||||||
|
return imgdev->action_result;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
fpi_imgdev_set_action_result(struct fp_img_dev *imgdev,
|
||||||
|
int action_result)
|
||||||
|
{
|
||||||
|
imgdev->action_result = action_result;
|
||||||
|
}
|
||||||
|
|
||||||
static int img_dev_open(struct fp_dev *dev, unsigned long driver_data)
|
static int img_dev_open(struct fp_dev *dev, unsigned long driver_data)
|
||||||
{
|
{
|
||||||
struct fp_img_dev *imgdev = g_malloc0(sizeof(*imgdev));
|
struct fp_img_dev *imgdev = g_malloc0(sizeof(*imgdev));
|
||||||
|
|
|
@ -615,31 +615,6 @@ API_EXPORTED int fp_minutia_get_coords(struct fp_minutia *minutia, int *coord_x,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum fp_imgdev_enroll_state
|
|
||||||
fpi_imgdev_get_action_state(struct fp_img_dev *imgdev)
|
|
||||||
{
|
|
||||||
return imgdev->action_state;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum fp_imgdev_action
|
|
||||||
fpi_imgdev_get_action(struct fp_img_dev *imgdev)
|
|
||||||
{
|
|
||||||
return imgdev->action;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
|
||||||
fpi_imgdev_get_action_result(struct fp_img_dev *imgdev)
|
|
||||||
{
|
|
||||||
return imgdev->action_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
fpi_imgdev_set_action_result(struct fp_img_dev *imgdev,
|
|
||||||
int action_result)
|
|
||||||
{
|
|
||||||
imgdev->action_result = action_result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Calculate squared standand deviation */
|
/* Calculate squared standand deviation */
|
||||||
int fpi_std_sq_dev(const unsigned char *buf, int size)
|
int fpi_std_sq_dev(const unsigned char *buf, int size)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue