Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Fixed armeabi-v7a-neon ABI for issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Sep 16, 2018
1 parent 0a127d4 commit 4bd2072
Show file tree
Hide file tree
Showing 8 changed files with 653 additions and 700 deletions.
564 changes: 542 additions & 22 deletions android/app/src/main/cpp/mobileffmpeg.c

Large diffs are not rendered by default.

75 changes: 61 additions & 14 deletions android/app/src/main/cpp/mobileffmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,86 @@
#define MOBILE_FFMPEG_H

#include <jni.h>
#include <android/log.h>

#include "libavutil/log.h"
#include "libavutil/ffversion.h"
#include "mobileffmpeg_config.h"

/** Library version string */
#define MOBILE_FFMPEG_VERSION "2.2"

/** Defines tag used for Android logging. */
#define LIB_NAME "mobile-ffmpeg"

/** Verbose Android logging macro. */
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LIB_NAME, __VA_ARGS__)

/** Debug Android logging macro. */
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LIB_NAME, __VA_ARGS__)

/** Info Android logging macro. */
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LIB_NAME, __VA_ARGS__)

/** Warn Android logging macro. */
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LIB_NAME, __VA_ARGS__)

/** Error Android logging macro. */
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LIB_NAME, __VA_ARGS__)

/*
* Class: com_arthenica_mobileffmpeg_Config
* Method: enableNativeRedirection
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection(JNIEnv *, jclass);

/*
* Class: com_arthenica_mobileffmpeg_Config
* Method: disableNativeRedirection
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection(JNIEnv *, jclass);

/*
* Class: com_arthenica_mobileffmpeg_Config
* Method: setNativeLogLevel
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel(JNIEnv *, jclass, jint);

/*
* Class: com_arthenica_mobileffmpeg_Config
* Method: getNativeLogLevel
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel(JNIEnv *, jclass);

/*
* Class: com_arthenica_mobileffmpeg_FFmpeg
* Method: getFFmpegVersion
* Class: com_arthenica_mobileffmpeg_Config
* Method: getNativeFFmpegVersion
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_FFmpeg_getFFmpegVersion(JNIEnv *, jclass);
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeFFmpegVersion(JNIEnv *, jclass);

/*
* Class: com_arthenica_mobileffmpeg_FFmpeg
* Method: getVersion
* Class: com_arthenica_mobileffmpeg_Config
* Method: getNativeVersion
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_FFmpeg_getVersion(JNIEnv *, jclass);
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeVersion(JNIEnv *, jclass);

/*
* Class: com_arthenica_mobileffmpeg_FFmpeg
* Method: execute
* Class: com_arthenica_mobileffmpeg_Config
* Method: nativeExecute
* Signature: ([Ljava/lang/String;)I
*/
JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_FFmpeg_execute(JNIEnv *, jclass, jobjectArray);
JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeExecute(JNIEnv *, jclass, jobjectArray);

/*
* Class: com_arthenica_mobileffmpeg_FFmpeg
* Method: cancel
* Class: com_arthenica_mobileffmpeg_Config
* Method: nativeCancel
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_FFmpeg_cancel(JNIEnv *, jclass);
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeCancel(JNIEnv *, jclass);

#endif /* MOBILE_FFMPEG_H */
#endif /* MOBILE_FFMPEG_H */
Loading

0 comments on commit 4bd2072

Please sign in to comment.