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

Go to the source code of this file.

Macros

#define MOBILE_FFMPEG_VERSION   "4.4"
 
#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_nativeFFmpegExecute (JNIEnv *, jclass, jlong id, jobjectArray)
 
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeFFmpegCancel (JNIEnv *, jclass, jlong)
 
JNIEXPORT int JNICALL Java_com_arthenica_mobileffmpeg_Config_registerNewNativeFFmpegPipe (JNIEnv *env, jclass object, jstring ffmpegPipePath)
 
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeBuildDate (JNIEnv *env, jclass object)
 
JNIEXPORT int JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeEnvironmentVariable (JNIEnv *env, jclass object, jstring variableName, jstring variableValue)
 
JNIEXPORT jstring JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLastCommandOutput (JNIEnv *env, jclass object)
 
JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_ignoreNativeSignal (JNIEnv *env, jclass object, jint signum)
 

Macro Definition Documentation

◆ LIB_NAME

#define LIB_NAME   "mobile-ffmpeg"

Defines tag used for Android logging.

Definition at line 34 of file mobileffmpeg.h.

◆ LOGD

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

Debug Android logging macro.

Definition at line 40 of file mobileffmpeg.h.

◆ LOGE

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

Error Android logging macro.

Definition at line 49 of file mobileffmpeg.h.

◆ LOGI

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

Info Android logging macro.

Definition at line 43 of file mobileffmpeg.h.

◆ LOGV

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

Verbose Android logging macro.

Definition at line 37 of file mobileffmpeg.h.

◆ LOGW

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

Warn Android logging macro.

Definition at line 46 of file mobileffmpeg.h.

◆ MOBILE_FFMPEG_VERSION

#define MOBILE_FFMPEG_VERSION   "4.4"

Library version string

Definition at line 31 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
objectreference to the class on which this method is invoked

Definition at line 735 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
objectreference to the class on which this method is invoked

Definition at line 708 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_getNativeBuildDate()

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

Returns MobileFFmpeg library build date natively.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
Returns
MobileFFmpeg library build date

Definition at line 873 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 760 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_getNativeLastCommandOutput()

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

Returns log output of the last executed command natively.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
Returns
output of the last executed command

Definition at line 906 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
objectreference to the class on which this method is invoked

Definition at line 698 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 771 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_ignoreNativeSignal()

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_ignoreNativeSignal ( JNIEnv *  env,
jclass  object,
jint  signum 
)

Registers a new ignored signal. Ignored signals are not handled by the library.

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

Definition at line 925 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_nativeFFmpegCancel()

JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeFFmpegCancel ( JNIEnv *  env,
jclass  object,
jlong  id 
)

Cancels an ongoing FFmpeg operation natively.

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

Definition at line 848 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_nativeFFmpegExecute()

JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_nativeFFmpegExecute ( JNIEnv *  env,
jclass  object,
jlong  id,
jobjectArray  stringArray 
)

Synchronously executes FFmpeg natively with arguments provided.

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

Definition at line 784 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_registerNewNativeFFmpegPipe()

JNIEXPORT int JNICALL Java_com_arthenica_mobileffmpeg_Config_registerNewNativeFFmpegPipe ( JNIEnv *  env,
jclass  object,
jstring  ffmpegPipePath 
)

Creates natively a new named pipe to use in FFmpeg operations.

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
ffmpegPipePathfull path of ffmpeg pipe
Returns
zero on successful creation, non-zero on error

Definition at line 860 of file mobileffmpeg.c.

◆ Java_com_arthenica_mobileffmpeg_Config_setNativeEnvironmentVariable()

JNIEXPORT int JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeEnvironmentVariable ( JNIEnv *  env,
jclass  object,
jstring  variableName,
jstring  variableValue 
)

Class: com_arthenica_mobileffmpeg_Config Method: setNativeEnvironmentVariable Signature: (Ljava/lang/String;Ljava/lang/String;)I

Sets an environment variable natively

Parameters
envpointer to native method interface
objectreference to the class on which this method is invoked
variableNameenvironment variable name
variableValueenvironment variable value
Returns
zero on success, non-zero on error

Definition at line 888 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
objectreference to the class on which this method is invoked
levellog level

Definition at line 688 of file mobileffmpeg.c.