00001
00020 #ifndef TESSIO_H
00021 #define TESSIO_H
00022
00023 #include <stdio.h>
00024 #include "tessclas.h"
00025 #include "notdll.h"
00026
00027 TEXTROW *get_tess_row_file(
00028 const char *name,
00029 TPOINT *topright
00030 );
00031 TBLOB *get_tess_blob_file(
00032 const char *name,
00033 TPOINT *topright
00034 );
00035 TEXTROW *readrows(
00036 int gphfd,
00037 int count,
00038 TPOINT *imagesize
00039 );
00040 TWERD *readwords(
00041 int gphfd,
00042 int count,
00043 TEXTROW *row,
00044 TPOINT *imagesize
00045 );
00046 TBLOB *readblobs(
00047 int gphfd,
00048 int count,
00049 TPOINT *imagesize
00050 );
00051 char *readratings(
00052 int gphfd,
00053 int ratingspace
00054 );
00055 void readoutlines(
00056 int gphfd,
00057 TESSLINE **outlines,
00058 int outlinecount
00059 );
00060 int readgph(
00061 int fd,
00062 void *start,
00063 int size,
00064 int checkeof
00065 );
00066 void write_row(
00067 FILE *name,
00068 TEXTROW *row
00069 );
00070 void write_error_row(
00071 FILE *name,
00072 TEXTROW *row,
00073 int wordcount
00074 );
00075 void write_error_blob(
00076 FILE *name,
00077 TBLOB *blob,
00078 char *charlist,
00079 int charcount
00080 );
00081 void write_error_word(
00082 FILE *name,
00083 TWERD *word,
00084 char *charlist,
00085 int charcount
00086 );
00087 void writeblob(
00088 FILE *name,
00089 TBLOB *blob
00090 );
00091 void serial_outlines(
00092 FILE *name,
00093 TBLOB *blob,
00094 register TESSLINE *outline,
00095 int *outlineno
00096 );
00097 int countloop(
00098 register BYTEVEC *vector
00099 );
00100 int outlineserial(
00101 register TESSLINE *outline,
00102 register TESSLINE *target,
00103 int serial
00104 );
00105 void writegph(
00106 FILE *name,
00107 void *start,
00108 int size
00109 );
00110 #endif