GDAL

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

gdalgrid_priv.h
1 /******************************************************************************
2 * $Id: gdalgrid_priv.h 33715 2016-03-13 08:52:06Z goatbar $
3 *
4 * Project: GDAL Gridding API.
5 * Purpose: Prototypes, and definitions for of GDAL scattered data gridder.
6 * Author: Even Rouault, <even dot rouault at mines dash paris dot org>
7 *
8 ******************************************************************************
9 * Copyright (c) 2013, Even Rouault <even dot rouault at mines-paris dot org>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30 #include "cpl_error.h"
31 #include "cpl_quad_tree.h"
32
33 typedef struct
34 {
35 const double* padfX;
36 const double* padfY;
37 } GDALGridXYArrays;
38
39 typedef struct
40 {
41 GDALGridXYArrays* psXYArrays;
42 int i;
43 } GDALGridPoint;
44
45 typedef struct
46 {
47 CPLQuadTree* hQuadTree;
48 double dfInitialSearchRadius;
49 const float *pafX;
50 const float *pafY;
51 const float *pafZ;
52 GDALTriangulation* psTriangulation;
53 int nInitialFacetIdx;
55 double dfPowerDiv2PreComp;
57 double dfRadiusPower2PreComp;
59 double dfRadiusPower4PreComp;
60 } GDALGridExtraParameters;
61
62 #ifdef HAVE_SSE_AT_COMPILE_TIME
63 int CPLHaveRuntimeSSE();
64
65 CPLErr
66 GDALGridInverseDistanceToAPower2NoSmoothingNoSearchSSE(
67 const void *poOptions,
68 GUInt32 nPoints,
69 const double *unused_padfX,
70 const double *unused_padfY,
71 const double *unused_padfZ,
72 double dfXPoint, double dfYPoint,
73 double *pdfValue,
74 void* hExtraParamsIn );
75 #endif
76
77 #ifdef HAVE_AVX_AT_COMPILE_TIME
78 int CPLHaveRuntimeAVX();
79
80 CPLErr GDALGridInverseDistanceToAPower2NoSmoothingNoSearchAVX(
81 const void *poOptions,
82 GUInt32 nPoints,
83 const double *unused_padfX,
84 const double *unused_padfY,
85 const double *unused_padfZ,
86 double dfXPoint, double dfYPoint,
87 double *pdfValue,
88 void* hExtraParamsIn );
89 #endif
90 #if defined(__GNUC__)
91 #if defined(__x86_64)
92 #define GCC_CPUID(level, a, b, c, d) \
93 __asm__ ("xchgq %%rbx, %q1\n" \
94 "cpuid\n" \
95 "xchgq %%rbx, %q1" \
96 : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \
97 : "0" (level))
98 #else
99 #define GCC_CPUID(level, a, b, c, d) \
100 __asm__ ("xchgl %%ebx, %1\n" \
101 "cpuid\n" \
102 "xchgl %%ebx, %1" \
103 : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \
104 : "0" (level))
105 #endif
106 #endif
GDALGridExtraParameters::dfPowerDiv2PreComp
double dfPowerDiv2PreComp
Definition: gdalgrid_priv.h:55
GDALGridExtraParameters
Definition: gdalgrid_priv.h:45
GDALGridExtraParameters::dfRadiusPower4PreComp
double dfRadiusPower4PreComp
Definition: gdalgrid_priv.h:59
cpl_quad_tree.h
Quad tree implementation.
GDALGridXYArrays
Definition: gdalgrid_priv.h:33
cpl_error.h
CPL error handling services.
GDALGridExtraParameters::dfRadiusPower2PreComp
double dfRadiusPower2PreComp
Definition: gdalgrid_priv.h:57
GDALGridPoint
Definition: gdalgrid_priv.h:39
GDALTriangulation
Definition: gdal_alg.h:563

Generated for GDAL by 1.8.8.