00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TESSIO_H
00021 #define TESSIO_H
00022
00023 #include <stdio.h>
00024 #include "tessclas.h"
00025 #include "notdll.h"
00026
00032 TEXTROW *get_tess_row_file(
00033 const char *name,
00034 TPOINT *topright
00035 );
00041 TBLOB *get_tess_blob_file(
00042 const char *name,
00043 TPOINT *topright
00044 );
00051 TEXTROW *readrows(
00052 int gphfd,
00053 int count,
00054 TPOINT *imagesize
00055 );
00063 TWERD *readwords(
00064 int gphfd,
00065 int count,
00066 TEXTROW *row,
00067 TPOINT *imagesize
00068 );
00075 TBLOB *readblobs(
00076 int gphfd,
00077 int count,
00078 TPOINT *imagesize
00079 );
00085 char *readratings(
00086 int gphfd,
00087 int ratingspace
00088 );
00095 void readoutlines(
00096 int gphfd,
00097 TESSLINE **outlines,
00098 int outlinecount
00099 );
00107 int readgph(
00108 int fd,
00109 void *start,
00110 int size,
00111 int checkeof
00112 );
00118 void write_row(
00119 FILE *name,
00120 TEXTROW *row
00121 );
00128 void write_error_row(
00129 FILE *name,
00130 TEXTROW *row,
00131 int wordcount
00132 );
00140 void write_error_blob(
00141 FILE *name,
00142 TBLOB *blob,
00143 char *charlist,
00144 int charcount
00145 );
00153 void write_error_word(
00154 FILE *name,
00155 TWERD *word,
00156 char *charlist,
00157 int charcount
00158 );
00164 void writeblob(
00165 FILE *name,
00166 TBLOB *blob
00167 );
00175 void serial_outlines(
00176 FILE *name,
00177 TBLOB *blob,
00178 register TESSLINE *outline,
00179 int *outlineno
00180 );
00185 int countloop(
00186 register BYTEVEC *vector
00187 );
00194 int outlineserial(
00195 register TESSLINE *outline,
00196 register TESSLINE *target,
00197 int serial
00198 );
00205 void writegph(
00206 FILE *name,
00207 void *start,
00208 int size
00209 );
00210 #endif