mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
03f40955a3
Usage: img2webp [file-level options] [image files...] [per-frame options...] File-level options (only used at the start of compression): -min_size ............ minimize size -loop <int> .......... loop count (default: 0, = infinite loop) -kmax <int> .......... maximum number of frame between key-frames (0=only keyframes) -kmin <int> .......... minimum number of frame between key-frames (0=disable key-frames altogether) -mixed ............... use mixed lossy/lossless automatic mode -v ................... verbose mode -h ................... this help Per-frame options (only used for subsequent images input): -d <int> ............. frame duration in ms (default: 100) -lossless ........... use lossless mode (default) -lossy ... ........... use lossy mode -q <float> ........... quality -m <int> ............. method to use example: img2webp -loop 2 in0.png -lossy in1.jpg -d 80 in2.tiff -o out.webp Change-Id: I23771b90eaf0660f420d7ffd304e704155386286
83 lines
1.8 KiB
Makefile
83 lines
1.8 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
################################################################################
|
|
# libexample_util
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
example_util.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
|
|
LOCAL_MODULE := example_util
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
################################################################################
|
|
# cwebp
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# Note: to enable jpeg/png encoding the sources from AOSP can be used with
|
|
# minor modification to their Android.mk files.
|
|
LOCAL_SRC_FILES := \
|
|
cwebp.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
LOCAL_STATIC_LIBRARIES := example_util imageio_util imagedec webp
|
|
|
|
LOCAL_MODULE := cwebp
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
################################################################################
|
|
# dwebp
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
dwebp.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
LOCAL_STATIC_LIBRARIES := example_util imagedec imageenc webp
|
|
|
|
LOCAL_MODULE := dwebp
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
################################################################################
|
|
# webpmux
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
webpmux.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
LOCAL_STATIC_LIBRARIES := example_util imageio_util webpmux webp
|
|
|
|
LOCAL_MODULE := webpmux_example
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
################################################################################
|
|
# img2webp
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
img2webp.c \
|
|
|
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../src
|
|
LOCAL_STATIC_LIBRARIES := example_util imageio_util imagedec webpmux webp
|
|
|
|
LOCAL_MODULE := img2webp_example
|
|
|
|
include $(BUILD_EXECUTABLE)
|