MobileFFmpeg Android API  2.2
Macros | Functions
mobileffmpeg.h File Reference

Go to the source code of this file.

Macros

#define MOBILE_FFMPEG_VERSION   "2.2"
 
#define LIB_NAME   "mobile-ffmpeg"
 
#define LOGV(...)   __android_log_print(ANDROID_LOG_VERBOSE, LIB_NAME, __VA_ARGS__)
 
#define LOGD(...)   __android_log_print(ANDROID_LOG_DEBUG, LIB_NAME, __VA_ARGS__)
 
#define LOGI(...)   __android_log_print(ANDROID_LOG_INFO, LIB_NAME, __VA_ARGS__)
 
#define LOGW(...)   __android_log_print(ANDROID_LOG_WARN, LIB_NAME, __VA_ARGS__)
 
#define LOGE(...)   __android_log_print(ANDROID_LOG_ERROR, LIB_NAME, __VA_ARGS__)
 

Functions

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection (JNIEnv *, jclass)
 
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection (JNIEnv *, jclass)
 
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel (JNIEnv *, jclass, jint)
 
JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel (JNIEnv *, jclass)
 
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeFFmpegVersion (JNIEnv *, jclass)
 
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeVersion (JNIEnv *, jclass)
 
JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeExecute (JNIEnv *, jclass, jobjectArray)
 
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeCancel (JNIEnv *, jclass)
 

Macro Definition Documentation

◆ LIB_NAME

#define LIB_NAME   "mobile-ffmpeg"

Defines tag used for Android logging.

Definition at line 33 of file mobileffmpeg.h.

◆ LOGD

#define LOGD (   ...)    __android_log_print(ANDROID_LOG_DEBUG, LIB_NAME, __VA_ARGS__)

Debug Android logging macro.

Definition at line 39 of file mobileffmpeg.h.

◆ LOGE

#define LOGE (   ...)    __android_log_print(ANDROID_LOG_ERROR, LIB_NAME, __VA_ARGS__)

Error Android logging macro.

Definition at line 48 of file mobileffmpeg.h.

◆ LOGI

#define LOGI (   ...)    __android_log_print(ANDROID_LOG_INFO, LIB_NAME, __VA_ARGS__)

Info Android logging macro.

Definition at line 42 of file mobileffmpeg.h.

◆ LOGV

#define LOGV (   ...)    __android_log_print(ANDROID_LOG_VERBOSE, LIB_NAME, __VA_ARGS__)

Verbose Android logging macro.

Definition at line 36 of file mobileffmpeg.h.

◆ LOGW

#define LOGW (   ...)    __android_log_print(ANDROID_LOG_WARN, LIB_NAME, __VA_ARGS__)

Warn Android logging macro.

Definition at line 45 of file mobileffmpeg.h.

◆ MOBILE_FFMPEG_VERSION

#define MOBILE_FFMPEG_VERSION   "2.2"

Library version string

Definition at line 30 of file mobileffmpeg.h.

Function Documentation

◆ Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection()

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection ( JNIEnv *  env,
jclass  object 
)

Disables log and statistics redirection.

Parameters
envpointer to native method interface
referenceto the class on which this method is invoked

Definition at line 569 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection()

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection ( JNIEnv *  env,
jclass  object 
)

Enables log and statistics redirection.

Parameters
envpointer to native method interface
referenceto the class on which this method is invoked

Definition at line 542 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_getNativeFFmpegVersion()

JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeFFmpegVersion ( JNIEnv *  env,
jclass  object 
)

Returns FFmpeg version bundled within the library natively.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
Returns
FFmpeg version string

Definition at line 594 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel()

JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel ( JNIEnv *  env,
jclass  object 
)

Returns current log level.

Parameters
envpointer to native method interface
referenceto the class on which this method is invoked

Definition at line 532 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_getNativeVersion()

JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeVersion ( JNIEnv *  env,
jclass  object 
)

Returns MobileFFmpeg library version natively.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
Returns
MobileFFmpeg version string

Definition at line 605 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_nativeCancel()

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeCancel ( JNIEnv *  env,
jclass  object 
)

Cancels an ongoing operation natively.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked

Definition at line 670 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_nativeExecute()

JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeExecute ( JNIEnv *  env,
jclass  object,
jobjectArray  stringArray 
)

Synchronously executes FFmpeg command natively with arguments provided.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
stringArrayreference to the object holding FFmpeg command arguments
Returns
zero on successful execution, non-zero on error

Definition at line 617 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel()

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel ( JNIEnv *  env,
jclass  object,
jint  level 
)

Sets log level.

Parameters
envpointer to native method interface
referenceto the class on which this method is invoked
loglevel

Definition at line 522 of file mobileffmpeg.c.