diff options
author | Thomas Kühnel <kuehnelth@googlemail.com> | 2011-10-04 00:19:52 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-07-14 13:02:38 +0200 |
commit | 75abfab6c6ecd284092bee5e81d35ad7934e2425 (patch) | |
tree | 9b7cfdef47c41d7e548d4acae81f6b636f214954 /libavcodec/tiff_data.h | |
parent | fb5718069853558b0c114176de2e174125b4dfd9 (diff) | |
download | ffmpeg-75abfab6c6ecd284092bee5e81d35ad7934e2425.tar.gz |
lavc/tiff: add GeoTIFF support to the TIFF decoder
Work done for SOCIS 2011.
See thread:
Subject: [libav-devel] [PATCH 2/3] tiff: Add GeoTIFF support to the TIFF decoder
Date: Tue, 4 Oct 2011 00:19:52 +0200
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavcodec/tiff_data.h')
-rw-r--r-- | libavcodec/tiff_data.h | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/libavcodec/tiff_data.h b/libavcodec/tiff_data.h new file mode 100644 index 0000000000..91a4e1e1cc --- /dev/null +++ b/libavcodec/tiff_data.h @@ -0,0 +1,92 @@ +/* + * TIFF data tables + * Copyright (c) 2011 Thomas Kuehnel + * + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * 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. + * + * Libav is distributed in the hope that it will be useful, + * 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 + * License along with Libav; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/** + * @file + * TIFF data tables + * @author Thomas Kuehnel + * @see GeoTIFF specification at + * http://www.remotesensing.org/geotiff/spec/geotiffhome.html + */ + +#ifndef AVCODEC_TIFF_DATA_H +#define AVCODEC_TIFF_DATA_H + +#include "tiff.h" + +#define TIFF_CONF_KEY_ID_OFFSET 1024 +extern const TiffGeoTagNameType ff_tiff_conf_name_type_map[3]; + +#define TIFF_GEOG_KEY_ID_OFFSET 2048 +extern const TiffGeoTagNameType ff_tiff_geog_name_type_map[14]; + +#define TIFF_PROJ_KEY_ID_OFFSET 3072 +extern const TiffGeoTagNameType ff_tiff_proj_name_type_map[24]; + +#define TIFF_VERT_KEY_ID_OFFSET 4096 +extern const TiffGeoTagNameType ff_tiff_vert_name_type_map[4]; + +#define TIFF_GEO_KEY_UNDEFINED 0 +#define TIFF_GEO_KEY_USER_DEFINED 32767 + +#define TIFF_GT_MODEL_TYPE_OFFSET 1 +extern const char *const ff_tiff_gt_model_type_codes[3]; + +#define TIFF_GT_RASTER_TYPE_OFFSET 1 +extern const char *const ff_tiff_gt_raster_type_codes[2]; + +#define TIFF_LINEAR_UNIT_OFFSET 9001 +extern const char *const ff_tiff_linear_unit_codes[15]; + +#define TIFF_ANGULAR_UNIT_OFFSET 9101 +extern const char *const ff_tiff_angular_unit_codes[8]; + +#define TIFF_GCS_TYPE_OFFSET 4201 +extern const char *const ff_tiff_gcs_type_codes[133]; + +#define TIFF_GCSE_TYPE_OFFSET 4001 +extern const char *const ff_tiff_gcse_type_codes[35]; + +#define TIFF_GEODETIC_DATUM_OFFSET 6201 +extern const char *const ff_tiff_geodetic_datum_codes[120]; + +#define TIFF_GEODETIC_DATUM_E_OFFSET 6001 +extern const char *const ff_tiff_geodetic_datum_e_codes[35]; + +#define TIFF_ELLIPSOID_OFFSET 7001 +extern const char *const ff_tiff_ellipsoid_codes[35]; + +#define TIFF_PRIME_MERIDIAN_OFFSET 8901 +extern const char *const ff_tiff_prime_meridian_codes[11]; + +extern const TiffGeoTagKeyName ff_tiff_proj_cs_type_codes[978]; + +extern const TiffGeoTagKeyName ff_tiff_projection_codes[298]; + +#define TIFF_COORD_TRANS_OFFSET 1 +extern const char *const ff_tiff_coord_trans_codes[27]; + +#define TIFF_VERT_CS_OFFSET 5001 +extern const char *const ff_tiff_vert_cs_codes[32]; + +#define TIFF_ORTHO_VERT_CS_OFFSET 5101 +extern const char *const ff_tiff_ortho_vert_cs_codes[6]; +#endif |