Leptonica
1.83.1
Image processing and image analysis suite
bmf.h
Go to the documentation of this file.
1
/*====================================================================*
2
- Copyright (C) 2001 Leptonica. All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions
6
- are met:
7
- 1. Redistributions of source code must retain the above copyright
8
- notice, this list of conditions and the following disclaimer.
9
- 2. Redistributions in binary form must reproduce the above
10
- copyright notice, this list of conditions and the following
11
- disclaimer in the documentation and/or other materials
12
- provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY
18
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
*====================================================================*/
26
27
#ifndef LEPTONICA_BMF_H
28
#define LEPTONICA_BMF_H
29
38
enum
{
39
SPLIT_ON_LEADING_WHITE
= 1,
40
SPLIT_ON_BLANK_LINE
= 2,
41
SPLIT_ON_BOTH
= 3
42
};
43
44
46
struct
L_Bmf
47
{
48
struct
Pixa
*
pixa
;
49
l_int32
size
;
50
char
*
directory
;
51
l_int32
baseline1
;
52
l_int32
baseline2
;
53
l_int32
baseline3
;
54
l_int32
lineheight
;
55
l_int32
kernwidth
;
56
l_int32
spacewidth
;
57
l_int32
vertlinesep
;
58
l_int32 *
fonttab
;
59
l_int32 *
baselinetab
;
60
l_int32 *
widthtab
;
61
};
62
typedef
struct
L_Bmf
L_BMF
;
63
64
#endif
/* LEPTONICA_BMF_H */
SPLIT_ON_BOTH
@ SPLIT_ON_BOTH
Definition:
bmf.h:41
SPLIT_ON_LEADING_WHITE
@ SPLIT_ON_LEADING_WHITE
Definition:
bmf.h:39
SPLIT_ON_BLANK_LINE
@ SPLIT_ON_BLANK_LINE
Definition:
bmf.h:40
L_Bmf
Definition:
bmf.h:47
L_Bmf::baselinetab
l_int32 * baselinetab
Definition:
bmf.h:59
L_Bmf::baseline3
l_int32 baseline3
Definition:
bmf.h:53
L_Bmf::fonttab
l_int32 * fonttab
Definition:
bmf.h:58
L_Bmf::widthtab
l_int32 * widthtab
Definition:
bmf.h:60
L_Bmf::directory
char * directory
Definition:
bmf.h:50
L_Bmf::baseline1
l_int32 baseline1
Definition:
bmf.h:51
L_Bmf::spacewidth
l_int32 spacewidth
Definition:
bmf.h:56
L_Bmf::vertlinesep
l_int32 vertlinesep
Definition:
bmf.h:57
L_Bmf::pixa
struct Pixa * pixa
Definition:
bmf.h:48
L_Bmf::size
l_int32 size
Definition:
bmf.h:49
L_Bmf::kernwidth
l_int32 kernwidth
Definition:
bmf.h:55
L_Bmf::baseline2
l_int32 baseline2
Definition:
bmf.h:52
L_Bmf::lineheight
l_int32 lineheight
Definition:
bmf.h:54
Pixa
Definition:
pix_internal.h:233
src
bmf.h
Generated by
1.9.1