FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tiff_data.h
Go to the documentation of this file.
1 /*
2  * TIFF data tables
3  * Copyright (c) 2011 Thomas Kuehnel
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  * @file
24  * TIFF data tables
25  * @author Thomas Kuehnel
26  * @see GeoTIFF specification at
27  * http://www.remotesensing.org/geotiff/spec/geotiffhome.html
28  */
29 
30 #ifndef AVCODEC_TIFF_DATA_H
31 #define AVCODEC_TIFF_DATA_H
32 
33 #include "tiff.h"
34 
35 #define TIFF_CONF_KEY_ID_OFFSET 1024
37 
38 #define TIFF_GEOG_KEY_ID_OFFSET 2048
40 
41 #define TIFF_PROJ_KEY_ID_OFFSET 3072
43 
44 #define TIFF_VERT_KEY_ID_OFFSET 4096
46 
47 #define TIFF_GEO_KEY_UNDEFINED 0
48 #define TIFF_GEO_KEY_USER_DEFINED 32767
49 
50 #define TIFF_GT_MODEL_TYPE_OFFSET 1
51 extern const char *const ff_tiff_gt_model_type_codes[3];
52 
53 #define TIFF_GT_RASTER_TYPE_OFFSET 1
54 extern const char *const ff_tiff_gt_raster_type_codes[2];
55 
56 #define TIFF_LINEAR_UNIT_OFFSET 9001
57 extern const char *const ff_tiff_linear_unit_codes[15];
58 
59 #define TIFF_ANGULAR_UNIT_OFFSET 9101
60 extern const char *const ff_tiff_angular_unit_codes[8];
61 
62 #define TIFF_GCS_TYPE_OFFSET 4201
63 extern const char *const ff_tiff_gcs_type_codes[133];
64 
65 #define TIFF_GCSE_TYPE_OFFSET 4001
66 extern const char *const ff_tiff_gcse_type_codes[35];
67 
68 #define TIFF_GEODETIC_DATUM_OFFSET 6201
69 extern const char *const ff_tiff_geodetic_datum_codes[120];
70 
71 #define TIFF_GEODETIC_DATUM_E_OFFSET 6001
72 extern const char *const ff_tiff_geodetic_datum_e_codes[35];
73 
74 #define TIFF_ELLIPSOID_OFFSET 7001
75 extern const char *const ff_tiff_ellipsoid_codes[35];
76 
77 #define TIFF_PRIME_MERIDIAN_OFFSET 8901
78 extern const char *const ff_tiff_prime_meridian_codes[11];
79 
81 
83 
84 #define TIFF_COORD_TRANS_OFFSET 1
85 extern const char *const ff_tiff_coord_trans_codes[27];
86 
87 #define TIFF_VERT_CS_OFFSET 5001
88 extern const char *const ff_tiff_vert_cs_codes[32];
89 
90 #define TIFF_ORTHO_VERT_CS_OFFSET 5101
91 extern const char *const ff_tiff_ortho_vert_cs_codes[6];
92 #endif