00001
00015 #ifndef _IO_TIFF_H_
00016 #define _IO_TIFF_H_
00017
00018
00019
00020
00021 typedef struct tiff_header
00022 {
00023 unsigned char border[2];
00024 uint16 version;
00025 unsigned int IFDoff;
00026 } TIFFHeader;
00027
00028
00029
00030 typedef struct tiff_idf_entry
00031 {
00032 uint16 tIFD_tag;
00033 uint16 tIFD_type;
00034 unsigned int tIFD_count;
00035 unsigned int tIFD_offset;
00036 } TIFFIFDEntry;
00037
00038
00039 typedef enum {
00040 TIFF_BYTE = 1,
00041 TIFF_ASCII = 2,
00042 TIFF_SHORT = 3,
00043 TIFF_LONG = 4,
00044 TIFF_RATIONAL = 5,
00045
00046 TIFF_SBYTE = 6,
00047 TIFF_UNDEFINED = 7,
00048 TIFF_SSHORT = 8,
00049 TIFF_SLONG = 9,
00050 TIFF_SRATIONAL = 10,
00051
00052 TIFF_FLOAT = 11,
00053 TIFF_DOUBLE = 12
00054 } TIFFType;
00055
00056
00057 typedef enum {
00058 TIFFTAG_SUBFILETYPE = 254,
00059 TIFFTAG_OSUBFILETYPE = 255,
00060 TIFFTAG_IMAGEWIDTH = 256,
00061 TIFFTAG_IMAGELENGTH = 257,
00062 TIFFTAG_BITSPERSAMPLE = 258,
00063 TIFFTAG_COMPRESSION = 259,
00064 TIFFTAG_PHOTOMETRIC = 262,
00065 TIFFTAG_THRESHHOLDING = 263,
00066 TIFFTAG_CELLWIDTH = 264,
00067 TIFFTAG_CELLLENGTH = 265,
00068 TIFFTAG_FILLORDER = 266,
00069 TIFFTAG_DOCUMENTNAME = 269,
00070 TIFFTAG_IMAGEDESCRIPTION = 270,
00071 TIFFTAG_MAKE = 271,
00072 TIFFTAG_MODEL = 272,
00073 TIFFTAG_STRIPOFFSETS = 273,
00074 TIFFTAG_ORIENTATION = 274,
00075 TIFFTAG_SAMPLESPERPIXEL = 277,
00076 TIFFTAG_ROWSPERSTRIP = 278,
00077 TIFFTAG_STRIPBYTECOUNTS = 279,
00078 TIFFTAG_MINSAMPLEVALUE = 280,
00079 TIFFTAG_MAXSAMPLEVALUE = 281,
00080 TIFFTAG_XRESOLUTION = 282,
00081 TIFFTAG_YRESOLUTION = 283,
00082 TIFFTAG_PLANARCONFIG = 284,
00083 TIFFTAG_PAGENAME = 285,
00084 TIFFTAG_XPOSITION = 286,
00085 TIFFTAG_YPOSITION = 287,
00086 TIFFTAG_FREEOFFSETS = 288,
00087 TIFFTAG_FREEBYTECOUNTS = 289,
00088 TIFFTAG_GRAYRESPONSEUNIT = 290,
00089 TIFFTAG_GRAYRESPONSECURVE = 291,
00090 TIFFTAG_GROUP3OPTIONS = 292,
00091 TIFFTAG_T4OPTIONS = 292,
00092 TIFFTAG_GROUP4OPTIONS = 293,
00093 TIFFTAG_T6OPTIONS = 293 ,
00094 TIFFTAG_RESOLUTIONUNIT = 296,
00095 TIFFTAG_PAGENUMBER = 297,
00096 TIFFTAG_COLORRESPONSEUNIT = 300,
00097 TIFFTAG_TRANSFERFUNCTION = 301,
00098 TIFFTAG_SOFTWARE = 305,
00099 TIFFTAG_DATETIME = 306,
00100 TIFFTAG_ARTIST = 315,
00101 TIFFTAG_HOSTCOMPUTER = 316,
00102 TIFFTAG_PREDICTOR = 317,
00103 TIFFTAG_WHITEPOINT = 318,
00104 TIFFTAG_PRIMARYCHROMATICITIES = 319,
00105 TIFFTAG_COLORMAP = 320,
00106 TIFFTAG_HALFTONEHINTS = 321,
00107 TIFFTAG_TILEWIDTH = 322,
00108 TIFFTAG_TILELENGTH = 323,
00109 TIFFTAG_TILEOFFSETS = 324,
00110 TIFFTAG_TILEBYTECOUNTS = 325,
00111 TIFFTAG_BADFAXLINES = 326,
00112 TIFFTAG_CLEANFAXDATA = 327,
00113 TIFFTAG_CONSECUTIVEBADFAXLINES = 328,
00114 TIFFTAG_SUBIFD = 330,
00115 TIFFTAG_INKSET = 332,
00116 TIFFTAG_INKNAMES = 333,
00117 TIFFTAG_NUMBEROFINKS = 334,
00118 TIFFTAG_DOTRANGE = 336,
00119 TIFFTAG_TARGETPRINTER = 337,
00120 TIFFTAG_EXTRASAMPLES = 338,
00121 TIFFTAG_SAMPLEFORMAT = 339,
00122 TIFFTAG_SMINSAMPLEVALUE = 340,
00123 TIFFTAG_SMAXSAMPLEVALUE = 341
00124 } TIFFTag;
00125
00126 typedef enum {
00127 COMPRESSION_NONE = 1,
00128 COMPRESSION_CCITTRLE = 2,
00129 COMPRESSION_CCITTFAX3 = 3,
00130 COMPRESSION_CCITT_T4 = 3,
00131 COMPRESSION_CCITTFAX4 = 4,
00132 COMPRESSION_CCITT_T6 = 4,
00133 COMPRESSION_LZW = 5,
00134 COMPRESSION_OJPEG = 6,
00135 COMPRESSION_JPEG = 7
00136 } TIFFCompression;
00137
00138
00139 extern void ReadTIFFImage (InputParameters *p_Inp, VideoDataFile *input_file, int FrameNoInFile, FrameFormat *source, unsigned char *buf);
00140
00141 #endif
00142