display/tessio.h

Go to the documentation of this file.
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(                   //open read & close
00028                            const char *name,  //file name
00029                            TPOINT *topright   //corner
00030                           );
00031 TBLOB *get_tess_blob_file(                   //open read & close
00032                           const char *name,  //file name
00033                           TPOINT *topright   //corner
00034                          );
00035 TEXTROW *readrows(                   //read row file
00036                   int gphfd,         /*file to read */
00037                   int count,         /*number expected */
00038                   TPOINT *imagesize  //size of image
00039                  );
00040 TWERD *readwords(                   //read some words
00041                  int gphfd,         /*file to read */
00042                  int count,         /*number expected */
00043                  TEXTROW *row,      /*row it comes from */
00044                  TPOINT *imagesize  /*size of image */
00045                 );
00046 TBLOB *readblobs(                   //read some blobs
00047                  int gphfd,         /*file to read */
00048                  int count,         /*number expected */
00049                  TPOINT *imagesize  /*size of image */
00050                 );
00051 char *readratings(                 //get a string
00052                   int gphfd,       /*file to read */
00053                   int ratingspace  /*size to read */
00054                  );
00055 void readoutlines(                      //read some outlines
00056                   int gphfd,            /*file to read */
00057                   TESSLINE **outlines,  /*array of ptrs */
00058                   int outlinecount      /*no to read */
00059                  );
00060 int readgph(              //read with testing
00061             int fd,       /*file to read */
00062             void *start,  /*buffer to write */
00063             int size,     /*amount to write */
00064             int checkeof  /*give error on eof? */
00065            );
00066 void write_row(              //write  a row
00067                FILE *name,   //file to write
00068                TEXTROW *row  /*row to write */
00069               );
00070 void write_error_row(               //write special row
00071                      FILE *name,    /*file name */
00072                      TEXTROW *row,  /*row to write */
00073                      int wordcount  /*no of words to go */
00074                     );
00075 void write_error_blob(                 //write special blob
00076                       FILE *name,      /*file name */
00077                       TBLOB *blob,     /*blob to write */
00078                       char *charlist,  /*true chars */
00079                       int charcount    /*no of true chars */
00080                      );
00081 void write_error_word(                 //write special word
00082                       FILE *name,      /*file name */
00083                       TWERD *word,     /*word to write */
00084                       char *charlist,  /*true chars */
00085                       int charcount    /*no of true chars */
00086                      );
00087 void writeblob(             //write a blob
00088                FILE *name,  /*file to write */
00089                TBLOB *blob  /*blob to write */
00090               );
00091 void serial_outlines(                             //serialize
00092                      FILE *name,                  /*file to write to */
00093                      TBLOB *blob,                 /*current blob */
00094                      register TESSLINE *outline,  /*current outline */
00095                      int *outlineno               /*current serial no */
00096                     );
00097 int countloop(                          //count loopsize
00098               register BYTEVEC *vector  /*vectors to count */
00099              );
00100 int outlineserial(                             //get serial no
00101                   register TESSLINE *outline,  /*start of serach */
00102                   register TESSLINE *target,   /*outline to find */
00103                   int serial                   /*serial no so far */
00104                  );
00105 void writegph(              //interface to fwrite
00106               FILE *name,   /*file to write */
00107               void *start,  /*buffer to write */
00108               int size      /*amount to write */
00109              );
00110 #endif

Generated on Wed Feb 28 19:49:11 2007 for Tesseract by  doxygen 1.5.1