GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 1 / 0 / 1
Branches: 45.8% 11 / 0 / 24

libfprint/fp-image.h
Line Branch Exec Source
1 /*
2 * FPrint Image
3 * Copyright (C) 2007 Daniel Drake <dsd@gentoo.org>
4 * Copyright (C) 2019 Benjamin Berg <bberg@redhat.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #pragma once
22
23 #include <gio/gio.h>
24
25 G_BEGIN_DECLS
26
27 #define FP_TYPE_IMAGE (fp_image_get_type ())
28
29 typedef struct fp_minutia FpMinutia;
30
31
11/24
None:
✓ Branch 8 → 9 taken 1 time.
✗ Branch 8 → 10 not taken.
✓ Branch 14 → 15 taken 1 time.
✗ Branch 14 → 16 not taken.
✗ Branch 16 → 17 not taken.
✓ Branch 16 → 18 taken 1 time.
✗ Branch 17 → 18 not taken.
✓ Branch 17 → 19 taken 1 time.
✗ Branch 18 → 19 not taken.
✓ Branch 18 → 20 taken 1 time.
✓ Branch 19 → 20 taken 1 time.
✗ Branch 19 → 21 not taken.
✓ Branch 20 → 21 taken 1 time.
✗ Branch 20 → 22 not taken.
✓ Branch 69 → 70 taken 33 times.
✗ Branch 69 → 71 not taken.
✗ Branch 73 → 74 not taken.
✗ Branch 73 → 75 not taken.
FP_IS_IMAGE:
✓ Branch 3 → 4 taken 96 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 96 times.
✗ Branch 4 → 6 not taken.
✗ Branch 5 → 6 not taken.
✓ Branch 5 → 7 taken 96 times.
191 G_DECLARE_FINAL_TYPE (FpImage, fp_image, FP, IMAGE, GObject)
32
33 FpImage *fp_image_new (gint width,
34 gint height);
35
36 guint fp_image_get_width (FpImage *self);
37 guint fp_image_get_height (FpImage *self);
38 gdouble fp_image_get_ppmm (FpImage *self);
39
40 GPtrArray * fp_image_get_minutiae (FpImage *self);
41
42 void fp_image_detect_minutiae (FpImage *self,
43 GCancellable *cancellable,
44 GAsyncReadyCallback callback,
45 gpointer user_data);
46 gboolean fp_image_detect_minutiae_finish (FpImage *self,
47 GAsyncResult *result,
48 GError **error);
49
50 const guchar * fp_image_get_data (FpImage *self,
51 gsize *len);
52 const guchar * fp_image_get_binarized (FpImage *self,
53 gsize *len);
54
55 void fp_minutia_get_coords (FpMinutia *min,
56 gint *x,
57 gint *y);
58
59 G_END_DECLS
60