FFmpeg
|
#include <jni.h>
#include <pthread.h>
#include <stdlib.h>
#include "libavutil/bprint.h"
#include "libavutil/error.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "config.h"
#include "ffjni.h"
Go to the source code of this file.
Functions | |
static void | jni_detach_env (void *data) |
static void | jni_create_pthread_key (void) |
JNIEnv * | ff_jni_get_env (void *log_ctx) |
char * | ff_jni_jstring_to_utf_chars (JNIEnv *env, jstring string, void *log_ctx) |
jstring | ff_jni_utf_chars_to_jstring (JNIEnv *env, const char *utf_chars, void *log_ctx) |
int | ff_jni_exception_get_summary (JNIEnv *env, jthrowable exception, char **error, void *log_ctx) |
int | ff_jni_exception_check (JNIEnv *env, int log, void *log_ctx) |
int | ff_jni_init_jfields (JNIEnv *env, void *jfields, const struct FFJniField *jfields_mapping, int global, void *log_ctx) |
int | ff_jni_reset_jfields (JNIEnv *env, void *jfields, const struct FFJniField *jfields_mapping, int global, void *log_ctx) |
Variables | |
static JavaVM * | java_vm |
static pthread_key_t | current_env |
static pthread_once_t | once = PTHREAD_ONCE_INIT |
static pthread_mutex_t | lock = PTHREAD_MUTEX_INITIALIZER |
|
static |
Definition at line 41 of file ffjni.c.
Referenced by jni_create_pthread_key().
|
static |
Definition at line 48 of file ffjni.c.
Referenced by ff_jni_get_env().
JNIEnv* ff_jni_get_env | ( | void * | log_ctx | ) |
Definition at line 53 of file ffjni.c.
Referenced by codec_create(), ff_mediacodec_surface_ref(), ff_mediacodec_surface_unref(), mediacodec_jni_cleanOutputBuffers(), mediaformat_jni_new(), and mediaformat_jni_newFromObject().
char* ff_jni_jstring_to_utf_chars | ( | JNIEnv * | env, |
jstring | string, | ||
void * | log_ctx | ||
) |
Definition at line 99 of file ffjni.c.
Referenced by ff_AMediaCodecList_getCodecNameByType(), ff_jni_exception_get_summary(), mediacodec_jni_getName(), mediaformat_jni_getString(), and mediaformat_jni_toString().
jstring ff_jni_utf_chars_to_jstring | ( | JNIEnv * | env, |
const char * | utf_chars, | ||
void * | log_ctx | ||
) |
Definition at line 129 of file ffjni.c.
Referenced by codec_create(), mediaformat_jni_getBuffer(), mediaformat_jni_getFloat(), mediaformat_jni_getInt32(), mediaformat_jni_getInt64(), mediaformat_jni_getString(), mediaformat_jni_setBuffer(), mediaformat_jni_setFloat(), mediaformat_jni_setInt32(), mediaformat_jni_setInt64(), and mediaformat_jni_setString().
int ff_jni_exception_get_summary | ( | JNIEnv * | env, |
jthrowable | exception, | ||
char ** | error, | ||
void * | log_ctx | ||
) |
Definition at line 143 of file ffjni.c.
Referenced by ff_jni_exception_check().
Definition at line 246 of file ffjni.c.
Referenced by codec_create(), codec_init_static_fields(), ff_AMediaCodecList_getCodecNameByType(), ff_jni_init_jfields(), mediacodec_jni_configure(), mediacodec_jni_delete(), mediacodec_jni_dequeueInputBuffer(), mediacodec_jni_dequeueOutputBuffer(), mediacodec_jni_flush(), mediacodec_jni_getInputBuffer(), mediacodec_jni_getName(), mediacodec_jni_getOutputBuffer(), mediacodec_jni_getOutputFormat(), mediacodec_jni_queueInputBuffer(), mediacodec_jni_releaseOutputBuffer(), mediacodec_jni_releaseOutputBufferAtTime(), mediacodec_jni_signalEndOfInputStream(), mediacodec_jni_start(), mediacodec_jni_stop(), mediaformat_jni_getBuffer(), mediaformat_jni_getFloat(), mediaformat_jni_getInt32(), mediaformat_jni_getInt64(), mediaformat_jni_getString(), mediaformat_jni_setBuffer(), mediaformat_jni_setFloat(), mediaformat_jni_setInt32(), mediaformat_jni_setInt64(), mediaformat_jni_setString(), and mediaformat_jni_toString().
int ff_jni_init_jfields | ( | JNIEnv * | env, |
void * | jfields, | ||
const struct FFJniField * | jfields_mapping, | ||
int | global, | ||
void * | log_ctx | ||
) |
Definition at line 279 of file ffjni.c.
Referenced by codec_create(), ff_AMediaCodecList_getCodecNameByType(), mediaformat_jni_new(), and mediaformat_jni_newFromObject().
int ff_jni_reset_jfields | ( | JNIEnv * | env, |
void * | jfields, | ||
const struct FFJniField * | jfields_mapping, | ||
int | global, | ||
void * | log_ctx | ||
) |
Definition at line 368 of file ffjni.c.
Referenced by codec_create(), ff_AMediaCodecList_getCodecNameByType(), ff_jni_init_jfields(), mediacodec_jni_delete(), mediaformat_jni_delete(), mediaformat_jni_new(), and mediaformat_jni_newFromObject().
|
static |
Definition at line 36 of file ffjni.c.
Referenced by ff_jni_get_env(), and jni_detach_env().
|
static |
Definition at line 37 of file ffjni.c.
Referenced by ff_jni_get_env(), and jni_create_pthread_key().
|
static |
Definition at line 38 of file ffjni.c.
Referenced by ff_jni_get_env().
|
static |
Definition at line 39 of file ffjni.c.
Referenced by ff_jni_get_env().