|
GDAL
|
00001 /****************************************************************************** 00002 * $Id: gdalgrid_priv.h 35087 2016-08-13 21:20:46Z rouault $ 00003 * 00004 * Project: GDAL Gridding API. 00005 * Purpose: Prototypes, and definitions for of GDAL scattered data gridder. 00006 * Author: Even Rouault, <even dot rouault at mines dash paris dot org> 00007 * 00008 ****************************************************************************** 00009 * Copyright (c) 2013, Even Rouault <even dot rouault at mines-paris dot org> 00010 * 00011 * Permission is hereby granted, free of charge, to any person obtaining a 00012 * copy of this software and associated documentation files (the "Software"), 00013 * to deal in the Software without restriction, including without limitation 00014 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00015 * and/or sell copies of the Software, and to permit persons to whom the 00016 * Software is furnished to do so, subject to the following conditions: 00017 * 00018 * The above copyright notice and this permission notice shall be included 00019 * in all copies or substantial portions of the Software. 00020 * 00021 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00022 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00023 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00024 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00025 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00026 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00027 * DEALINGS IN THE SOFTWARE. 00028 ****************************************************************************/ 00029 00030 #ifndef GDALGRID_PRIV_H 00031 #define GDALGRID_PRIV_H 00032 00033 #include "cpl_error.h" 00034 #include "cpl_quad_tree.h" 00035 00037 00038 typedef struct 00039 { 00040 const double* padfX; 00041 const double* padfY; 00042 } GDALGridXYArrays; 00043 00044 typedef struct 00045 { 00046 GDALGridXYArrays* psXYArrays; 00047 int i; 00048 } GDALGridPoint; 00049 00050 typedef struct 00051 { 00052 CPLQuadTree* hQuadTree; 00053 double dfInitialSearchRadius; 00054 float *pafX; // Aligned to be usable with AVX 00055 float *pafY; 00056 float *pafZ; 00057 GDALTriangulation* psTriangulation; 00058 int nInitialFacetIdx; 00060 double dfPowerDiv2PreComp; 00062 double dfRadiusPower2PreComp; 00064 double dfRadiusPower4PreComp; 00065 } GDALGridExtraParameters; 00066 00067 #ifdef HAVE_SSE_AT_COMPILE_TIME 00068 CPLErr 00069 GDALGridInverseDistanceToAPower2NoSmoothingNoSearchSSE( 00070 const void *poOptions, 00071 GUInt32 nPoints, 00072 const double *unused_padfX, 00073 const double *unused_padfY, 00074 const double *unused_padfZ, 00075 double dfXPoint, double dfYPoint, 00076 double *pdfValue, 00077 void* hExtraParamsIn ); 00078 #endif 00079 00080 #ifdef HAVE_AVX_AT_COMPILE_TIME 00081 CPLErr GDALGridInverseDistanceToAPower2NoSmoothingNoSearchAVX( 00082 const void *poOptions, 00083 GUInt32 nPoints, 00084 const double *unused_padfX, 00085 const double *unused_padfY, 00086 const double *unused_padfZ, 00087 double dfXPoint, double dfYPoint, 00088 double *pdfValue, 00089 void* hExtraParamsIn ); 00090 #endif 00091 00093 00094 #endif // GDALGRID_PRIV_H
1.7.6.1.