forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32: update of leptonica library to 1.66, update of tessdll.dll to recent build git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@462 d0cd1f9f-072b-0410-8dd7-cf729c803f20
- Loading branch information
zdenop@gmail.com
committed
Sep 27, 2010
1 parent
fe0e38f
commit 68baf25
Showing
19 changed files
with
1,072 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/*====================================================================* | ||
- Copyright (C) 2001 Leptonica. All rights reserved. | ||
- This software is distributed in the hope that it will be | ||
- useful, but with NO WARRANTY OF ANY KIND. | ||
- No author or distributor accepts responsibility to anyone for the | ||
- consequences of using this software, or for whether it serves any | ||
- particular purpose or works at all, unless he or she says so in | ||
- writing. Everyone is granted permission to copy, modify and | ||
- redistribute this source code, for commercial or non-commercial | ||
- purposes, with the following restrictions: (1) the origin of this | ||
- source code must not be misrepresented; (2) modified versions must | ||
- be plainly marked as such; and (3) this notice may not be removed | ||
- or altered from any source or modified source distribution. | ||
*====================================================================*/ | ||
|
||
#ifndef LEPTONICA_BMP_H | ||
#define LEPTONICA_BMP_H | ||
|
||
/* | ||
* This file is here to describe the fields in the header of | ||
* the BMP file. These fields are not used directly in Leptonica. | ||
* The only thing we use are the sizes of these two headers. | ||
* Furthermore, because of potential namespace conflicts with | ||
* the typedefs and defined sizes, we have changed the names | ||
* to protect anyone who may also need to use the original definitions. | ||
* Thanks to J. D. Bryan for pointing out the potential problems when | ||
* developing on Win32 compatible systems. | ||
*/ | ||
|
||
/*-------------------------------------------------------------* | ||
* BMP file header * | ||
*-------------------------------------------------------------*/ | ||
struct BMP_FileHeader | ||
{ | ||
l_int16 bfType; /* file type; must be "BM" */ | ||
l_int16 bfSize; /* length of the file; | ||
sizeof(BMP_FileHeader) + | ||
sizeof(BMP_InfoHeader) + | ||
size of color table + | ||
size of DIB bits */ | ||
l_int16 bfFill1; /* remainder of the bfSize field */ | ||
l_int16 bfReserved1; /* don't care (set to 0)*/ | ||
l_int16 bfReserved2; /* don't care (set to 0)*/ | ||
l_int16 bfOffBits; /* offset from beginning of file */ | ||
l_int16 bfFill2; /* remainder of the bfOffBits field */ | ||
}; | ||
typedef struct BMP_FileHeader BMP_FH; | ||
|
||
#define BMP_FHBYTES sizeof(BMP_FH) | ||
|
||
|
||
/*-------------------------------------------------------------* | ||
* BMP info header * | ||
*-------------------------------------------------------------*/ | ||
struct BMP_InfoHeader | ||
{ | ||
l_int32 biSize; /* size of the BMP_InfoHeader struct */ | ||
l_int32 biWidth; /* bitmap width in pixels */ | ||
l_int32 biHeight; /* bitmap height in pixels */ | ||
l_int16 biPlanes; /* number of bitmap planes */ | ||
l_int16 biBitCount; /* number of bits per pixel */ | ||
l_int32 biCompression; /* compression format (0 == uncompressed) */ | ||
l_int32 biSizeImage; /* size of image in bytes */ | ||
l_int32 biXPelsPerMeter; /* pixels per meter in x direction */ | ||
l_int32 biYPelsPerMeter; /* pixels per meter in y direction */ | ||
l_int32 biClrUsed; /* number of colors used */ | ||
l_int32 biClrImportant; /* number of important colors used */ | ||
}; | ||
typedef struct BMP_InfoHeader BMP_IH; | ||
|
||
#define BMP_IHBYTES sizeof(BMP_IH) | ||
|
||
|
||
#endif /* LEPTONICA_BMP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/*====================================================================* | ||
- Copyright (C) 2001 Leptonica. All rights reserved. | ||
- This software is distributed in the hope that it will be | ||
- useful, but with NO WARRANTY OF ANY KIND. | ||
- No author or distributor accepts responsibility to anyone for the | ||
- consequences of using this software, or for whether it serves any | ||
- particular purpose or works at all, unless he or she says so in | ||
- writing. Everyone is granted permission to copy, modify and | ||
- redistribute this source code, for commercial or non-commercial | ||
- purposes, with the following restrictions: (1) the origin of this | ||
- source code must not be misrepresented; (2) modified versions must | ||
- be plainly marked as such; and (3) this notice may not be removed | ||
- or altered from any source or modified source distribution. | ||
*====================================================================*/ | ||
|
||
#ifndef LEPTONICA_DEWARP_H | ||
#define LEPTONICA_DEWARP_H | ||
|
||
/* | ||
* dewarp.h | ||
* | ||
* Data structure to hold arrays and results for generating | ||
* a vertical disparity array based on textlines. The disparity | ||
* array is two-dimensional, and it represents a vertical | ||
* displacement, relative to the flat point in the textlines. | ||
* After dewarping, all points on the altered curve will have | ||
* a y-value equal to the flat point. | ||
* | ||
* The sampled vertical disparity array is expanded to full resolution, | ||
* using linear interpolation, from which it is trivially applied | ||
* to the input image. | ||
*/ | ||
|
||
|
||
struct L_Dewarp | ||
{ | ||
struct Pix *pixs; /* source pix, 1 bpp */ | ||
struct Pix *pixd; /* dewarped pix; 1, 8 or 32 bpp */ | ||
struct FPix *sampvdispar; /* sampled vertical disparity array */ | ||
struct FPix *fullvdispar; /* full vertical disparity array */ | ||
struct FPix *fullhdispar; /* full horiztontal disparity array */ | ||
struct Numa *naflats; /* sorted flat location of each line */ | ||
struct Numa *nacurves; /* sorted curvature of each line */ | ||
l_int32 sampling; /* sampling factor of disparity array */ | ||
l_int32 minlines; /* min number of long lines required */ | ||
l_int32 applyhoriz; /* flag for estimating horiz. disparity */ | ||
l_int32 nx; /* number of sampling pts in x direction */ | ||
l_int32 ny; /* number of sampling pts in y direction */ | ||
l_int32 extraw; /* extra width required for hor. disparity */ | ||
l_int32 success; /* sets to 1 if model build succeeds */ | ||
|
||
}; | ||
typedef struct L_Dewarp L_DEWARP; | ||
|
||
#endif /* LEPTONICA_DEWARP_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*====================================================================* | ||
- Copyright (C) 2008 Leptonica. All rights reserved. | ||
- This software is distributed in the hope that it will be | ||
- useful, but with NO WARRANTY OF ANY KIND. | ||
- No author or distributor accepts responsibility to anyone for the | ||
- consequences of using this software, or for whether it serves any | ||
- particular purpose or works at all, unless he or she says so in | ||
- writing. Everyone is granted permission to copy, modify and | ||
- redistribute this source code, for commercial or non-commercial | ||
- purposes, with the following restrictions: (1) the origin of this | ||
- source code must not be misrepresented; (2) modified versions must | ||
- be plainly marked as such; and (3) this notice may not be removed | ||
- or altered from any source or modified source distribution. | ||
*====================================================================*/ | ||
|
||
#ifndef LEPTONICA_FREETYPE_H | ||
#define LEPTONICA_FREETYPE_H | ||
|
||
#define LEPTONICA_FT_RESOLUTION 96 | ||
|
||
typedef struct ft_library_st FT_LIBRARY; | ||
|
||
#endif /* LEPTONICA_FREETYPE_H */ |
Oops, something went wrong.