-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to the latest libwebp library (v1.2.x HEAD commit 05b72d4)
https://chromium.googlesource.com/webm/libwebp latest include files from src\webp latest built static libraries using the build instructions in the x86 and x64 toolset nmake /f Makefile.vc CFG=release-static RTLIBCFG=static OBJDIR=output
- Loading branch information
Showing
8 changed files
with
787 additions
and
355 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
// be found in the AUTHORS file in the root of the source tree. | ||
// ----------------------------------------------------------------------------- | ||
// | ||
// Common types | ||
// Common types + memory wrappers | ||
// | ||
// Author: Skal ([email protected]) | ||
|
||
|
@@ -18,10 +18,11 @@ | |
|
||
#ifndef _MSC_VER | ||
#include <inttypes.h> | ||
#ifdef __STRICT_ANSI__ | ||
#define WEBP_INLINE | ||
#else /* __STRICT_ANSI__ */ | ||
#if defined(__cplusplus) || !defined(__STRICT_ANSI__) || \ | ||
(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) | ||
#define WEBP_INLINE inline | ||
#else | ||
#define WEBP_INLINE | ||
#endif | ||
#else | ||
typedef signed char int8_t; | ||
|
@@ -38,10 +39,30 @@ typedef long long int int64_t; | |
#ifndef WEBP_EXTERN | ||
// This explicitly marks library functions and allows for changing the | ||
// signature for e.g., Windows DLL builds. | ||
#define WEBP_EXTERN(type) extern type | ||
# if defined(__GNUC__) && __GNUC__ >= 4 | ||
# define WEBP_EXTERN extern __attribute__ ((visibility ("default"))) | ||
# else | ||
# define WEBP_EXTERN extern | ||
# endif /* __GNUC__ >= 4 */ | ||
#endif /* WEBP_EXTERN */ | ||
|
||
// Macro to check ABI compatibility (same major revision number) | ||
#define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8)) | ||
|
||
#endif /* WEBP_WEBP_TYPES_H_ */ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
// Allocates 'size' bytes of memory. Returns NULL upon error. Memory | ||
// must be deallocated by calling WebPFree(). This function is made available | ||
// by the core 'libwebp' library. | ||
WEBP_EXTERN void* WebPMalloc(size_t size); | ||
|
||
// Releases memory returned by the WebPDecode*() functions (from decode.h). | ||
WEBP_EXTERN void WebPFree(void* ptr); | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif | ||
|
||
#endif // WEBP_WEBP_TYPES_H_ |
Binary file not shown.
Binary file not shown.