home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / netpbma.zip / pnm / sgi.h < prev    next >
Text File  |  1994-01-27  |  987b  |  30 lines

  1. /* sgi.h - header file for sgitopnm.c and pnmtosgi.c */
  2.  
  3. typedef struct {
  4.     short           magic;
  5.     char            storage;
  6.     char            bpc;            /* pixel size: 1 = bytes, 2 = shorts */
  7.     unsigned short  dimension;      /* 1 = single row, 2 = B/W, 3 = RGB */
  8.     unsigned short  xsize,          /* width in pixels */
  9.                     ysize,          /* height in pixels */
  10.                     zsize;          /* # of channels; B/W=1, RGB=3, RGBA=4 */
  11.     long            pixmin, pixmax; /* min/max pixel values */
  12.     char            dummy1[4];
  13.     char            name[80];
  14.     long            colormap;
  15.     char            dummy2[404];
  16. } Header;
  17. #define HeaderSize  512
  18.  
  19. #define SGI_MAGIC           (short)474
  20.  
  21. #define STORAGE_VERBATIM    0
  22. #define STORAGE_RLE         1
  23.  
  24. #define CMAP_NORMAL         0
  25. #define CMAP_DITHERED       1   /* not supported */
  26. #define CMAP_SCREEN         2   /* not supported */
  27. #define CMAP_COLORMAP       3   /* not supported */
  28.  
  29.  
  30.