|
29 | 29 | // Version information ------------------------------------------------------ |
30 | 30 |
|
31 | 31 | #define FREEIMAGE_MAJOR_VERSION 3 |
32 | | -#define FREEIMAGE_MINOR_VERSION 17 |
| 32 | +#define FREEIMAGE_MINOR_VERSION 18 |
33 | 33 | #define FREEIMAGE_RELEASE_SERIAL 0 |
34 | 34 |
|
35 | 35 | // Compiler options --------------------------------------------------------- |
|
75 | 75 | // or define any of FREEIMAGE_BIGENDIAN and FREEIMAGE_LITTLEENDIAN directly |
76 | 76 | // to specify the desired endianness. |
77 | 77 | #if (!defined(FREEIMAGE_BIGENDIAN) && !defined(FREEIMAGE_LITTLEENDIAN)) |
78 | | - #if (defined(BYTE_ORDER) && BYTE_ORDER==BIG_ENDIAN) || (defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN) || defined(__BIG_ENDIAN__) |
| 78 | +#if (defined(BYTE_ORDER) && BYTE_ORDER==BIG_ENDIAN) || (defined(__BYTE_ORDER) && __BYTE_ORDER==__BIG_ENDIAN) || (defined(__BYTE_ORDER) && __BYTE_ORDER==__ORDER_BIG_ENDIAN__) || defined(__BIG_ENDIAN__) |
79 | 79 | #define FREEIMAGE_BIGENDIAN |
80 | 80 | #endif // BYTE_ORDER |
81 | 81 | #endif // !FREEIMAGE_[BIG|LITTLE]ENDIAN |
@@ -731,6 +731,9 @@ typedef void (DLL_CALLCONV *FI_InitProc)(Plugin *plugin, int format_id); |
731 | 731 | #define PSD_DEFAULT 0 |
732 | 732 | #define PSD_CMYK 1 //! reads tags for separated CMYK (default is conversion to RGB) |
733 | 733 | #define PSD_LAB 2 //! reads tags for CIELab (default is conversion to RGB) |
| 734 | +#define PSD_NONE 0x0100 //! save without any compression |
| 735 | +#define PSD_RLE 0x0200 //! save using RLE compression |
| 736 | +#define PSD_PSB 0x2000 //! save using Adobe Large Document Format (use | to combine with other save flags) |
734 | 737 | #define RAS_DEFAULT 0 |
735 | 738 | #define RAW_DEFAULT 0 //! load the file as linear RGB 48-bit |
736 | 739 | #define RAW_PREVIEW 1 //! try to load the embedded JPEG preview with included Exif Data or default to RGB 24-bit |
@@ -873,13 +876,19 @@ DLL_API void DLL_CALLCONV FreeImage_UnlockPage(FIMULTIBITMAP *bitmap, FIBITMAP * |
873 | 876 | DLL_API BOOL DLL_CALLCONV FreeImage_MovePage(FIMULTIBITMAP *bitmap, int target, int source); |
874 | 877 | DLL_API BOOL DLL_CALLCONV FreeImage_GetLockedPageNumbers(FIMULTIBITMAP *bitmap, int *pages, int *count); |
875 | 878 |
|
876 | | -// Filetype request routines ------------------------------------------------ |
| 879 | +// File type request routines ------------------------------------------------ |
877 | 880 |
|
878 | 881 | DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileType(const char *filename, int size FI_DEFAULT(0)); |
879 | 882 | DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileTypeU(const wchar_t *filename, int size FI_DEFAULT(0)); |
880 | 883 | DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileTypeFromHandle(FreeImageIO *io, fi_handle handle, int size FI_DEFAULT(0)); |
881 | 884 | DLL_API FREE_IMAGE_FORMAT DLL_CALLCONV FreeImage_GetFileTypeFromMemory(FIMEMORY *stream, int size FI_DEFAULT(0)); |
882 | 885 |
|
| 886 | +DLL_API BOOL DLL_CALLCONV FreeImage_Validate(FREE_IMAGE_FORMAT fif, const char *filename); |
| 887 | +DLL_API BOOL DLL_CALLCONV FreeImage_ValidateU(FREE_IMAGE_FORMAT fif, const wchar_t *filename); |
| 888 | +DLL_API BOOL DLL_CALLCONV FreeImage_ValidateFromHandle(FREE_IMAGE_FORMAT fif, FreeImageIO *io, fi_handle handle); |
| 889 | +DLL_API BOOL DLL_CALLCONV FreeImage_ValidateFromMemory(FREE_IMAGE_FORMAT fif, FIMEMORY *stream); |
| 890 | + |
| 891 | + |
883 | 892 | // Image type request routine ----------------------------------------------- |
884 | 893 |
|
885 | 894 | DLL_API FREE_IMAGE_TYPE DLL_CALLCONV FreeImage_GetImageType(FIBITMAP *dib); |
@@ -979,8 +988,11 @@ DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To24_555(BYTE *target, BYTE *so |
979 | 988 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To24_565(BYTE *target, BYTE *source, int width_in_pixels); |
980 | 989 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine32To24(BYTE *target, BYTE *source, int width_in_pixels); |
981 | 990 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine1To32(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette); |
| 991 | +DLL_API void DLL_CALLCONV FreeImage_ConvertLine1To32MapTransparency(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette, BYTE *table, int transparent_pixels); |
982 | 992 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine4To32(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette); |
| 993 | +DLL_API void DLL_CALLCONV FreeImage_ConvertLine4To32MapTransparency(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette, BYTE *table, int transparent_pixels); |
983 | 994 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine8To32(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette); |
| 995 | +DLL_API void DLL_CALLCONV FreeImage_ConvertLine8To32MapTransparency(BYTE *target, BYTE *source, int width_in_pixels, RGBQUAD *palette, BYTE *table, int transparent_pixels); |
984 | 996 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To32_555(BYTE *target, BYTE *source, int width_in_pixels); |
985 | 997 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine16To32_565(BYTE *target, BYTE *source, int width_in_pixels); |
986 | 998 | DLL_API void DLL_CALLCONV FreeImage_ConvertLine24To32(BYTE *target, BYTE *source, int width_in_pixels); |
@@ -1092,8 +1104,6 @@ DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformCombinedFromMemory(FIMEMORY* sr |
1092 | 1104 | // -------------------------------------------------------------------------- |
1093 | 1105 |
|
1094 | 1106 | // rotation and flipping |
1095 | | -/// @deprecated see FreeImage_Rotate |
1096 | | -DLL_API FIBITMAP *DLL_CALLCONV FreeImage_RotateClassic(FIBITMAP *dib, double angle); |
1097 | 1107 | DLL_API FIBITMAP *DLL_CALLCONV FreeImage_Rotate(FIBITMAP *dib, double angle, const void *bkcolor FI_DEFAULT(NULL)); |
1098 | 1108 | DLL_API FIBITMAP *DLL_CALLCONV FreeImage_RotateEx(FIBITMAP *dib, double angle, double x_shift, double y_shift, double x_origin, double y_origin, BOOL use_mask); |
1099 | 1109 | DLL_API BOOL DLL_CALLCONV FreeImage_FlipHorizontal(FIBITMAP *dib); |
|
0 commit comments