Libav
tiff.h
Go to the documentation of this file.
1 /*
2  * TIFF tables
3  * Copyright (c) 2006 Konstantin Shishkov
4  *
5  * This file is part of Libav.
6  *
7  * Libav 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  * Libav 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 Libav; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
28 #ifndef AVCODEC_TIFF_H
29 #define AVCODEC_TIFF_H
30 
31 #include <stdint.h>
32 
34 enum TiffTags {
35  TIFF_SUBFILE = 0xfe,
36  TIFF_WIDTH = 0x100,
41  TIFF_FILL_ORDER = 0x10A,
42  TIFF_STRIP_OFFS = 0x111,
46  TIFF_XRES = 0x11A,
47  TIFF_YRES = 0x11B,
48  TIFF_PLANAR = 0x11C,
49  TIFF_XPOS = 0x11E,
50  TIFF_YPOS = 0x11F,
51  TIFF_T4OPTIONS = 0x124,
53  TIFF_RES_UNIT = 0x128,
55  TIFF_PREDICTOR = 0x13D,
56  TIFF_PAL = 0x140,
61 };
62 
64 enum TiffCompr {
65  TIFF_RAW = 1,
73  TIFF_PACKBITS = 0x8005,
74  TIFF_DEFLATE = 0x80B2
75 };
76 
77 enum TiffTypes {
78  TIFF_BYTE = 1,
83 };
84 
87  TIFF_PHOTOMETRIC_WHITE_IS_ZERO, /* mono or grayscale, 0 is white */
88  TIFF_PHOTOMETRIC_BLACK_IS_ZERO, /* mono or grayscale, 0 is black */
89  TIFF_PHOTOMETRIC_RGB, /* RGB or RGBA*/
90  TIFF_PHOTOMETRIC_PALETTE, /* Uses a palette */
91  TIFF_PHOTOMETRIC_ALPHA_MASK, /* Transparency mask */
92  TIFF_PHOTOMETRIC_SEPARATED, /* CMYK or some other ink set */
94  TIFF_PHOTOMETRIC_CIE_LAB = 8, /* 1976 CIE L*a*b* */
95  TIFF_PHOTOMETRIC_ICC_LAB, /* ICC L*a*b* */
96  TIFF_PHOTOMETRIC_ITU_LAB, /* ITU L*a*b* */
97  TIFF_PHOTOMETRIC_CFA = 32803, /* Color Filter Array (DNG) */
98  TIFF_PHOTOMETRIC_LOG_L = 32844, /* CIE Log2(L) */
99  TIFF_PHOTOMETRIC_LOG_LUV, /* CIE Log L*u*v* */
100  TIFF_PHOTOMETRIC_LINEAR_RAW = 34892, /* Linear Raw (DNG) */
101 };
102 
104 static const uint8_t type_sizes[6] = {
105  0, 1, 100, 2, 4, 8
106 };
107 
108 #endif /* AVCODEC_TIFF_H */
Definition: tiff.h:47
Definition: tiff.h:65
TiffPhotometric
Definition: tiff.h:85
Definition: tiff.h:46
Definition: tiff.h:69
Definition: tiff.h:68
uint8_t
static const uint8_t type_sizes[6]
sizes of various TIFF field types (string size = 100)
Definition: tiff.h:104
Definition: tiff.h:70
Definition: tiff.h:56
Definition: tiff.h:38
TiffCompr
list of TIFF compression types
Definition: tiff.h:64
Definition: tiff.h:67
Definition: tiff.h:78
TiffTypes
Definition: tiff.h:77
Definition: tiff.h:50
Definition: tiff.h:81
TiffTags
abridged list of TIFF tags
Definition: tiff.h:34
Definition: tiff.h:49