image/imgtiff.h

Go to the documentation of this file.
00001 
00019 #ifndef           IMGTIFF_H
00020 #define           IMGTIFF_H
00021 
00022 #include          "host.h"
00023 #include          "bitstrm.h"
00024 
00025 INT8 open_tif_image(               //read header
00026                     int fd,        //file to read
00027                     INT32 *xsize,  //size of image
00028                     INT32 *ysize,
00029                     INT8 *bpp,     //bits per pixel
00030                     INT8 *photo,   //interpretation
00031                     INT32 *res     //resolution
00032                    );
00033 INT8 read_tif_image(                //read whole image
00034                     int fd,         //file to read
00035                     UINT8 *pixels,  //pixels of image
00036                     INT32 xsize,    //size of image
00037                     INT32 ysize,
00038                     INT8 bpp,       //bits per pixel
00039                     INT32           //bytes per line
00040                    );
00041 INT32 read_eol(                    //read end of line
00042                R_BITSTREAM *bits,  //bitstream to read
00043                UINT16 &code        //current code
00044               );
00045 INT8 write_moto_tif(                //write whole image
00046                     int fd,         //file to write on
00047                     UINT8 *pixels,  //image pixels
00048                     INT32 xsize,    //size of image
00049                     INT32 ysize,
00050                     INT8 bpp,       //bits per pixel
00051                     INT8 photo,
00052                     INT32 res       //resolution
00053                    );
00054 INT8 write_intel_tif(                //write whole image
00055                      int fd,         //file to write on
00056                      UINT8 *pixels,  //image pixels
00057                      INT32 xsize,    //size of image
00058                      INT32 ysize,
00059                      INT8 bpp,       //bits per pixel
00060                      INT8 photo,
00061                      INT32 res       //resolution
00062                     );
00063 INT8 write_inverse_tif(                //write whole image
00064                        int fd,         //file to write on
00065                        UINT8 *pixels,  //image pixels
00066                        INT32 xsize,    //size of image
00067                        INT32 ysize,
00068                        INT8 bpp,       //bits per pixel
00069                        INT8 photo,
00070                        INT32 res       //resolution
00071                       );
00072 INT8 write_tif_image(                //write whole image
00073                      int fd,         //file to write on
00074                      UINT8 *pixels,  //image pixels
00075                      INT32 xsize,    //size of image
00076                      INT32 ysize,
00077                      INT8 bpp,       //bits per pixel
00078                      INT32 res,      //resolution
00079                      INT16 type,     //format type
00080                      INT16 photo     //metric interp
00081                     );
00082 //INT32                                                         reverse32(                                                      //reverse 32 bit int
00083 //UINT32                                                        value                                                                   //value to reverse
00084 //);
00085 //INT16                                                         reverse16(                                                      //reverse 16 bit int
00086 //UINT16                                                        value                                                                   //value to reverse
00087 //);
00088 #endif

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