GCC Code Coverage Report


Directory: ./
File: libfprint/drivers/aes3k.h
Date: 2024-09-16 14:36:32
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 1 2 50.0%

Line Branch Exec Source
1 /*
2 * AuthenTec AES3500/AES4000 common routines
3 *
4 * The AES3500 and AES4000 sensors are press-typed, and could capture
5 * fingerprint images in 128x128 and 96x96 pixels respectively. They
6 * share a same communication interface: a number of frames are
7 * transferred and captured, from which a final image could be
8 * assembled. Each frame has fixed height of 16 pixels.
9 *
10 * As the imaging area is a bit small, only a part of finger could be
11 * captured, the detected minutiae are not so many that the NBIS
12 * matching works not so good. The verification rate is very low at the
13 * moment.
14 *
15 * This work is derived from Daniel Drake's AES4000 driver.
16 *
17 * Copyright (C) 2013 Juvenn Woo <machese@gmail.com>
18 * Copyright (C) 2007-2008 Daniel Drake <dsd@gentoo.org>
19 *
20 * This library is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU Lesser General Public License as
22 * published by the Free Software Foundation; either version 2.1 of the
23 * License, or (at your option) any later version.
24 *
25 * This library is distributed in the hope that it will be useful, but
26 * WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
33 * 02110-1301 USA
34 *
35 */
36
37 #pragma once
38 #include "fpi-image-device.h"
39 #include "aeslib.h"
40
41 #define AES3K_FRAME_HEIGHT 16
42
43
1/2
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
4 G_DECLARE_DERIVABLE_TYPE (FpiDeviceAes3k, fpi_device_aes3k, FPI,
44 DEVICE_AES3K, FpImageDevice)
45
46 #define FPI_TYPE_DEVICE_AES3K (fpi_device_aes3k_get_type ())
47
48 struct _FpiDeviceAes3kClass
49 {
50 FpImageDeviceClass parent;
51
52 gsize frame_width; /* image size = frame_width x frame_width */
53 gsize frame_size; /* 4 bits/pixel: frame_width x AES3K_FRAME_HEIGHT / 2 */
54 gsize frame_number; /* number of frames */
55 gsize enlarge_factor;
56
57 gsize data_buflen; /* buffer length of usb bulk transfer */
58 struct aes_regwrite *init_reqs; /* initial values sent to device */
59 gsize init_reqs_len;
60 struct aes_regwrite *capture_reqs; /* capture values sent to device */
61 gsize capture_reqs_len;
62 };
63