tiff_data.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. * @file
  23. * TIFF data tables
  24. * @author Thomas Kuehnel
  25. * @see GeoTIFF specification at
  26. * http://www.remotesensing.org/geotiff/spec/geotiffhome.html
  27. */
  28. #ifndef AVCODEC_TIFF_DATA_H
  29. #define AVCODEC_TIFF_DATA_H
  30. #include "tiff.h"
  31. #define TIFF_CONF_KEY_ID_OFFSET 1024
  32. extern const TiffGeoTagNameType ff_tiff_conf_name_type_map[3];
  33. #define TIFF_GEOG_KEY_ID_OFFSET 2048
  34. extern const TiffGeoTagNameType ff_tiff_geog_name_type_map[14];
  35. #define TIFF_PROJ_KEY_ID_OFFSET 3072
  36. extern const TiffGeoTagNameType ff_tiff_proj_name_type_map[24];
  37. #define TIFF_VERT_KEY_ID_OFFSET 4096
  38. extern const TiffGeoTagNameType ff_tiff_vert_name_type_map[4];
  39. #define TIFF_GEO_KEY_UNDEFINED 0
  40. #define TIFF_GEO_KEY_USER_DEFINED 32767
  41. #define TIFF_GT_MODEL_TYPE_OFFSET 1
  42. extern const char *const ff_tiff_gt_model_type_codes[3];
  43. #define TIFF_GT_RASTER_TYPE_OFFSET 1
  44. extern const char *const ff_tiff_gt_raster_type_codes[2];
  45. #define TIFF_LINEAR_UNIT_OFFSET 9001
  46. extern const char *const ff_tiff_linear_unit_codes[15];
  47. #define TIFF_ANGULAR_UNIT_OFFSET 9101
  48. extern const char *const ff_tiff_angular_unit_codes[8];
  49. #define TIFF_GCS_TYPE_OFFSET 4201
  50. extern const char *const ff_tiff_gcs_type_codes[133];
  51. #define TIFF_GCSE_TYPE_OFFSET 4001
  52. extern const char *const ff_tiff_gcse_type_codes[35];
  53. #define TIFF_GEODETIC_DATUM_OFFSET 6201
  54. extern const char *const ff_tiff_geodetic_datum_codes[120];
  55. #define TIFF_GEODETIC_DATUM_E_OFFSET 6001
  56. extern const char *const ff_tiff_geodetic_datum_e_codes[35];
  57. #define TIFF_ELLIPSOID_OFFSET 7001
  58. extern const char *const ff_tiff_ellipsoid_codes[35];
  59. #define TIFF_PRIME_MERIDIAN_OFFSET 8901
  60. extern const char *const ff_tiff_prime_meridian_codes[11];
  61. extern const TiffGeoTagKeyName ff_tiff_proj_cs_type_codes[978];
  62. extern const TiffGeoTagKeyName ff_tiff_projection_codes[298];
  63. #define TIFF_COORD_TRANS_OFFSET 1
  64. extern const char *const ff_tiff_coord_trans_codes[27];
  65. #define TIFF_VERT_CS_OFFSET 5001
  66. extern const char *const ff_tiff_vert_cs_codes[32];
  67. #define TIFF_ORTHO_VERT_CS_OFFSET 5101
  68. extern const char *const ff_tiff_ortho_vert_cs_codes[6];
  69. #endif