home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / TIFF / TACS40.ZIP / TIFINT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-29  |  1.8 KB  |  63 lines

  1.  
  2. /* manifests for tiff tags and other oddities */
  3.  
  4. #define TAG_IMWIDTH    256
  5. #define TAG_IMLENGTH    257
  6. #define TAG_BITSPIX    258
  7. #define TAG_SAMPIX    277
  8. #define TAG_ORIENT    274
  9. #define TAG_PHOTOINTERP    262
  10. #define TAG_SUBFILE    255
  11. #define TAG_COMPRESS    0x103    
  12. #define TAG_CELL_WIDTH    0x108
  13. #define TAG_CELL_LENGTH    0x109
  14. #define    TAG_FILLORD    0x10A
  15. #define TAG_ROW_STRIP    0x116
  16. #define TAG_MINSAMP    0x118
  17. #define TAG_MAXSAMP    0x119
  18. #define TAG_XRES    0x11A
  19. #define    TAG_YRES    0x11B
  20. #define TAG_PLANAR    0x11C
  21. #define TAG_GREYRES    0x122
  22. #define TAG_GREYCRV    0x123
  23.  
  24. #define FULL_RES    1
  25. #define PLANE_1        1
  26. #define BITSPERBYTE    8
  27.  
  28. #define FF_TIFF        1
  29. #define FF_EPSF        2
  30.  
  31. typedef struct ratio {
  32.     long    upper;
  33.     long    lower;
  34.     }RATIO;
  35.  
  36. struct IMG_ATT {
  37.     char path[40];        /* file name */
  38.     short    resolution;    /* is this the full or sub-sampled */
  39.     short imwidth;        /* width of the image */
  40.     short imlength;        /* length of the image */
  41.     short bits_sample;    /* bits per sample */
  42.     short    compress;    /* compression tag */
  43.     short    photointerp;    /* photointerpretation */
  44.     short    fillorder;    /* order of pixels within a byte */
  45.     short    orient;        /* orientation of the scanned image */
  46.     short    sample_pix;    /* how many samples per pixel */
  47.     long    rows_strip;    /* how many scanned rows per strip */
  48.     short    min_sample;    /* the minimum sample value */
  49.     short     max_sample;    /* the maximum sample value */
  50.     RATIO    xresolution;    /* the x resolution of the image */
  51.     RATIO    yresolution;    /* the y resolution of the image */
  52.     short    planarconfig;    /* how are the image planes stored */
  53.     short    grey_res_unit;    /* the magnitute multipiler */
  54.     short    *grey_curve;        /* pointer to the grey curve */
  55.                     /* should be as many values  */
  56.                     /* in the pointed to buffer  */
  57.                     /* as there are levels of grey */
  58.     short    cell_width;
  59.     short    cell_lenght;
  60.  
  61.     };
  62.  
  63.