Go to the source code of this file.
|
| #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__) |
| |
◆ LIB_NAME
| #define LIB_NAME "mobile-ffmpeg" |
Defines tag used for Android logging.
Definition at line 30 of file log.h.
◆ LOGD
| #define LOGD |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_DEBUG, LIB_NAME, __VA_ARGS__) |
Debug Android logging macro.
Definition at line 36 of file log.h.
◆ LOGE
| #define LOGE |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_ERROR, LIB_NAME, __VA_ARGS__) |
Error Android logging macro.
Definition at line 45 of file log.h.
◆ LOGI
| #define LOGI |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_INFO, LIB_NAME, __VA_ARGS__) |
Info Android logging macro.
Definition at line 39 of file log.h.
◆ LOGV
| #define LOGV |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_VERBOSE, LIB_NAME, __VA_ARGS__) |
Verbose Android logging macro.
Definition at line 33 of file log.h.
◆ LOGW
| #define LOGW |
( |
|
... | ) |
__android_log_print(ANDROID_LOG_WARN, LIB_NAME, __VA_ARGS__) |
Warn Android logging macro.
Definition at line 42 of file log.h.
◆ Java_com_arthenica_mobileffmpeg_Log_startNativeCollector()
| JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Log_startNativeCollector |
( |
JNIEnv * |
env, |
|
|
jobject |
object |
|
) |
| |
Starts native log collector. Native log collector creates a pipe and redirects stdout and stderr to it. Then starts a thread, reads data written to this pipe and forwards it to the Java side.
- Parameters
-
| env | pointer to native method interface |
| object | reference to the object on which this method is invoked |
- Returns
- zero on success, non-zero if an error occurs
Definition at line 140 of file log.c.
◆ Java_com_arthenica_mobileffmpeg_Log_stopNativeCollector()
| JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Log_stopNativeCollector |
( |
JNIEnv * |
env, |
|
|
jobject |
object |
|
) |
| |
Initiates a stop request for native log collector thread. Please note that when this function returns collector thread might be still alive.
- Parameters
-
| env | pointer to native method interface |
| object | reference to the object on which this method is invoked |
- Returns
- zero on success, non-zero if an error occurs
Definition at line 169 of file log.c.