Rework our JNI interface and add ffmpeg bindings for AVC decoding (WIP)

This commit is contained in:
Cameron Gutman
2013-11-18 18:58:49 -05:00
parent cca7df6c25
commit 2c2e713166
274 changed files with 64352 additions and 19 deletions

View File

@@ -1,20 +1,19 @@
# Android.mk for Limelight's Opus decoder
# Android.mk for Limelight's AV decoder
MY_LOCAL_PATH := $(call my-dir)
# This allows the the build system to find the source files
LOCAL_PATH := $(call my-dir)
include $(call all-subdir-makefiles)
LOCAL_PATH := $(MY_LOCAL_PATH)
# This clears local variables for us
include $(CLEAR_VARS)
LOCAL_MODULE := nv_av_dec
LOCAL_SRC_FILES := nv_opus_dec.c nv_opus_dec_jni.c \
nv_avc_dec.c nv_avc_dec_jni.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/libopus/inc \
$(LOCAL_PATH)/ffmpeg/$(TARGET_ARCH_ABI)/include
# Declare our module name and source files
LOCAL_MODULE := nv_opus_dec
LOCAL_SRC_FILES := nv_opus_dec.c nv_opus_dec_jni.c
# Link to libopus and ffmpeg libraries
LOCAL_STATIC_LIBRARIES := libopus
LOCAL_SHARED_LIBRARIES := libavcodec libavformat libswscale libavutil libavfilter libwsresample
# Set the local include path to the GMP directory for our architecture
LOCAL_C_INCLUDES := $(LOCAL_PATH)/libopus/inc
# Link to libopus
LOCAL_LDLIBS := -L$(LOCAL_PATH)/libopus/$(TARGET_ARCH_ABI) -lopus
# Build a shared library
include $(BUILD_SHARED_LIBRARY)