GCC Code Coverage Report


Directory: ./
File: libfprint/fp-image.h
Date: 2024-05-04 14:54:39
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 1 1 100.0%
Branches: 7 13 53.8%

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
7/13
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 130 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 97 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✓ Branch 6 taken 97 times.
✓ Branch 8 taken 1 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
150 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