• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/tiff.h

Go to the documentation of this file.
00001 /*
00002  * TIFF tables
00003  * Copyright (c) 2006 Konstantin Shishkov
00004  *
00005  * This file is part of FFmpeg.
00006  *
00007  * FFmpeg is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * FFmpeg is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with FFmpeg; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00020  */
00021 
00027 #ifndef AVCODEC_TIFF_H
00028 #define AVCODEC_TIFF_H
00029 
00030 #include <stdint.h>
00031 
00033 enum TiffTags{
00034     TIFF_SUBFILE = 0xfe,
00035     TIFF_WIDTH = 0x100,
00036     TIFF_HEIGHT,
00037     TIFF_BPP,
00038     TIFF_COMPR,
00039     TIFF_INVERT = 0x106,
00040     TIFF_FILL_ORDER = 0x10A,
00041     TIFF_STRIP_OFFS = 0x111,
00042     TIFF_SAMPLES_PER_PIXEL = 0x115,
00043     TIFF_ROWSPERSTRIP = 0x116,
00044     TIFF_STRIP_SIZE,
00045     TIFF_XRES = 0x11A,
00046     TIFF_YRES = 0x11B,
00047     TIFF_PLANAR = 0x11C,
00048     TIFF_XPOS = 0x11E,
00049     TIFF_YPOS = 0x11F,
00050     TIFF_T4OPTIONS = 0x124,
00051     TIFF_T6OPTIONS,
00052     TIFF_RES_UNIT = 0x128,
00053     TIFF_SOFTWARE_NAME = 0x131,
00054     TIFF_PREDICTOR = 0x13D,
00055     TIFF_PAL = 0x140,
00056     TIFF_YCBCR_COEFFICIENTS = 0x211,
00057     TIFF_YCBCR_SUBSAMPLING = 0x212,
00058     TIFF_YCBCR_POSITIONING = 0x213,
00059     TIFF_REFERENCE_BW = 0x214,
00060 };
00061 
00063 enum TiffCompr{
00064     TIFF_RAW = 1,
00065     TIFF_CCITT_RLE,
00066     TIFF_G3,
00067     TIFF_G4,
00068     TIFF_LZW,
00069     TIFF_JPEG,
00070     TIFF_NEWJPEG,
00071     TIFF_ADOBE_DEFLATE,
00072     TIFF_PACKBITS = 0x8005,
00073     TIFF_DEFLATE = 0x80B2
00074 };
00075 
00076 enum TiffTypes{
00077     TIFF_BYTE = 1,
00078     TIFF_STRING,
00079     TIFF_SHORT,
00080     TIFF_LONG,
00081     TIFF_RATIONAL,
00082 };
00083 
00085 static const uint8_t type_sizes[6] = {
00086     0, 1, 100, 2, 4, 8
00087 };
00088 
00089 #endif /* AVCODEC_TIFF_H */

Generated on Fri Sep 16 2011 17:17:44 for FFmpeg by  doxygen 1.7.1