refactor(types): do proper image typ casting

This commit is contained in:
Tomas Aparicio 2016-09-27 21:31:44 +01:00
parent 62d764433d
commit 5e79759297
4 changed files with 133 additions and 18 deletions

43
vips.h
View file

@ -1,5 +1,6 @@
#include <stdlib.h>
#include <vips/vips.h>
#include <vips/foreign.h>
#include <vips/vips7compat.h>
#ifdef VIPS_MAGICK_H
@ -8,6 +9,48 @@
#define VIPS_MAGICK_SUPPORT 0
#endif
#ifdef HAVE_JPEG
#define VIPS_JPEG_SUPPORT 1
#else
#define VIPS_JPEG_SUPPORT 0
#endif
#ifdef HAVE_PNG
#define VIPS_PNG_SUPPORT 1
#else
#define VIPS_PNG_SUPPORT 0
#endif
#ifdef HAVE_LIBWEBP
#define VIPS_WEBP_SUPPORT 1
#else
#define VIPS_WEBP_SUPPORT 0
#endif
#ifdef HAVE_GIFLIB
#define VIPS_GIF_SUPPORT 1
#else
#define VIPS_GIF_SUPPORT 0
#endif
#ifdef HAVE_RSVG
#define VIPS_SVG_SUPPORT 1
#else
#define VIPS_SVG_SUPPORT 0
#endif
#ifdef HAVE_POPPLER
#define VIPS_PDF_SUPPORT 1
#else
#define VIPS_PDF_SUPPORT 0
#endif
#ifdef HAVE_TIFF
#define VIPS_TIFF_SUPPORT 1
#else
#define VIPS_TIFF_SUPPORT 0
#endif
/**
* Starting libvips 7.41, VIPS_ANGLE_x has been renamed to VIPS_ANGLE_Dx
* "to help python". So we provide the macro to correctly build for versions