Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libfprint
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
42
Issues
42
List
Boards
Labels
Service Desk
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libfprint
libfprint
Commits
b5f175b7
Commit
b5f175b7
authored
Nov 29, 2018
by
Bastien Nocera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: Move action state functions to correct C file
parent
aff7efd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
libfprint/fpi-dev-img.c
libfprint/fpi-dev-img.c
+25
-0
libfprint/fpi-img.c
libfprint/fpi-img.c
+0
-25
No files found.
libfprint/fpi-dev-img.c
View file @
b5f175b7
...
...
@@ -39,6 +39,31 @@
#define BOZORTH3_DEFAULT_THRESHOLD 40
#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
)
{
struct
fp_img_dev
*
imgdev
=
g_malloc0
(
sizeof
(
*
imgdev
));
...
...
libfprint/fpi-img.c
View file @
b5f175b7
...
...
@@ -615,31 +615,6 @@ API_EXPORTED int fp_minutia_get_coords(struct fp_minutia *minutia, int *coord_x,
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 */
int
fpi_std_sq_dev
(
const
unsigned
char
*
buf
,
int
size
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment