home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 2 / FreeSoftwareCollection2pd199x-jp.img / fmge / tiff.h < prev   
Text File  |  1990-06-14  |  1KB  |  68 lines

  1. /*
  2.     TIFF format definition
  3. */
  4.  
  5. #define ID_VERSION 0x2A4949 
  6.  
  7. /* field type */
  8. #define ByteType 1
  9. #define AsciiType 2
  10. #define ShortType 3
  11. #define LongType 4
  12. #define RationalType 5
  13.  
  14. /* tags */
  15. #define GeneralDescription 0xFF
  16. #define ImageWidth 0x100
  17. #define ImageLength 0x101
  18. #define BitsPerSample 0x102
  19. #define Compression 0x103
  20. #define PhotometricInterpretation 0x106
  21. #define FillOrder 0x10A
  22. #define StripOffset 0x111
  23. #define Orientation 0x112
  24. #define SamplesPerPixel 0x115
  25. #define MinSampleValue 0x118
  26. #define MaxSampleValue 0x119
  27. #define XResolution 0x11A
  28. #define YResolution 0x11B
  29. #define PlanarConfigration 0x11c
  30. #define ColorResponseUnit 0x12C
  31. #define ColorResponseCurves 0x12D
  32.  
  33.  
  34. /* structure of IFD field */
  35. typedef struct {
  36.     short tag ;
  37.     short type ;
  38.     long  count ;
  39.     long  value ;
  40. } IFD_E ;
  41.  
  42. typedef IFD (IFD_E *) ;
  43.  
  44. /*  for towns */
  45. #define TIFF_16 1
  46. #define TIFF_32K 2
  47. #define TIFF_256 3
  48.  
  49. /* tiff library error code */
  50. #define TIF_ERR_FR 1 /* file read error */
  51. #define TIF_ERR_FW 2 /* file write error */
  52. #define TIF_ERR_ID 3 /* file ID error */
  53. #define TIF_ERR_MEM 4 /* memory allocate error */
  54.  
  55. #ifndef TIFF
  56. /* global variables */
  57. extern short tiff_IFDsize ;
  58. extern long tiff_width ;
  59. extern long tiff_length  ;
  60. extern long tiff_bpp ;
  61. extern long tiff_fill ;
  62. extern long tiff_maxv  ;
  63. extern long tiff_iofs ;
  64. extern long tiff_xrofs ;
  65. extern long tiff_yrofs ;
  66. extern long tiff_err ;
  67. #endif
  68.