Skip to content

Commit 0ded35b

Browse files
authored
Merge pull request #11 from pandamicro/master
Add webp
2 parents 03caae7 + 3117fab commit 0ded35b

File tree

25 files changed

+6416
-14
lines changed

25 files changed

+6416
-14
lines changed

android/Android.mk

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libtiff.a
5555
include $(PREBUILT_STATIC_LIBRARY)
5656

5757
#======================================
58-
#include $(CLEAR_VARS)
59-
#
60-
#LOCAL_MODULE := cocos_webp_static
61-
#LOCAL_MODULE_FILENAME := webp
62-
#LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libwebp.a
63-
#
64-
#LOCAL_WHOLE_STATIC_LIBRARIES := cpufeatures
65-
#
66-
#ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
67-
# LOCAL_CFLAGS := -DHAVE_NEON=1
68-
#endif
69-
#
70-
#include $(PREBUILT_STATIC_LIBRARY)
71-
#
58+
include $(CLEAR_VARS)
59+
60+
LOCAL_MODULE := cocos_webp_static
61+
LOCAL_MODULE_FILENAME := webp
62+
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libwebp.a
63+
64+
LOCAL_WHOLE_STATIC_LIBRARIES := cpufeatures
65+
66+
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
67+
LOCAL_CFLAGS := -DHAVE_NEON=1
68+
endif
69+
70+
include $(PREBUILT_STATIC_LIBRARY)
71+
7272
#======================================
7373
include $(CLEAR_VARS)
7474

android/arm64-v8a/include/webp/decode.h

Lines changed: 488 additions & 0 deletions
Large diffs are not rendered by default.

android/arm64-v8a/include/webp/encode.h

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Copyright 2010 Google Inc. All Rights Reserved.
2+
//
3+
// Use of this source code is governed by a BSD-style license
4+
// that can be found in the COPYING file in the root of the source
5+
// tree. An additional intellectual property rights grant can be found
6+
// in the file PATENTS. All contributing project authors may
7+
// be found in the AUTHORS file in the root of the source tree.
8+
// -----------------------------------------------------------------------------
9+
//
10+
// Common types
11+
//
12+
// Author: Skal ([email protected])
13+
14+
#ifndef WEBP_WEBP_TYPES_H_
15+
#define WEBP_WEBP_TYPES_H_
16+
17+
#include <stddef.h> // for size_t
18+
19+
#ifndef _MSC_VER
20+
#include <inttypes.h>
21+
#if defined(__cplusplus) || !defined(__STRICT_ANSI__) || \
22+
(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
23+
#define WEBP_INLINE inline
24+
#else
25+
#define WEBP_INLINE
26+
#endif
27+
#else
28+
typedef signed char int8_t;
29+
typedef unsigned char uint8_t;
30+
typedef signed short int16_t;
31+
typedef unsigned short uint16_t;
32+
typedef signed int int32_t;
33+
typedef unsigned int uint32_t;
34+
typedef unsigned long long int uint64_t;
35+
typedef long long int int64_t;
36+
#define WEBP_INLINE __forceinline
37+
#endif /* _MSC_VER */
38+
39+
#ifndef WEBP_EXTERN
40+
// This explicitly marks library functions and allows for changing the
41+
// signature for e.g., Windows DLL builds.
42+
# if defined(__GNUC__) && __GNUC__ >= 4
43+
# define WEBP_EXTERN(type) extern __attribute__ ((visibility ("default"))) type
44+
# else
45+
# define WEBP_EXTERN(type) extern type
46+
# endif /* __GNUC__ >= 4 */
47+
#endif /* WEBP_EXTERN */
48+
49+
// Macro to check ABI compatibility (same major revision number)
50+
#define WEBP_ABI_IS_INCOMPATIBLE(a, b) (((a) >> 8) != ((b) >> 8))
51+
52+
#endif /* WEBP_WEBP_TYPES_H_ */

android/arm64-v8a/libwebp.a

812 KB
Binary file not shown.

0 commit comments

Comments
 (0)