Return images through enroll/verify path

Added new API functions to obtain images, even when scans are bad, perhaps
a useful way to show the user just how good/bad the scan actually was.

Drivers and examples updated accordingly.
This commit is contained in:
Daniel Drake
2007-11-13 20:46:15 +00:00
parent a86cd51959
commit 5485f8031d
10 changed files with 115 additions and 26 deletions

View File

@@ -557,7 +557,7 @@ static const unsigned char scan_comp[] = {
static const unsigned char poll_data[] = { 0x30, 0x01 };
static int enroll(struct fp_dev *dev, gboolean initial,
int stage, struct fp_print_data **_data)
int stage, struct fp_print_data **_data, struct fp_img **img)
{
unsigned char *data;
size_t data_len;
@@ -692,7 +692,8 @@ static const unsigned char verify_hdr[] = {
0x00
};
static int verify(struct fp_dev *dev, struct fp_print_data *print)
static int verify(struct fp_dev *dev, struct fp_print_data *print,
struct fp_img **img)
{
size_t data_len = sizeof(verify_hdr) + print->length;
unsigned char *data;