libavcodec/tiff.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2006 Konstantin Shishkov
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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_TILE_WIDTH = 0x142,
00060     TIFF_TILE_LENGTH = 0x143,
00061     TIFF_TILE_OFFSETS = 0x144,
00062     TIFF_TILE_BYTE_COUNTS = 0x145,
00063     TIFF_YCBCR_COEFFICIENTS = 0x211,
00064     TIFF_YCBCR_SUBSAMPLING = 0x212,
00065     TIFF_YCBCR_POSITIONING = 0x213,
00066     TIFF_REFERENCE_BW = 0x214,
00067 };
00068 
00070 enum TiffCompr{
00071     TIFF_RAW = 1,
00072     TIFF_CCITT_RLE,
00073     TIFF_G3,
00074     TIFF_G4,
00075     TIFF_LZW,
00076     TIFF_JPEG,
00077     TIFF_NEWJPEG,
00078     TIFF_ADOBE_DEFLATE,
00079     TIFF_PACKBITS = 0x8005,
00080     TIFF_DEFLATE = 0x80B2
00081 };
00082 
00083 enum TiffTypes{
00084     TIFF_BYTE = 1,
00085     TIFF_STRING,
00086     TIFF_SHORT,
00087     TIFF_LONG,
00088     TIFF_RATIONAL,
00089 };
00090 
00092 static const uint8_t type_sizes[6] = {
00093     0, 1, 100, 2, 4, 8
00094 };
00095 
00096 #endif /* AVCODEC_TIFF_H */