Leptonica
1.77.0
Image processing and image analysis suite
ptra.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_PTRA_H
28
#define LEPTONICA_PTRA_H
29
46
/*------------------------------------------------------------------------*
47
* Generic Ptr Array Structs *
48
*------------------------------------------------------------------------*/
49
51
struct
L_Ptra
52
{
53
l_int32
nalloc
;
54
l_int32
imax
;
55
l_int32
nactual
;
56
void
**
array
;
57
};
58
typedef
struct
L_Ptra
L_PTRA
;
59
60
62
struct
L_Ptraa
63
{
64
l_int32
nalloc
;
65
struct
L_Ptra
**
ptra
;
66
};
67
typedef
struct
L_Ptraa
L_PTRAA
;
68
69
70
71
/*------------------------------------------------------------------------*
72
* Array flags *
73
*------------------------------------------------------------------------*/
74
76
enum
{
77
L_NO_COMPACTION
= 1,
78
L_COMPACTION
= 2
79
};
80
82
enum
{
83
L_AUTO_DOWNSHIFT
= 0,
84
L_MIN_DOWNSHIFT
= 1,
85
L_FULL_DOWNSHIFT
= 2
86
};
87
89
enum
{
90
L_HANDLE_ONLY
= 0,
91
L_REMOVE
= 1
92
};
93
94
95
#endif
/* LEPTONICA_PTRA_H */
L_COMPACTION
Definition:
ptra.h:78
L_REMOVE
Definition:
ptra.h:91
L_NO_COMPACTION
Definition:
ptra.h:77
L_AUTO_DOWNSHIFT
Definition:
ptra.h:83
L_HANDLE_ONLY
Definition:
ptra.h:90
L_Ptraa::nalloc
l_int32 nalloc
Definition:
ptra.h:64
L_Ptra::nactual
l_int32 nactual
Definition:
ptra.h:55
L_Ptra
Definition:
ptra.h:51
L_Ptra::imax
l_int32 imax
Definition:
ptra.h:54
L_Ptra::nalloc
l_int32 nalloc
Definition:
ptra.h:53
L_Ptraa
Definition:
ptra.h:62
L_Ptraa::ptra
struct L_Ptra ** ptra
Definition:
ptra.h:65
L_FULL_DOWNSHIFT
Definition:
ptra.h:85
L_Ptra::array
void ** array
Definition:
ptra.h:56
L_MIN_DOWNSHIFT
Definition:
ptra.h:84
src
ptra.h
Generated by
1.8.14