home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / imdisp / source / imageio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-02  |  1.5 KB  |  39 lines

  1. /****  IMAGEIO.H
  2.  
  3.        Header file for IMAGEIO.H
  4.        Built by A. Warnock, ST Systems Corp., NASA/GSFC 5/90
  5.  
  6. ****/
  7.  
  8. /* * * *  External Function Prototypes * * * */
  9.  
  10. extern int ReadLabel (int ,char *,int ,char *);
  11. extern int WriteLabel (int ,char *,unsigned int ,char *);
  12. extern int OpenImage (char *,int ,char *,int *,int *,int *,char *);
  13. extern int ReadLine (int, char *, int, int, int, char *);
  14. extern int CloseImage (int ,char *);
  15. extern int CheckStatus (char *);
  16. extern int ConvertLine (unsigned char *,unsigned char *,int ,int ,int ,char *);
  17.  
  18. /* * * *  External Global Variables * * * */
  19.  
  20.  
  21. extern struct ImageBlockType   /* The image control block structure */
  22.     {
  23.           long   block;        /* block # of start of buffer at */
  24.           int    blksiz;       /* block size in bytes */
  25.           int    maxbuf;       /* max size of buffer in blocks */
  26.           int    bufsiz;       /* # of blocks of buffer in use */
  27.  unsigned int    lblsiz;       /* label size in bytes */
  28.           int    pixsiz;       /* size of pixels in bits */
  29.           int    reclen;       /* record length in bytes */
  30.           int    nl, ns;       /* number of lines and samples */
  31.           int    linhed;       /* line header length in bytes */
  32.           char   access;       /* R for read, W for write */
  33.     }   IMCB[MaxNumImages];
  34.  
  35.  
  36. extern unsigned char *ImageBuffer[MaxNumImages];    /* pointers to image buffers */
  37. extern char           LabelBuf[LabelBufferLen];
  38. extern char           LabelFileName[64];
  39.