comparison tiff.h @ 4774:0860efc2f02b libavcodec

tiff encoder by (Bartlomiej Wolowiec b.wolowiec students mimuw edu pl)
author michael
date Tue, 03 Apr 2007 13:43:57 +0000
parents
children bca8924ed36c
comparison
equal deleted inserted replaced
4773:65ee324848ac 4774:0860efc2f02b
1 /*
2 * TIFF tables
3 * Copyright (c) 2006 Konstantin Shishkov
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *
21 */
22
23 #ifndef TIFF_H
24 #define TIFF_H
25
26 /* abridged list of TIFF tags */
27 enum TiffTags{
28 TIFF_SUBFILE = 0xfe,
29 TIFF_WIDTH = 0x100,
30 TIFF_HEIGHT,
31 TIFF_BPP,
32 TIFF_COMPR,
33 TIFF_INVERT = 0x106,
34 TIFF_STRIP_OFFS = 0x111,
35 TIFF_SAMPLES_PER_PIXEL = 0x115,
36 TIFF_ROWSPERSTRIP = 0x116,
37 TIFF_STRIP_SIZE,
38 TIFF_XRES = 0x11A,
39 TIFF_YRES = 0x11B,
40 TIFF_PLANAR = 0x11C,
41 TIFF_XPOS = 0x11E,
42 TIFF_YPOS = 0x11F,
43 TIFF_RES_UNIT = 0x128,
44 TIFF_SOFTWARE_NAME = 0x131,
45 TIFF_PREDICTOR = 0x13D,
46 TIFF_PAL = 0x140,
47 TIFF_YCBCR_COEFFICIENTS = 0x211,
48 TIFF_YCBCR_SUBSAMPLING = 0x212,
49 TIFF_YCBCR_POSITIONING = 0x213,
50 TIFF_REFERENCE_BW = 0x214,
51 };
52
53 enum TiffCompr{
54 TIFF_RAW = 1,
55 TIFF_CCITT_RLE,
56 TIFF_G3,
57 TIFF_G4,
58 TIFF_LZW,
59 TIFF_JPEG,
60 TIFF_NEWJPEG,
61 TIFF_ADOBE_DEFLATE,
62 TIFF_PACKBITS = 0x8005,
63 TIFF_DEFLATE = 0x80B2
64 };
65
66 enum TiffTypes{
67 TIFF_BYTE = 1,
68 TIFF_STRING,
69 TIFF_SHORT,
70 TIFF_LONG,
71 TIFF_RATIONAL,
72 };
73
74 /** sizes of various TIFF field types (string size = 100)*/
75 static const uint8_t type_sizes[6] = {
76 0, 1, 100, 2, 4, 8
77 };
78
79 #endif /* TIFF_H */