GDAL
gdalgrid_priv.h
1 /******************************************************************************
2  * $Id: gdalgrid_priv.h 29315 2015-06-05 20:21:41Z rouault $
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;
38 
39 typedef struct
40 {
41  GDALGridXYArrays* psXYArrays;
42  int i;
44 
45 typedef struct
46 {
47  CPLQuadTree* hQuadTree;
48  double dfInitialSearchRadius;
49  const float *pafX;
50  const float *pafY;
51  const float *pafZ;
53 
54 #ifdef HAVE_AVX_AT_COMPILE_TIME
55 int CPLHaveRuntimeAVX();
56 
57 CPLErr GDALGridInverseDistanceToAPower2NoSmoothingNoSearchAVX(
58  const void *poOptions,
59  GUInt32 nPoints,
60  const double *unused_padfX,
61  const double *unused_padfY,
62  const double *unused_padfZ,
63  double dfXPoint, double dfYPoint,
64  double *pdfValue,
65  void* hExtraParamsIn );
66 #endif
67 
68 #if defined(__GNUC__)
69 #if defined(__x86_64)
70 #define GCC_CPUID(level, a, b, c, d) \
71  __asm__ ("xchgq %%rbx, %q1\n" \
72  "cpuid\n" \
73  "xchgq %%rbx, %q1" \
74  : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \
75  : "0" (level))
76 #else
77 #define GCC_CPUID(level, a, b, c, d) \
78  __asm__ ("xchgl %%ebx, %1\n" \
79  "cpuid\n" \
80  "xchgl %%ebx, %1" \
81  : "=a" (a), "=r" (b), "=c" (c), "=d" (d) \
82  : "0" (level))
83 #endif
84 #endif
Definition: gdalgrid_priv.h:45
Quad tree implementation.
Definition: gdalgrid_priv.h:33
CPL error handling services.
Definition: gdalgrid_priv.h:39

Generated for GDAL by doxygen 1.8.11.