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

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ LIB_NAME

#define LIB_NAME   "mobile-ffmpeg"

Defines tag used for Android logging.

Definition at line 31 of file mobileffmpeg_config.h.

◆ LOGD

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

Debug Android logging macro.

Definition at line 37 of file mobileffmpeg_config.h.

◆ LOGE

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

Error Android logging macro.

Definition at line 46 of file mobileffmpeg_config.h.

◆ LOGI

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

Info Android logging macro.

Definition at line 40 of file mobileffmpeg_config.h.

◆ LOGV

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

Verbose Android logging macro.

Definition at line 34 of file mobileffmpeg_config.h.

◆ LOGW

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

Warn Android logging macro.

Definition at line 43 of file mobileffmpeg_config.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 549 of file mobileffmpeg_config.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 522 of file mobileffmpeg_config.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 512 of file mobileffmpeg_config.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 502 of file mobileffmpeg_config.c.