Update libwebp to 1.1.0
This commit is contained in:
parent
6b64c60b0e
commit
65f2ab1b61
28 changed files with 121 additions and 81 deletions
|
|
@ -26,7 +26,7 @@ extern "C" {
|
|||
|
||||
// Main color cache struct.
|
||||
typedef struct {
|
||||
uint32_t *colors_; // color entries
|
||||
uint32_t* colors_; // color entries
|
||||
int hash_shift_; // Hash shift: 32 - hash_bits_.
|
||||
int hash_bits_;
|
||||
} VP8LColorCache;
|
||||
|
|
|
|||
2
thirdparty/libwebp/src/utils/thread_utils.c
vendored
2
thirdparty/libwebp/src/utils/thread_utils.c
vendored
|
|
@ -73,7 +73,7 @@ typedef struct {
|
|||
#endif
|
||||
|
||||
static int pthread_create(pthread_t* const thread, const void* attr,
|
||||
unsigned int (__stdcall *start)(void*), void* arg) {
|
||||
unsigned int (__stdcall* start)(void*), void* arg) {
|
||||
(void)attr;
|
||||
#ifdef USE_CREATE_THREAD
|
||||
*thread = CreateThread(NULL, /* lpThreadAttributes */
|
||||
|
|
|
|||
9
thirdparty/libwebp/src/utils/utils.c
vendored
9
thirdparty/libwebp/src/utils/utils.c
vendored
|
|
@ -216,9 +216,14 @@ void WebPSafeFree(void* const ptr) {
|
|||
free(ptr);
|
||||
}
|
||||
|
||||
// Public API function.
|
||||
// Public API functions.
|
||||
|
||||
void* WebPMalloc(size_t size) {
|
||||
return WebPSafeMalloc(1, size);
|
||||
}
|
||||
|
||||
void WebPFree(void* ptr) {
|
||||
free(ptr);
|
||||
WebPSafeFree(ptr);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue