2007-04-03 16:43:57 +03:00
|
|
|
/*
|
|
|
|
* TIFF tables
|
|
|
|
* Copyright (c) 2006 Konstantin Shishkov
|
|
|
|
*
|
2011-03-18 19:35:10 +02:00
|
|
|
* This file is part of Libav.
|
2007-04-03 16:43:57 +03:00
|
|
|
*
|
2011-03-18 19:35:10 +02:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2007-04-03 16:43:57 +03:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2011-03-18 19:35:10 +02:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2007-04-03 16:43:57 +03:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2011-03-18 19:35:10 +02:00
|
|
|
* License along with Libav; if not, write to the Free Software
|
2007-04-03 16:43:57 +03:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2007-04-04 14:43:08 +03:00
|
|
|
/**
|
2010-04-20 17:45:34 +03:00
|
|
|
* @file
|
2011-07-14 04:46:19 +03:00
|
|
|
* TIFF tables
|
2007-04-04 14:43:08 +03:00
|
|
|
* @author Konstantin Shishkov
|
|
|
|
*/
|
2011-07-14 04:46:19 +03:00
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#ifndef AVCODEC_TIFF_H
|
|
|
|
#define AVCODEC_TIFF_H
|
2007-04-03 16:43:57 +03:00
|
|
|
|
2007-06-17 01:59:13 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2007-04-04 14:43:08 +03:00
|
|
|
/** abridged list of TIFF tags */
|
2013-06-01 16:35:11 +03:00
|
|
|
enum TiffTags {
|
|
|
|
TIFF_SUBFILE = 0xfe,
|
|
|
|
TIFF_WIDTH = 0x100,
|
2007-04-03 16:43:57 +03:00
|
|
|
TIFF_HEIGHT,
|
|
|
|
TIFF_BPP,
|
|
|
|
TIFF_COMPR,
|
2013-06-01 16:35:11 +03:00
|
|
|
TIFF_INVERT = 0x106,
|
|
|
|
TIFF_FILL_ORDER = 0x10A,
|
|
|
|
TIFF_STRIP_OFFS = 0x111,
|
|
|
|
TIFF_SAMPLES_PER_PIXEL = 0x115,
|
|
|
|
TIFF_ROWSPERSTRIP = 0x116,
|
2007-04-03 16:43:57 +03:00
|
|
|
TIFF_STRIP_SIZE,
|
2013-06-01 16:35:11 +03:00
|
|
|
TIFF_XRES = 0x11A,
|
|
|
|
TIFF_YRES = 0x11B,
|
|
|
|
TIFF_PLANAR = 0x11C,
|
|
|
|
TIFF_XPOS = 0x11E,
|
|
|
|
TIFF_YPOS = 0x11F,
|
|
|
|
TIFF_T4OPTIONS = 0x124,
|
2008-12-22 08:36:10 +02:00
|
|
|
TIFF_T6OPTIONS,
|
2013-06-01 16:35:11 +03:00
|
|
|
TIFF_RES_UNIT = 0x128,
|
|
|
|
TIFF_SOFTWARE_NAME = 0x131,
|
|
|
|
TIFF_PREDICTOR = 0x13D,
|
|
|
|
TIFF_PAL = 0x140,
|
2007-04-03 16:43:57 +03:00
|
|
|
TIFF_YCBCR_COEFFICIENTS = 0x211,
|
2013-06-01 16:35:11 +03:00
|
|
|
TIFF_YCBCR_SUBSAMPLING = 0x212,
|
|
|
|
TIFF_YCBCR_POSITIONING = 0x213,
|
|
|
|
TIFF_REFERENCE_BW = 0x214,
|
2007-04-03 16:43:57 +03:00
|
|
|
};
|
|
|
|
|
2007-04-04 14:43:08 +03:00
|
|
|
/** list of TIFF compression types */
|
2013-06-01 16:35:11 +03:00
|
|
|
enum TiffCompr {
|
2007-04-03 16:43:57 +03:00
|
|
|
TIFF_RAW = 1,
|
|
|
|
TIFF_CCITT_RLE,
|
|
|
|
TIFF_G3,
|
|
|
|
TIFF_G4,
|
|
|
|
TIFF_LZW,
|
|
|
|
TIFF_JPEG,
|
|
|
|
TIFF_NEWJPEG,
|
|
|
|
TIFF_ADOBE_DEFLATE,
|
|
|
|
TIFF_PACKBITS = 0x8005,
|
2013-06-01 16:35:11 +03:00
|
|
|
TIFF_DEFLATE = 0x80B2
|
2007-04-03 16:43:57 +03:00
|
|
|
};
|
|
|
|
|
2013-06-01 16:35:11 +03:00
|
|
|
enum TiffTypes {
|
2007-04-03 16:43:57 +03:00
|
|
|
TIFF_BYTE = 1,
|
|
|
|
TIFF_STRING,
|
|
|
|
TIFF_SHORT,
|
|
|
|
TIFF_LONG,
|
|
|
|
TIFF_RATIONAL,
|
|
|
|
};
|
|
|
|
|
|
|
|
/** sizes of various TIFF field types (string size = 100)*/
|
|
|
|
static const uint8_t type_sizes[6] = {
|
|
|
|
0, 1, 100, 2, 4, 8
|
|
|
|
};
|
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#endif /* AVCODEC_TIFF_H */
|