|
MobileFFmpeg Android API
2.2
|
Go to the source code of this file.
Data Structures | |
| struct | CallbackData |
Macros | |
| #define | LOG_LINE_SIZE 1024 |
Functions | |
| static const char * | avutil_log_get_level_str (int level) |
| static void | avutil_log_format_line (void *avcl, int level, const char *fmt, va_list vl, AVBPrint part[4], int *print_prefix) |
| static void | avutil_log_sanitize (uint8_t *line) |
| void | mutexInit () |
| void | monitorInit () |
| void | mutexUnInit () |
| void | monitorUnInit () |
| void | mutexLock () |
| void | mutexUnlock () |
| void | monitorWait (int milliSeconds) |
| void | monitorNotify () |
| void | logCallbackDataAdd (int level, const char *data) |
| void | statisticsCallbackDataAdd (int frameNumber, float fps, float quality, int64_t size, int time, double bitrate, double speed) |
| struct CallbackData * | callbackDataRemove () |
| void | mobileffmpeg_log_callback_function (void *ptr, int level, const char *format, va_list vargs) |
| void | mobileffmpeg_statistics_callback_function (int frameNumber, float fps, float quality, int64_t size, int time, double bitrate, double speed) |
| void * | callbackThreadFunction () |
| jint | JNI_OnLoad (JavaVM *vm, void *reserved) |
| JNIEXPORT void JNICALL | Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel (JNIEnv *env, jclass object, jint level) |
| JNIEXPORT jint JNICALL | Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel (JNIEnv *env, jclass object) |
| JNIEXPORT void JNICALL | Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection (JNIEnv *env, jclass object) |
| JNIEXPORT void JNICALL | Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection (JNIEnv *env, jclass object) |
Variables | |
| pthread_mutex_t | lockMutex |
| pthread_mutex_t | monitorMutex |
| pthread_cond_t | monitorCondition |
| pthread_t | callbackThread |
| int | redirectionEnabled |
| struct CallbackData * | callbackDataHead |
| struct CallbackData * | callbackDataTail |
| static JavaVM * | globalVm |
| static jclass | configClass |
| static jmethodID | logMethod |
| static jmethodID | statisticsMethod |
| const char * | configClassName = "com/arthenica/mobileffmpeg/Config" |
| JNINativeMethod | configMethods [] |
| #define LOG_LINE_SIZE 1024 |
DEFINES LINE SIZE USED FOR LOGGING
Definition at line 85 of file mobileffmpeg_config.c.
|
static |
Definition at line 110 of file mobileffmpeg_config.c.
|
static |
Definition at line 87 of file mobileffmpeg_config.c.
|
static |
Definition at line 142 of file mobileffmpeg_config.c.
| struct CallbackData* callbackDataRemove | ( | ) |
Removes head of callback data list.
Definition at line 299 of file mobileffmpeg_config.c.
| void* callbackThreadFunction | ( | ) |
Forwards callback messages to Java classes.
Definition at line 378 of file mobileffmpeg_config.c.
| JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_disableNativeRedirection | ( | JNIEnv * | env, |
| jclass | object | ||
| ) |
Disables log and statistics redirection.
| env | pointer to native method interface |
| reference | to the class on which this method is invoked |
Definition at line 549 of file mobileffmpeg_config.c.
| JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_enableNativeRedirection | ( | JNIEnv * | env, |
| jclass | object | ||
| ) |
Enables log and statistics redirection.
| env | pointer to native method interface |
| reference | to the class on which this method is invoked |
Definition at line 522 of file mobileffmpeg_config.c.
| JNIEXPORT jint JNICALL Java_com_arthenica_mobileffmpeg_Config_getNativeLogLevel | ( | JNIEnv * | env, |
| jclass | object | ||
| ) |
Returns current log level.
| env | pointer to native method interface |
| reference | to the class on which this method is invoked |
Definition at line 512 of file mobileffmpeg_config.c.
| JNIEXPORT void JNICALL Java_com_arthenica_mobileffmpeg_Config_setNativeLogLevel | ( | JNIEnv * | env, |
| jclass | object, | ||
| jint | level | ||
| ) |
Sets log level.
| env | pointer to native method interface |
| reference | to the class on which this method is invoked |
| log | level |
Definition at line 502 of file mobileffmpeg_config.c.
| jint JNI_OnLoad | ( | JavaVM * | vm, |
| void * | reserved | ||
| ) |
Called when 'mobileffmpeg-config' native library is loaded.
| vm | pointer to the running virtual machine |
| reserved | reserved |
Definition at line 448 of file mobileffmpeg_config.c.
| void logCallbackDataAdd | ( | int | level, |
| const char * | data | ||
| ) |
Adds log data to the end of callback data list.
Definition at line 221 of file mobileffmpeg_config.c.
| void mobileffmpeg_log_callback_function | ( | void * | ptr, |
| int | level, | ||
| const char * | format, | ||
| va_list | vargs | ||
| ) |
Callback function for FFmpeg logs.
| pointer | to AVClass struct |
| level | |
| format | |
| arguments |
Definition at line 336 of file mobileffmpeg_config.c.
| void mobileffmpeg_statistics_callback_function | ( | int | frameNumber, |
| float | fps, | ||
| float | quality, | ||
| int64_t | size, | ||
| int | time, | ||
| double | bitrate, | ||
| double | speed | ||
| ) |
Callback function for FFmpeg statistics.
| frameNumber | last processed frame number |
| fps | frames processed per second |
| quality | quality of the output stream (video only) |
| size | size in bytes |
| time | processed output duration |
| bitrate | output bit rate in kbits/s |
| speed | processing speed = processed duration / operation duration |
Definition at line 371 of file mobileffmpeg_config.c.
| void monitorInit | ( | ) |
Definition at line 159 of file mobileffmpeg_config.c.
| void monitorNotify | ( | ) |
Definition at line 212 of file mobileffmpeg_config.c.
| void monitorUnInit | ( | ) |
Definition at line 179 of file mobileffmpeg_config.c.
| void monitorWait | ( | int | milliSeconds | ) |
Definition at line 192 of file mobileffmpeg_config.c.
| void mutexInit | ( | ) |
Definition at line 150 of file mobileffmpeg_config.c.
| void mutexLock | ( | ) |
Definition at line 184 of file mobileffmpeg_config.c.
| void mutexUnInit | ( | ) |
Definition at line 175 of file mobileffmpeg_config.c.
| void mutexUnlock | ( | ) |
Definition at line 188 of file mobileffmpeg_config.c.
| void statisticsCallbackDataAdd | ( | int | frameNumber, |
| float | fps, | ||
| float | quality, | ||
| int64_t | size, | ||
| int | time, | ||
| double | bitrate, | ||
| double | speed | ||
| ) |
Adds statistics data to the end of callback data list.
Definition at line 258 of file mobileffmpeg_config.c.
| struct CallbackData* callbackDataHead |
Definition at line 58 of file mobileffmpeg_config.c.
| struct CallbackData* callbackDataTail |
Definition at line 59 of file mobileffmpeg_config.c.
| pthread_t callbackThread |
Definition at line 55 of file mobileffmpeg_config.c.
|
static |
Global reference of Config class in Java
Definition at line 65 of file mobileffmpeg_config.c.
| const char* configClassName = "com/arthenica/mobileffmpeg/Config" |
Full name of the Config class
Definition at line 74 of file mobileffmpeg_config.c.
| JNINativeMethod configMethods[] |
Prototypes of native functions defined by Config class.
Definition at line 77 of file mobileffmpeg_config.c.
|
static |
Global reference to the virtual machine running
Definition at line 62 of file mobileffmpeg_config.c.
| pthread_mutex_t lockMutex |
Redirection control variables
Definition at line 51 of file mobileffmpeg_config.c.
|
static |
Global reference of log redirection method in Java
Definition at line 68 of file mobileffmpeg_config.c.
| pthread_cond_t monitorCondition |
Definition at line 53 of file mobileffmpeg_config.c.
| pthread_mutex_t monitorMutex |
Definition at line 52 of file mobileffmpeg_config.c.
| int redirectionEnabled |
Definition at line 56 of file mobileffmpeg_config.c.
|
static |
Global reference of statistics redirection method in Java
Definition at line 71 of file mobileffmpeg_config.c.
1.8.14