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