00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVCODEC_TIFF_H
00022 #define AVCODEC_TIFF_H
00023
00032 #include <stdint.h>
00033
00035 enum TiffTags{
00036 TIFF_SUBFILE = 0xfe,
00037 TIFF_WIDTH = 0x100,
00038 TIFF_HEIGHT,
00039 TIFF_BPP,
00040 TIFF_COMPR,
00041 TIFF_INVERT = 0x106,
00042 TIFF_FILL_ORDER = 0x10A,
00043 TIFF_STRIP_OFFS = 0x111,
00044 TIFF_SAMPLES_PER_PIXEL = 0x115,
00045 TIFF_ROWSPERSTRIP = 0x116,
00046 TIFF_STRIP_SIZE,
00047 TIFF_XRES = 0x11A,
00048 TIFF_YRES = 0x11B,
00049 TIFF_PLANAR = 0x11C,
00050 TIFF_XPOS = 0x11E,
00051 TIFF_YPOS = 0x11F,
00052 TIFF_T4OPTIONS = 0x124,
00053 TIFF_T6OPTIONS,
00054 TIFF_RES_UNIT = 0x128,
00055 TIFF_SOFTWARE_NAME = 0x131,
00056 TIFF_PREDICTOR = 0x13D,
00057 TIFF_PAL = 0x140,
00058 TIFF_YCBCR_COEFFICIENTS = 0x211,
00059 TIFF_YCBCR_SUBSAMPLING = 0x212,
00060 TIFF_YCBCR_POSITIONING = 0x213,
00061 TIFF_REFERENCE_BW = 0x214,
00062 };
00063
00065 enum TiffCompr{
00066 TIFF_RAW = 1,
00067 TIFF_CCITT_RLE,
00068 TIFF_G3,
00069 TIFF_G4,
00070 TIFF_LZW,
00071 TIFF_JPEG,
00072 TIFF_NEWJPEG,
00073 TIFF_ADOBE_DEFLATE,
00074 TIFF_PACKBITS = 0x8005,
00075 TIFF_DEFLATE = 0x80B2
00076 };
00077
00078 enum TiffTypes{
00079 TIFF_BYTE = 1,
00080 TIFF_STRING,
00081 TIFF_SHORT,
00082 TIFF_LONG,
00083 TIFF_RATIONAL,
00084 };
00085
00087 static const uint8_t type_sizes[6] = {
00088 0, 1, 100, 2, 4, 8
00089 };
00090
00091 #endif