FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ffjni.c File Reference
#include <jni.h>
#include <pthread.h>
#include <stdlib.h>
#include "libavutil/bprint.h"
#include "libavutil/log.h"
#include "config.h"
#include "ffjni.h"

Go to the source code of this file.

Functions

JNIEnv * ff_jni_attach_env (int *attached, void *log_ctx)
 
int ff_jni_detach_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 = NULL
 
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

JNIEnv* ff_jni_attach_env ( int *  attached,
void log_ctx 
)
int ff_jni_detach_env ( void log_ctx)

Definition at line 78 of file ffjni.c.

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 
)

Definition at line 132 of file ffjni.c.

Referenced by ff_jni_exception_check().

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 
)

Variable Documentation

JavaVM* java_vm = NULL
static

Definition at line 34 of file ffjni.c.

Referenced by ff_jni_attach_env(), and ff_jni_detach_env().

pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 35 of file ffjni.c.

Referenced by ff_jni_attach_env().