gaiagraphics.h | gaiagraphics.h | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
/ This program is distributed in the hope that it will be useful, | / This program is distributed in the hope that it will be useful, | |||
/ but WITHOUT ANY WARRANTY; without even the implied warranty of | / but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | / MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
/ GNU Lesser General Public License for more details. | / GNU Lesser General Public License for more details. | |||
/ | / | |||
/ You should have received a copy of the GNU Lesser General Public Licen se | / You should have received a copy of the GNU Lesser General Public Licen se | |||
/ along with this program. If not, see <http://www.gnu.org/licenses/>. | / along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
/ | / | |||
*/ | */ | |||
#ifdef _WIN32 | ||||
#ifdef DLL_EXPORT | #ifdef DLL_EXPORT | |||
#define GGRAPH_DECLARE __declspec(dllexport) | #define GGRAPH_DECLARE __declspec(dllexport) | |||
#else | #else | |||
#define GGRAPH_DECLARE extern | #define GGRAPH_DECLARE extern | |||
#endif | #endif | |||
#else | ||||
#define GGRAPH_DECLARE __attribute__ ((visibility("default"))) | ||||
#endif | ||||
#ifndef _GGRAPH_H | #ifndef _GGRAPH_H | |||
#define _GGRAPH_H | #define _GGRAPH_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" | extern "C" | |||
{ | { | |||
#endif | #endif | |||
#define GGRAPH_COLORSPACE_UNKNOWN -1000 | #define GGRAPH_COLORSPACE_UNKNOWN -1000 | |||
skipping to change at line 120 | skipping to change at line 124 | |||
#define GGRAPH_ASCII_CODEC_ERROR -16 | #define GGRAPH_ASCII_CODEC_ERROR -16 | |||
#define GGRAPH_UNSUPPORTED_TIFF_LAYOUT -17 | #define GGRAPH_UNSUPPORTED_TIFF_LAYOUT -17 | |||
#define GGRAPH_MISSING_GEO_DEFS -18 | #define GGRAPH_MISSING_GEO_DEFS -18 | |||
#define GGRAPH_INVALID_COLOR_RULE -19 | #define GGRAPH_INVALID_COLOR_RULE -19 | |||
#define GGRAPH_INVALID_COLOR_MAP -20 | #define GGRAPH_INVALID_COLOR_MAP -20 | |||
#define GGRAPH_INVALID_SHADED_RELIEF_3ROWS -21 | #define GGRAPH_INVALID_SHADED_RELIEF_3ROWS -21 | |||
#define GGRAPH_INVALID_PAINT_CONTEXT -22 | #define GGRAPH_INVALID_PAINT_CONTEXT -22 | |||
#define GGRAPH_INVALID_PAINT_BITMAP -23 | #define GGRAPH_INVALID_PAINT_BITMAP -23 | |||
#define GGRAPH_INVALID_PAINT_BRUSH -24 | #define GGRAPH_INVALID_PAINT_BRUSH -24 | |||
#define GGRAPH_INVALID_PAINT_FONT -25 | #define GGRAPH_INVALID_PAINT_FONT -25 | |||
#define GGRAPH_INVALID_SVG -26 | ||||
#define GGRAPH_TRUE -1 | #define GGRAPH_TRUE -1 | |||
#define GGRAPH_FALSE -2 | #define GGRAPH_FALSE -2 | |||
typedef struct gaia_graphics_landsat_recalibration | typedef struct gaia_graphics_landsat_recalibration | |||
{ | { | |||
/* a struct used for Landsat Radiometric Recalibration */ | /* a struct used for Landsat Radiometric Recalibration */ | |||
double sun_distance; /* Earth-Sun distance (in AU) */ | double sun_distance; /* Earth-Sun distance (in AU) */ | |||
double sun_elevation; /* Sun elevation (in degrees) */ | double sun_elevation; /* Sun elevation (in degrees) */ | |||
/* RED band params (#3) */ | /* RED band params (#3) */ | |||
skipping to change at line 786 | skipping to change at line 791 | |||
GGRAPH_DECLARE int gGraphGeoMergePixels (const void *img_in, | GGRAPH_DECLARE int gGraphGeoMergePixels (const void *img_in, | |||
const void *img_out); | const void *img_out); | |||
GGRAPH_DECLARE int gGraphImageFromStripImage (const void *img_in, | GGRAPH_DECLARE int gGraphImageFromStripImage (const void *img_in, | |||
int color_space, | int color_space, | |||
int sample_format, | int sample_format, | |||
int bits_per_sample, | int bits_per_sample, | |||
int samples_per_pixel, | int samples_per_pixel, | |||
int start_line, | int start_line, | |||
const void **img_out); | const void **img_out); | |||
/* SVG images */ | ||||
GGRAPH_DECLARE int gGraphCreateSVG (const unsigned char *svg_document, | ||||
int svg_bytes, void **svg_handle); | ||||
GGRAPH_DECLARE int gGraphGetSVGDims (void *svg_handle, double *width, | ||||
double *height); | ||||
GGRAPH_DECLARE int gGraphImageFromSVG (void *handle, double size, | ||||
const void **img_out); | ||||
GGRAPH_DECLARE int gGraphFreeSVG (void *sgv_handle); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif /* _GGRAPH_H */ | #endif /* _GGRAPH_H */ | |||
End of changes. 4 change blocks. | ||||
0 lines changed or deleted | 14 lines changed or added | |||