00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef GDAL_VRT_H_INCLUDED
00031 #define GDAL_VRT_H_INCLUDED
00032
00039 #include "gdal.h"
00040 #include "cpl_port.h"
00041 #include "cpl_error.h"
00042 #include "cpl_minixml.h"
00043
00044 #define VRT_NODATA_UNSET -1234.56
00045
00046 CPL_C_START
00047
00048 void GDALRegister_VRT(void);
00049 typedef CPLErr
00050 (*VRTImageReadFunc)( void *hCBData,
00051 int nXOff, int nYOff, int nXSize, int nYSize,
00052 void *pData );
00053
00054
00055
00056
00057 typedef void *VRTDriverH;
00058 typedef void *VRTSourceH;
00059 typedef void *VRTSimpleSourceH;
00060 typedef void *VRTAveragedSourceH;
00061 typedef void *VRTComplexSourceH;
00062 typedef void *VRTFilteredSourceH;
00063 typedef void *VRTKernelFilteredSourceH;
00064 typedef void *VRTAverageFilteredSourceH;
00065 typedef void *VRTFuncSourceH;
00066 typedef void *VRTDatasetH;
00067 typedef void *VRTWarpedDatasetH;
00068 typedef void *VRTRasterBandH;
00069 typedef void *VRTSourcedRasterBandH;
00070 typedef void *VRTWarpedRasterBandH;
00071 typedef void *VRTDerivedRasterBandH;
00072 typedef void *VRTRawRasterBandH;
00073
00074
00075
00076
00077
00078 VRTDatasetH CPL_DLL CPL_STDCALL VRTCreate( int, int );
00079 void CPL_DLL CPL_STDCALL VRTFlushCache( VRTDatasetH );
00080 CPLXMLNode CPL_DLL * CPL_STDCALL VRTSerializeToXML( VRTDatasetH, const char * );
00081 int CPL_DLL CPL_STDCALL VRTAddBand( VRTDatasetH, GDALDataType, char ** );
00082
00083
00084
00085
00086
00087 CPLErr CPL_STDCALL VRTAddSource( VRTSourcedRasterBandH, VRTSourceH );
00088 CPLErr CPL_DLL CPL_STDCALL VRTAddSimpleSource( VRTSourcedRasterBandH,
00089 GDALRasterBandH,
00090 int, int, int, int,
00091 int, int, int, int,
00092 const char *, double );
00093 CPLErr CPL_DLL CPL_STDCALL VRTAddComplexSource( VRTSourcedRasterBandH,
00094 GDALRasterBandH,
00095 int, int, int, int,
00096 int, int, int, int,
00097 double, double, double );
00098 CPLErr CPL_DLL CPL_STDCALL VRTAddFuncSource( VRTSourcedRasterBandH,
00099 VRTImageReadFunc,
00100 void *, double );
00101
00102 CPL_C_END
00103
00104 #endif
00105