/usr/include/ossim/base/ossimConstants.h is in libossim-dev 1.7.21-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | /********************************************************************
*
* License: See top level LICENSE.txt file.
*
* Author: Ken Melero
*
* Description: Common file for global constants.
*
**************************************************************************
* $Id: ossimConstants.h 13590 2008-09-24 12:35:43Z gpotts $
*/
#ifndef ossimConstants_HEADER
#define ossimConstants_HEADER
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
#include <cfloat>
#else
#include <float.h>
#endif
#include <ossim/ossimConfig.h>
#ifdef NULL
#undef NULL
#define NULL 0
#endif
/**
* WARNINGS SECTION:
*/
#ifdef _MSC_VER /* Quiet a bunch of MSVC warnings... */
# pragma warning(disable:4786) /* visual c6.0 compiler */
# pragma warning(disable:4251)/* for std:: member variable to have dll interface */
# pragma warning(disable:4275) /* for std:: base class to have dll interface */
# pragma warning(disable:4800) /* int forcing value to bool */
# pragma warning(disable:4244) /* conversion, possible loss of data */
#endif
/**
* DLL IMPORT/EXORT SECTION
*/
#if defined(OSSIM_STATIC)
# define OSSIMEXPORT
# define OSSIMIMPORT
# define OSSIMDLLEXPORT
# define OSSIM_DLL
# define OSSIMDLLEXPORT_DATA(type) type
# define OSSIM_DLL_DATA(type) type
# define OSSIMDLLEXPORT_CTORFN
#elif defined(__MINGW32__) || defined(__CYGWIN__) || defined(_MSC_VER) || defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
# define OSSIMEXPORT __declspec(dllexport)
# define OSSIMIMPORT __declspec(dllimport)
# ifdef OSSIMMAKINGDLL
# define OSSIMDLLEXPORT OSSIMEXPORT
# define OSSIM_DLL OSSIMEXPORT
# define OSSIMDLLEXPORT_DATA(type) OSSIMEXPORT type
# define OSSIM_DLL_DATA(type) OSSIMEXPORT type
# define OSSIMDLLEXPORT_CTORFN
# else
# define OSSIMDLLEXPORT OSSIMIMPORT
# define OSSIM_DLL OSSIMIMPORT
# define OSSIMDLLEXPORT_DATA(type) OSSIMIMPORT type
# define OSSIM_DLL_DATA(type) OSSIMIMPORT type
# define OSSIMDLLEXPORT_CTORFN
# endif
#else /* not #if defined(_MSC_VER) */
# define OSSIMEXPORT
# define OSSIMIMPORT
# define OSSIMDLLEXPORT
# define OSSIM_DLL
# define OSSIMDLLEXPORT_DATA(type) type
# define OSSIM_DLL_DATA(type) type
# define OSSIMDLLEXPORT_CTORFN
#endif /* #if defined(_MSC_VER) */
/**
* Previous DLL import export section. Commented out, but left just in case.
*/
#if 0 /* Comment out ALL this mess! */
#if defined(_MSC_VER) || defined(__VISUALC__) || defined(__BORLANDC__) || defined(__GNUC__) || defined(__WATCOMC__)
# if (_MSC_VER >= 1300) /* MSVC .NET 2003 version */
# define OSSIMEXPORT __declspec(dllexport)
# define OSSIMIMPORT __declspec(dllimport)
# else
# define OSSIMEXPORT __declspec(dllexport)
# define OSSIMIMPORT __declspec(dllimport)
# endif
#else /* compiler doesn't support __declspec() */
# define OSSIMEXPORT
# define OSSIMIMPORT
#endif
#if defined(__WXPM__)
# if defined (__WATCOMC__)
# define OSSIMEXPORT __declspec(dllexport)
/*
__declspec(dllimport) prepends __imp to imported symbols. We do NOT
want that!
*/
# define OSSIMIMPORT
# elif (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 )))
# define OSSIMEXPORT _Export
# define OSSIMIMPORT _Export
# endif
#elif defined(__OSSIMMAC__)
# ifdef __MWERKS__
# define OSSIMEXPORT __declspec(export)
# define OSSIMIMPORT __declspec(import)
# endif
#endif
#if defined(_MSC_VER)
# pragma warning(disable:4786) /* visual c6.0 compiler */
# pragma warning(disable:4251) /* for std:: member variable to have dll interface */
# pragma warning(disable:4275) /* for std:: base class to have dll interface */
# pragma warning(disable:4800) /* int forcing value to bool */
# pragma warning(disable:4244) /* conversion, possible loss of data */
# ifdef OSSIMSINGLEDLL /* one gigantic dll, all declared export */
# ifdef EXPORT_OSMMATRIX
# define EXPORT_OSMMATRIX OSSIMEXPORT
# endif
# ifndef OSSIMDLLEXPORT
# define OSSIMDLLEXPORT OSSIMEXPORT
# endif
# ifdef EXPORT_OSMELEV
# define EXPORT_OSMELEV OSSIMEXPORT
# endif
# ifdef EXPORT_OSMSPTDATA
# define EXPORT_OSMSPTDATA OSSIMEXPORT
# endif
# ifdef EXPORT_ISO8211
# define EXPORT_ISO8211 OSSIMEXPORT
# endif
# ifdef EXPORT_OSMPROJ
# define EXPORT_OSMPROJ OSSIMEXPORT
# endif
# ifndef EXPORT_OSMIMAGING
# define EXPORT_OSMIMAGING OSSIMEXPORT
# endif
# else /* individual dlls, each with their own import/export symbols */
# ifndef EXPORT_OSMMATRIX
# ifdef OSMMATRIX_EXPORTS
# define EXPORT_OSMMATRIX OSSIMEXPORT
# else
# define EXPORT_OSMMATRIX OSSIMIMPORT
# endif
# endif
# ifndef OSSIMDLLEXPORT
# ifdef OSMBASE_EXPORTS
# define OSSIMDLLEXPORT OSSIMEXPORT
# else
# define OSSIMDLLEXPORT OSSIMIMPORT
# endif
# endif
# ifndef EXPORT_OSMELEV
# ifdef OSMELEV_EXPORTS
# define EXPORT_OSMELEV OSSIMEXPORT
# else
# define EXPORT_OSMELEV OSSIMIMPORT
# endif
# endif
# ifndef EXPORT_OSMSPTDATA
# ifdef OSMSPTDATA_EXPORTS
# define EXPORT_OSMSPTDATA OSSIMEXPORT
# else
# define EXPORT_OSMSPTDATA OSSIMIMPORT
# endif
# endif
# ifndef EXPORT_OSMPROJ
# ifdef OSMPROJ_EXPORTS
# define EXPORT_OSMPROJ OSSIMEXPORT
# else
# define EXPORT_OSMPROJ OSSIMIMPORT
# endif
# endif
# ifndef EXPORT_ISO8211
# ifdef ISO8211_EXPORTS
# define EXPORT_ISO8211 OSSIMEXPORT
# else
# define EXPORT_ISO8211 OSSIMIMPORT
# endif
# endif
# ifndef EXPORT_OSMIMAGING
# ifdef OSMIMAGING_EXPORTS
# define EXPORT_OSMIMAGING OSSIMEXPORT
# else
# define EXPORT_OSMIMAGING OSSIMIMPORT
# endif
# endif
# endif
#else /* defined(_MSC_VER) */
# ifdef OSSIMMAKINGDLL
# define OSSIMDLLEXPORT OSSIMEXPORT
# define OSSIM_DLL OSSIMEXPORT
# define OSSIMDLLEXPORT_DATA(type) OSSIMEXPORT type
# define OSSIM_DLL_DATA(type) OSSIMEXPORT type
# define OSSIMDLLEXPORT_CTORFN
# elif defined(OSSIMUSINGDLL)
# define OSSIMDLLEXPORT OSSIMIMPORT
# define OSSIM_DLL OSSIMIMPORT
# define OSSIMDLLEXPORT_DATA(type) OSSIMIMPORT type
# define OSSIM_DLL_DATA(type) OSSIMIMPORT type
# define OSSIMDLLEXPORT_CTORFN
# else /* not making nor using DLL */
# define OSSIMDLLEXPORT
# define OSSIM_DLL
# define OSSIM_DLL_DATA(type) type
# define OSSIMDLLEXPORT_DATA(type) type
# define OSSIMDLLEXPORT_CTORFN
# endif
# define EXPORT_OSMMATRIX OSSIMDLLEXPORT
# define EXPORT_OSMELEV OSSIMDLLEXPORT
# define EXPORT_OSMSPTDATA OSSIMDLLEXPORT
# define EXPORT_OSMPROJ OSSIMDLLEXPORT
# define EXPORT_OSMIMAGING OSSIMDLLEXPORT
#endif
#endif /* End of commented out "#if 0" old DLL import/export section. */
/*
we know that if this is defined all other types are defined
since its included from ossimConfig.h
*/
typedef char ossim_int8;
typedef unsigned char ossim_uint8;
typedef signed char ossim_sint8;
typedef short ossim_int16;
typedef unsigned short ossim_uint16;
typedef signed short ossim_sint16;
typedef int ossim_int32;
typedef unsigned int ossim_uint32;
typedef signed int ossim_sint32;
typedef float ossim_float32;
typedef double ossim_float64;
typedef long long ossim_int64;
typedef unsigned long long ossim_uint64;
typedef signed long long ossim_sint64;
typedef ossim_int32 ossimErrorCode;
enum ossimVertexOrdering
{
OSSIM_VERTEX_ORDER_UNKNOWN = 0,
OSSIM_CLOCKWISE_ORDER = 1,
OSSIM_COUNTERCLOCKWISE_ORDER = 2
};
/*
Corner coordinates are relative to center (0) of pixel
or relative to the upper left of pixel (1).
*/
enum ossimPixelType
{
OSSIM_PIXEL_IS_POINT = 0,
OSSIM_PIXEL_IS_AREA = 1
};
/*
Definitions for scalar type identification.
*/
enum ossimScalarType
{
OSSIM_SCALAR_UNKNOWN = 0,
OSSIM_UINT8 = 1, /**< 8 bit unsigned integer */
OSSIM_SINT8 = 2, /**< 8 bit signed integer */
OSSIM_UINT16 = 3, /**< 16 bit unsigned integer */
OSSIM_SINT16 = 4, /**< 16 bit signed integer */
OSSIM_UINT32 = 5, /**< 32 bit unsigned integer */
OSSIM_SINT32 = 6, /**< 32 bit signed integer */
OSSIM_FLOAT32 = 7, /**< 32 bit floating point */
OSSIM_FLOAT64 = 8, /**< 64 bit floating point */
OSSIM_CINT16 = 9, /**< 16 bit complex integer */
OSSIM_CINT32 = 10, /**< 32 bit complex integer */
OSSIM_CFLOAT32 = 11, /**< 32 bit complex floating point */
OSSIM_CFLOAT64 = 12, /**< 64 bit complex floating point */
//---
// Below for backward compatibility only. Please use above enums in
// conjunction with null, min, max settings to determine bit depth.
//---
OSSIM_UCHAR = 1, /**< 8 bit unsigned iteger */
OSSIM_USHORT16 = 3, /**< 16 bit unsigned iteger */
OSSIM_SSHORT16 = 4, /**< 16 bit signed integer */
OSSIM_USHORT11 = 13, /**< 16 bit unsigned integer (11 bits used) */
OSSIM_FLOAT = 7, /**< 32 bit floating point */
OSSIM_NORMALIZED_FLOAT = 18, /**< normalized floating point 32 bit */
OSSIM_DOUBLE = 8, /**< double 64 bit */
OSSIM_NORMALIZED_DOUBLE = 20 /**< Normalized double 64 bit */
};
/*
Definitions for interleave type identification.
*/
enum ossimInterleaveType
{
OSSIM_INTERLEAVE_UNKNOWN = 0,
OSSIM_BIL = 1, /* band interleaved by line */
OSSIM_BIP = 2, /* band interleaved by pixel */
OSSIM_BSQ = 3, /* band sequential */
OSSIM_BSQ_MULTI_FILE = 4 /* band sequential in separate files */
};
/*
Definitions for origin location.
*/
enum ossimOriginLocationType
{
OSSIM_ORIGIN_LOCATION_UNKNOWN = 0,
OSSIM_CENTER = 1,
OSSIM_UPPER_LEFT = 2,
OSSIM_UPPER_LEFT_CENTER = 3,
OSSIM_LOWER_LEFT = 4,
OSSIM_LOWER_LEFT_CENTER = 5
};
/*
Definitions for coordinate system type.
*/
enum ossimCoordinateSystemType
{
OSSIM_COORDINATE_SYSTEM_UNKNOWN = 0,
OSSIM_IMAGE_SPACE = 1,
OSSIM_GEOGRAPHIC_SPACE = 2,
OSSIM_PROJECTED_SPACE = 3,
OSSIM_GEOCENTRIC_SPACE = 4
};
/*
Definitions for coordinate system orientation mode .
*/
enum ossimCoordSysOrientMode
{
OSSIM_LEFT_HANDED = 0,
OSSIM_RIGHT_HANDED = 1
};
/*
Definitions for unit type.
*/
enum ossimUnitType
{
OSSIM_UNIT_UNKNOWN = 0,
OSSIM_METERS = 1,
OSSIM_FEET = 2,
OSSIM_US_SURVEY_FEET = 3,
OSSIM_DEGREES = 4,
OSSIM_RADIANS = 5,
OSSIM_NAUTICAL_MILES = 6,
OSSIM_SECONDS = 7,
OSSIM_MINUTES = 8,
OSSIM_PIXEL = 9,
OSSIM_MILES = 10,
OSSIM_MILLIMETERS = 11,
OSSIM_MICRONS = 12,
OSSIM_CENTIMETERS = 13,
OSSIM_YARDS = 14,
OSSIM_INCHES = 15,
OSSIM_KILOMETERS = 16
};
/*
Definitions for data object status.
*/
enum ossimDataObjectStatus
{
OSSIM_STATUS_UNKNOWN = 0,
OSSIM_NULL = 1,
OSSIM_EMPTY = 2,
OSSIM_PARTIAL = 3,
OSSIM_FULL = 4
};
/** Definitions for image type identification. */
enum ossimImageType
{
OSSIM_IMAGE_TYPE_UNKNOWN = 0,
OSSIM_TIFF_STRIP = 1,
OSSIM_TIFF_STRIP_BAND_SEPARATE = 2,
OSSIM_TIFF_TILED = 3,
OSSIM_TIFF_TILED_BAND_SEPARATE = 4,
OSSIM_GENERAL_RASTER_BIP = 5,
OSSIM_GENERAL_RASTER_BIL = 6,
OSSIM_GENERAL_RASTER_BSQ = 7,
OSSIM_JPEG = 8
};
/** Definitions for metadata type identification. */
enum ossimMetadataType
{
OSSIM_META_UNKNOWN = 0,
OSSIM_META_TFW = 1,
OSSIM_META_JGW = 2,
OSSIM_META_GEOM = 3,
OSSIM_META_README = 4,
OSSIM_META_FGDC = 5,
OSSIM_META_ENVI = 6
};
enum ossimByteOrder
{
OSSIM_LITTLE_ENDIAN = 0,
OSSIM_BIG_ENDIAN = 1
};
#ifndef M_PI
# define M_PI ((ossim_float64)3.141592653589793238462643)
#endif
#ifndef TWO_PI
# define TWO_PI ((ossim_float64)(2.0 * M_PI))
#endif
#ifndef DEG_PER_RAD
# define DEG_PER_RAD ((ossim_float64)(180.0/M_PI))
#endif
#ifndef SEC_PER_RAD
# define SEC_PER_RAD ((ossim_float64)206264.8062471)
#endif
#ifndef RAD_PER_DEG
# define RAD_PER_DEG ((ossim_float64)(M_PI/180.0))
#endif
#ifndef MTRS_PER_FT
# define MTRS_PER_FT ((ossim_float64)0.3048)
#endif
#ifndef FT_PER_MTRS
# define FT_PER_MTRS ((ossim_float64)3.280839895013122)
#endif
#ifndef FT_PER_MILE
# define FT_PER_MILE ((ossim_float64)5280.0)
#endif
#ifndef SQRT_TWO_PI
# define SQRT_TWO_PI ((ossim_float64)2.50662827463100050242)
#endif
#ifndef SQRT_TWO_PI_DIV2
# define SQRT_TWO_PI_DIV2 ((ossim_float64)7.07106781186547524401E-1)
#endif
#define TIFFTAG_OSSIM_METADATA 50955
#define OSSIM_DEFAULT_TILE_HEIGHT ((ossim_int32)64)
#define OSSIM_DEFAULT_TILE_WIDTH ((ossim_int32)64)
/*
NOTE Reference for U.S. feet value:
U.S.G.S. "Map Projections - A Working Manual"
USGS Professional paper 1395 page 51
*/
#ifndef US_METERS_PER_FT
# define US_METERS_PER_FT ((ossim_float64)0.3048006096)
#endif
//---
// Integer nan kept for ossimIpt.
// This should be the most negative int: -2147483648
//---
#define OSSIM_INT_NAN ((ossim_sint32)0x80000000)
#define OSSIM_DEFAULT_NULL_PIX_UCHAR ((ossim_uint8)0)
#define OSSIM_DEFAULT_MIN_PIX_UCHAR ((ossim_uint8)1)
#define OSSIM_DEFAULT_MAX_PIX_UCHAR ((ossim_uint8)255)
#define OSSIM_DEFAULT_NULL_PIX_UINT8 ((ossim_uint8)0)
#define OSSIM_DEFAULT_MIN_PIX_UINT8 ((ossim_uint8)1)
#define OSSIM_DEFAULT_MAX_PIX_UINT8 ((ossim_uint8)255)
#define OSSIM_DEFAULT_NULL_PIX_SINT8 ((ossim_sint8)0x80)
#define OSSIM_DEFAULT_MIN_PIX_SINT8 ((ossim_sint8)0x81)
#define OSSIM_DEFAULT_MAX_PIX_SINT8 ((ossim_sint8)0x7F)
#define OSSIM_DEFAULT_NULL_PIX_SINT16 ((ossim_sint16)0x8000)
#define OSSIM_DEFAULT_MIN_PIX_SINT16 ((ossim_sint16)0x8001)
#define OSSIM_DEFAULT_MAX_PIX_SINT16 ((ossim_sint16)0x7FFF)
#define OSSIM_DEFAULT_NULL_PIX_UINT16 ((ossim_uint16)0)
#define OSSIM_DEFAULT_MIN_PIX_UINT16 ((ossim_uint16)1)
#define OSSIM_DEFAULT_MAX_PIX_UINT16 ((ossim_uint16)0xFFFF)
#define OSSIM_DEFAULT_NULL_PIX_SINT32 ((ossim_sint32)0x80000000)
#define OSSIM_DEFAULT_MIN_PIX_SINT32 ((ossim_sint32)0x80000001)
#define OSSIM_DEFAULT_MAX_PIX_SINT32 ((ossim_sint32)0x7FFFFFFF)
#define OSSIM_DEFAULT_NULL_PIX_UINT32 ((ossim_uint32)0)
#define OSSIM_DEFAULT_MIN_PIX_UINT32 ((ossim_uint32)1)
#define OSSIM_DEFAULT_MAX_PIX_UINT32 ((ossim_uint32)0xFFFFFFFF)
#define OSSIM_DEFAULT_NULL_PIX_UINT11 ((ossim_uint16)0)
#define OSSIM_DEFAULT_MIN_PIX_UINT11 ((ossim_uint16)1)
#define OSSIM_DEFAULT_MAX_PIX_UINT11 ((ossim_uint16)0x07FF)
#define OSSIM_DEFAULT_NULL_PIX_FLOAT ((ossim_float32)-1.0/FLT_EPSILON)
#define OSSIM_DEFAULT_MIN_PIX_FLOAT ((ossim_float32)((-1.0/FLT_EPSILON) + 1))
#define OSSIM_DEFAULT_MAX_PIX_FLOAT ((ossim_float32)((1.0/FLT_EPSILON)))
#define OSSIM_DEFAULT_NULL_PIX_NORM_FLOAT ((ossim_float32)0)
#define OSSIM_DEFAULT_MIN_PIX_NORM_FLOAT ((ossim_float32)((2*FLT_EPSILON)))
#define OSSIM_DEFAULT_MAX_PIX_NORM_FLOAT ((ossim_float32)1.0)
#define OSSIM_DEFAULT_NULL_PIX_DOUBLE ((ossim_float64)-1.0/DBL_EPSILON)
#define OSSIM_DEFAULT_MIN_PIX_DOUBLE ((ossim_float64)((-1.0/DBL_EPSILON) + 1))
#define OSSIM_DEFAULT_MAX_PIX_DOUBLE ((ossim_float64)((1.0/DBL_EPSILON)))
#define OSSIM_DEFAULT_NULL_PIX_NORM_DOUBLE ((ossim_float64)0)
#define OSSIM_DEFAULT_MIN_PIX_NORM_DOUBLE ((ossim_float64)((2*DBL_EPSILON)))
#define OSSIM_DEFAULT_MAX_PIX_NORM_DOUBLE ((ossim_float64)(1.0))
#define OSSIM_DEFAULT_MEAN_SEA_LEVEL ((ossim_float64)0.0)
#ifdef __cplusplus
}
#endif
#endif
|