├── webp-backport ├── src │ ├── main │ │ ├── .gitignore │ │ ├── res │ │ │ └── .gitignore │ │ ├── jni │ │ │ ├── webp │ │ │ │ ├── autogen.sh │ │ │ │ ├── Makefile.am │ │ │ │ ├── swig │ │ │ │ │ ├── libwebp.jar │ │ │ │ │ ├── setup.py │ │ │ │ │ ├── libwebp.go │ │ │ │ │ ├── libwebp_gc.c │ │ │ │ │ └── README │ │ │ │ ├── examples │ │ │ │ │ ├── test.webp │ │ │ │ │ ├── test_ref.ppm │ │ │ │ │ ├── jpegdec.h │ │ │ │ │ ├── wicdec.h │ │ │ │ │ ├── pngdec.h │ │ │ │ │ ├── tiffdec.h │ │ │ │ │ ├── webpdec.h │ │ │ │ │ ├── metadata.h │ │ │ │ │ ├── metadata.c │ │ │ │ │ ├── Android.mk │ │ │ │ │ ├── stopwatch.h │ │ │ │ │ ├── anim_util.h │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── webpdec.c │ │ │ │ │ ├── example_util.h │ │ │ │ │ └── gifdec.h │ │ │ │ ├── man │ │ │ │ │ ├── Makefile.am │ │ │ │ │ └── vwebp.1 │ │ │ │ ├── src │ │ │ │ │ ├── libwebp.pc.in │ │ │ │ │ ├── mux │ │ │ │ │ │ ├── libwebpmux.pc.in │ │ │ │ │ │ └── Makefile.am │ │ │ │ │ ├── demux │ │ │ │ │ │ ├── libwebpdemux.pc.in │ │ │ │ │ │ └── Makefile.am │ │ │ │ │ ├── extras │ │ │ │ │ │ ├── libwebpextras.pc.in │ │ │ │ │ │ ├── Makefile.am │ │ │ │ │ │ └── extras.c │ │ │ │ │ ├── libwebpdecoder.pc.in │ │ │ │ │ ├── dsp │ │ │ │ │ │ ├── enc_avx2.c │ │ │ │ │ │ ├── dec_sse41.c │ │ │ │ │ │ ├── lossless_enc_sse41.c │ │ │ │ │ │ ├── argb.c │ │ │ │ │ │ ├── argb_sse2.c │ │ │ │ │ │ ├── neon.h │ │ │ │ │ │ ├── alpha_processing_sse41.c │ │ │ │ │ │ ├── Makefile.am │ │ │ │ │ │ ├── cost_sse2.c │ │ │ │ │ │ └── cost_mips_dsp_r2.c │ │ │ │ │ ├── dec │ │ │ │ │ │ ├── Makefile.am │ │ │ │ │ │ ├── alphai.h │ │ │ │ │ │ ├── common.h │ │ │ │ │ │ ├── quant.c │ │ │ │ │ │ └── vp8li.h │ │ │ │ │ ├── utils │ │ │ │ │ │ ├── filters.h │ │ │ │ │ │ ├── Makefile.am │ │ │ │ │ │ ├── quant_levels.h │ │ │ │ │ │ ├── quant_levels_dec.h │ │ │ │ │ │ ├── color_cache.c │ │ │ │ │ │ ├── random.c │ │ │ │ │ │ ├── random.h │ │ │ │ │ │ ├── huffman_encode.h │ │ │ │ │ │ ├── filters.c │ │ │ │ │ │ ├── color_cache.h │ │ │ │ │ │ ├── endian_inl.h │ │ │ │ │ │ ├── huffman.h │ │ │ │ │ │ ├── thread.h │ │ │ │ │ │ ├── rescaler.h │ │ │ │ │ │ └── quant_levels.c │ │ │ │ │ ├── enc │ │ │ │ │ │ ├── delta_palettization.h │ │ │ │ │ │ ├── Makefile.am │ │ │ │ │ │ ├── cost.h │ │ │ │ │ │ └── vp8li.h │ │ │ │ │ ├── Makefile.am │ │ │ │ │ └── webp │ │ │ │ │ │ ├── types.h │ │ │ │ │ │ ├── extras.h │ │ │ │ │ │ ├── mux_types.h │ │ │ │ │ │ └── format_constants.h │ │ │ │ ├── doc │ │ │ │ │ ├── TODO │ │ │ │ │ ├── README │ │ │ │ │ └── template.html │ │ │ │ ├── PATENTS │ │ │ │ ├── AUTHORS │ │ │ │ ├── COPYING │ │ │ │ └── iosbuild.sh │ │ │ ├── Android.mk │ │ │ ├── webpbackport │ │ │ │ ├── Android.mk │ │ │ │ └── webpbackport.c │ │ │ └── Application.mk │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── de │ │ │ └── marcreichelt │ │ │ └── webp_backport │ │ │ └── FileSignatureChecker.java │ └── androidTest │ │ ├── res │ │ └── raw │ │ │ ├── test_empty.webp │ │ │ ├── test_line_png.png │ │ │ ├── test_round_png.png │ │ │ ├── test_line_webp.webp │ │ │ ├── test_round_webp.webp │ │ │ ├── test_pixel_red_png.png │ │ │ ├── test_maximum_16383px.webp │ │ │ ├── test_pixel_red_webp.webp │ │ │ ├── test_round_small_png.png │ │ │ ├── test_round_small_webp.webp │ │ │ ├── test_lights_1280x853_png.png │ │ │ ├── test_lights_1280x853_webp.webp │ │ │ ├── test_pixel_transparent_png.png │ │ │ ├── test_pixel_transparent_webp.webp │ │ │ ├── test_pixel_semi_transparent_png.png │ │ │ ├── test_pixel_semi_transparent_webp.webp │ │ │ ├── test_red_pixel_with_transparent_border_png.png │ │ │ ├── test_red_pixel_with_transparent_border_webp.webp │ │ │ ├── test_red_pixel_with_transparent_border_lossy_png.png │ │ │ └── test_red_pixel_with_transparent_border_lossy_webp.webp │ │ └── java │ │ └── de │ │ └── marcreichelt │ │ └── webp_backport │ │ └── FileSignatureCheckerTest.java └── proguard-rules.pro ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── testapp ├── src │ └── main │ │ ├── res │ │ ├── raw │ │ │ ├── round.webp │ │ │ ├── round_decoded.png │ │ │ ├── test_lights_150x100.webp │ │ │ ├── test_lights_256x171.webp │ │ │ └── test_lights_1280x853.webp │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── styles.xml │ │ │ ├── dimens.xml │ │ │ └── strings.xml │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── layout │ │ │ ├── glide_demo_item.xml │ │ │ ├── glide_demo.xml │ │ │ ├── main.xml │ │ │ └── simple_decode_demo.xml │ │ ├── menu │ │ │ └── menu_main.xml │ │ └── values-w820dp │ │ │ └── dimens.xml │ │ ├── java │ │ └── de │ │ │ └── marcreichelt │ │ │ └── webp_backport │ │ │ └── testapp │ │ │ ├── MarginDecoration.java │ │ │ ├── Main.java │ │ │ ├── SimpleDecodeDemo.java │ │ │ ├── GlideDemo.java │ │ │ └── GlideWebPBackportDecoder.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── .gitmodules ├── .gitignore ├── gradle.properties ├── README.md └── gradlew.bat /webp-backport/src/main/.gitignore: -------------------------------------------------------------------------------- 1 | /libs -------------------------------------------------------------------------------- /webp-backport/src/main/res/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_empty.webp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':testapp', ':webp-backport' 2 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/autogen.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh -e 2 | exec autoreconf -fi 3 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/Makefile.am: -------------------------------------------------------------------------------- 1 | ACLOCAL_AMFLAGS = -I m4 2 | SUBDIRS = src examples man 3 | EXTRA_DIST = COPYING autogen.sh 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /testapp/src/main/res/raw/round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/raw/round.webp -------------------------------------------------------------------------------- /testapp/src/main/res/raw/round_decoded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/raw/round_decoded.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | #[submodule "webp-backport/src/main/jni/webp"] 2 | # path = webp-backport/src/main/jni/webp 3 | # url = https://chromium.googlesource.com/webm/libwebp 4 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/Android.mk: -------------------------------------------------------------------------------- 1 | # Small trick to disallow samples building 2 | BUILD_EXECUTABLE := $(CLEAR_VARS) 3 | 4 | include $(call all-subdir-makefiles) 5 | -------------------------------------------------------------------------------- /testapp/src/main/res/raw/test_lights_150x100.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/raw/test_lights_150x100.webp -------------------------------------------------------------------------------- /testapp/src/main/res/raw/test_lights_256x171.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/raw/test_lights_256x171.webp -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/swig/libwebp.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/main/jni/webp/swig/libwebp.jar -------------------------------------------------------------------------------- /testapp/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /testapp/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /testapp/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /testapp/src/main/res/raw/test_lights_1280x853.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/raw/test_lights_1280x853.webp -------------------------------------------------------------------------------- /testapp/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/examples/test.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/main/jni/webp/examples/test.webp -------------------------------------------------------------------------------- /testapp/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/testapp/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/examples/test_ref.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/main/jni/webp/examples/test_ref.ppm -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_line_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_line_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_round_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_round_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_line_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_line_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_round_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_round_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_pixel_red_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_pixel_red_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_maximum_16383px.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_maximum_16383px.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_pixel_red_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_pixel_red_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_round_small_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_round_small_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_round_small_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_round_small_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_lights_1280x853_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_lights_1280x853_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_lights_1280x853_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_lights_1280x853_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_pixel_transparent_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_pixel_transparent_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_pixel_transparent_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_pixel_transparent_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_pixel_semi_transparent_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_pixel_semi_transparent_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_pixel_semi_transparent_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_pixel_semi_transparent_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_webp.webp -------------------------------------------------------------------------------- /testapp/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 8dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_lossy_png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_lossy_png.png -------------------------------------------------------------------------------- /webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_lossy_webp.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mreichelt/webp-android-backport-library/HEAD/webp-backport/src/androidTest/res/raw/test_red_pixel_with_transparent_border_lossy_webp.webp -------------------------------------------------------------------------------- /webp-backport/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/man/Makefile.am: -------------------------------------------------------------------------------- 1 | man_MANS = cwebp.1 dwebp.1 2 | if WANT_MUX 3 | man_MANS += webpmux.1 4 | endif 5 | if BUILD_GIF2WEBP 6 | man_MANS += gif2webp.1 7 | endif 8 | if BUILD_VWEBP 9 | man_MANS += vwebp.1 10 | endif 11 | EXTRA_DIST = $(man_MANS) 12 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 08 23:35:00 CET 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-all.zip 7 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/libwebp.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libwebp 7 | Description: Library for the WebP graphics format 8 | Version: @PACKAGE_VERSION@ 9 | Cflags: -I${includedir} 10 | Libs: -L${libdir} -lwebp 11 | Libs.private: -lm @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ 12 | -------------------------------------------------------------------------------- /testapp/src/main/res/layout/glide_demo_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/mux/libwebpmux.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libwebpmux 7 | Description: Library for manipulating the WebP graphics format container 8 | Version: @PACKAGE_VERSION@ 9 | Requires: libwebp >= 0.2.0 10 | Cflags: -I${includedir} 11 | Libs: -L${libdir} -lwebpmux 12 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/demux/libwebpdemux.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libwebpdemux 7 | Description: Library for parsing the WebP graphics format container 8 | Version: @PACKAGE_VERSION@ 9 | Requires: libwebp >= 0.2.0 10 | Cflags: -I${includedir} 11 | Libs: -L${libdir} -lwebpdemux 12 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/extras/libwebpextras.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libwebpextras 7 | Description: Additional utility functions useful in processing WebP files 8 | Version: @PACKAGE_VERSION@ 9 | Requires: libwebp >= 0.5.0 10 | Cflags: -I${includedir} 11 | Libs: -L${libdir} -lwebpextras 12 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/libwebpdecoder.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libwebpdecoder 7 | Description: Library for the WebP graphics format (decode only) 8 | Version: @PACKAGE_VERSION@ 9 | Cflags: -I${includedir} 10 | Libs: -L${libdir} -lwebpdecoder 11 | Libs.private: -lm @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ 12 | -------------------------------------------------------------------------------- /testapp/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /testapp/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webpbackport/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := webpbackport 6 | 7 | LOCAL_SRC_FILES := \ 8 | webpbackport.c 9 | 10 | LOCAL_C_INCLUDES := \ 11 | $(LOCAL_PATH) \ 12 | $(LOCAL_PATH)/../webp/src 13 | 14 | LOCAL_STATIC_LIBRARIES := webp 15 | 16 | LOCAL_LDLIBS := -lm -llog -ljnigraphics 17 | 18 | include $(BUILD_SHARED_LIBRARY) 19 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # Only these platforms are needed. The new 64 bit ABIs run on newer Android versions anyway. 2 | APP_ABI := armeabi armeabi-v7a x86 3 | APP_CPPFLAGS := -fno-rtti -fno-exceptions 4 | APP_PLATFORM := android-8 5 | 6 | ifndef WEBP_BACKPORT_DEBUG_NATIVE 7 | # Force release compilation in release optimizations, even if application is debuggable by manifest 8 | APP_OPTIM := release 9 | endif 10 | -------------------------------------------------------------------------------- /testapp/src/main/res/layout/glide_demo.xml: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /testapp/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | webp-android-backport-library 5 | WebP test image: 6 | Settings 7 | WebP image loaded in %s ms\nLibrary used: %s 8 | Image 9 | 10 | 11 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/extras/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libwebpextras.la 2 | 3 | libwebpextras_la_SOURCES = 4 | libwebpextras_la_SOURCES += extras.c 5 | 6 | libwebpextrasinclude_HEADERS = 7 | libwebpextrasinclude_HEADERS += ../webp/extras.h 8 | libwebpextrasinclude_HEADERS += ../webp/types.h 9 | 10 | libwebpextras_la_LIBADD = ../libwebp.la 11 | libwebpextras_la_LDFLAGS = -no-undefined -version-info 0:0:0 12 | libwebpextrasincludedir = $(includedir)/webp 13 | pkgconfig_DATA = libwebpextras.pc 14 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/demux/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libwebpdemux.la 2 | 3 | libwebpdemux_la_SOURCES = 4 | libwebpdemux_la_SOURCES += anim_decode.c demux.c 5 | 6 | libwebpdemuxinclude_HEADERS = 7 | libwebpdemuxinclude_HEADERS += ../webp/demux.h 8 | libwebpdemuxinclude_HEADERS += ../webp/mux_types.h 9 | libwebpdemuxinclude_HEADERS += ../webp/types.h 10 | 11 | libwebpdemux_la_LIBADD = ../libwebp.la 12 | libwebpdemux_la_LDFLAGS = -no-undefined -version-info 2:0:0 13 | libwebpdemuxincludedir = $(includedir)/webp 14 | pkgconfig_DATA = libwebpdemux.pc 15 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/doc/TODO: -------------------------------------------------------------------------------- 1 | , 20111004 2 | 3 | * Determine that normative RFC 2119 terms (MUST, SHOULD, MAY, etc.) are 4 | truly intended in all cases where capitalized. 5 | 6 | * Several passages could be made clearer. 7 | 8 | * Overall edit for scope. Portions are phrased as an introduction to 9 | the 0.1.3 RIFF container additions, rather than a holistic guide to 10 | WebP. 11 | 12 | * To wit, suggest s/[spec|specification]/guide/g . "Spec" can imply a 13 | standards track; in any case it's too formal for a work in progress. 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | .gradle 3 | local.properties 4 | obj 5 | 6 | # Intellij IDEA (see https://gist.github.com/iainconnor/8605514) 7 | .idea/libraries 8 | .idea/workspace.xml 9 | .idea/tasks.xml 10 | .idea/.name 11 | .idea/compiler.xml 12 | .idea/copyright/profiles_settings.xml 13 | .idea/encodings.xml 14 | .idea/misc.xml 15 | .idea/modules.xml 16 | .idea/scopes/scope_settings.xml 17 | .idea/vcs.xml 18 | .idea/runConfigurations.xml 19 | .idea/gradle.xml 20 | .idea/dictionaries 21 | *.iml 22 | 23 | # other stuff 24 | .DS_Store 25 | .DS_Store? 26 | ._* 27 | .Spotlight-V100 28 | .Trashes 29 | ehthumbs.db 30 | Thumbs.db 31 | -------------------------------------------------------------------------------- /webp-backport/src/main/jni/webp/src/mux/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libwebpmux.la 2 | 3 | libwebpmux_la_SOURCES = 4 | libwebpmux_la_SOURCES += anim_encode.c 5 | libwebpmux_la_SOURCES += muxedit.c 6 | libwebpmux_la_SOURCES += muxi.h 7 | libwebpmux_la_SOURCES += muxinternal.c 8 | libwebpmux_la_SOURCES += muxread.c 9 | 10 | libwebpmuxinclude_HEADERS = 11 | libwebpmuxinclude_HEADERS += ../webp/mux.h 12 | libwebpmuxinclude_HEADERS += ../webp/mux_types.h 13 | libwebpmuxinclude_HEADERS += ../webp/types.h 14 | 15 | libwebpmux_la_LIBADD = ../libwebp.la 16 | libwebpmux_la_LDFLAGS = -no-undefined -version-info 2:0:0 17 | libwebpmuxincludedir = $(includedir)/webp 18 | pkgconfig_DATA = libwebpmux.pc 19 | -------------------------------------------------------------------------------- /testapp/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/marc/bin/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /webp-backport/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/marc/bin/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /testapp/src/main/java/de/marcreichelt/webp_backport/testapp/MarginDecoration.java: -------------------------------------------------------------------------------- 1 | package de.marcreichelt.webp_backport.testapp; 2 | 3 | import android.content.Context; 4 | import android.graphics.Rect; 5 | import android.support.v7.widget.RecyclerView; 6 | import android.view.View; 7 | 8 | public class MarginDecoration extends RecyclerView.ItemDecoration { 9 | 10 | private int margin; 11 | 12 | public MarginDecoration(Context context) { 13 | margin = context.getResources().getDimensionPixelSize(R.dimen.item_margin); 14 | } 15 | 16 | @Override 17 | public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { 18 | outRect.set(margin, margin, margin, margin); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testapp/src/main/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 |