Hi,
Actually we have a similar problem. We have compiled ffmpeg for
neon optimization as per the instrutions given in this link:
http://www.roman10.net/how-to-build-ffmpeg-for-android/
We have used the flags for ARMv7+Neon (Cortex-A8).
And my Android.mk is as follows:
LOCAL_PATH := $(call my-dir)
FFMPEG:= /home/arun/ffmpegneon1103/android/armv7-a/lib
include $(CLEAR_VARS)
LOCAL_MODULE := OnVRView
LOCAL_SRC_FILES := OnVRView.cpp
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS := -DHAVE_NEON=1
LOCAL_MODULE := OnVRView
LOCAL_SRC_FILES += VideoDecoder.cpp.neon
LOCAL_ARM_NEON := true
endif
LOCAL_C_INCLUDES := /home/arun/ffmpegneon1103/android/armv7-a/include
LOCAL_ARM_MODE := arm
LOCAL_STATIC_LIBRARIES := cpufeatures
LOCAL_LDLIBS := -llog -L$(FFMPEG) -lswresample -lavformat -
lavcodec -lswscale -lavutil -Werror
include $(BUILD_SHARED_LIBRARY)
$(call import-module,cpufeatures)
But we find crash at avcodec_decode_video2 in our wrapper class in
debug mode every now and then. I had mailed to android developers
forum that we were experiencing this crash and somebody had replied
using the flag -malign-double. Here is the link to this reply.
http://www.mail-archive.com/android-d...@googlegroups.com/msg212206.html
I am yet to try out this variation. If somebody can give some pointers
to my query, it would also be helpful.
Thank you,
B.Arunkumar
On Jul 11, 1:40 pm, David Turner <
di...@android.com> wrote: