GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
droid_mpegv.c File Reference
#include <jni.h>
#include <android/log.h>
#include <gpac/list.h>
#include <gpac/constants.h>
#include <gpac/setup.h>
#include <gpac/modules/codec.h>
#include <gpac/scenegraph_vrml.h>
#include <gpac/thread.h>
+ Include dependency graph for droid_mpegv.c:

Data Structures

struct  MPEGVSensorContext
 

Macros

#define LOG_TAG   "MPEG-V_IN"
 
#define QUOTEME_(x)   #x
 
#define QUOTEME(x)   QUOTEME_(x)
 
#define LOGI(...)   fprintf(stderr, "I/" LOG_TAG " (" __FILE__ ":" QUOTEME(__LINE__) "): " __VA_ARGS__)
 
#define LOGE(...)   fprintf(stderr, "E/" LOG_TAG "(" ")" __VA_ARGS__)
 
#define MPEGVSCTX   MPEGVSensorContext *rc = (MPEGVSensorContext *)dr->udta
 

Functions

JNIEXPORT void JNICALL Java_com_gpac_Osmo4_MPEGVSensor_sendData (JNIEnv *env, jobject thiz, jint ptr, jstring data)
 
jint JNI_OnLoad (JavaVM *vm, void *reserved)
 
void JNI_OnUnload (JavaVM *vm, void *reserved)
 
JavaVM * GetJavaVM ()
 
void unloadSensorController (MPEGVSensorContext *rc)
 
void loadSensorControler (MPEGVSensorContext *rc)
 
Bool MPEGVS_RegisterDevice (struct __input_device *dr, const char *urn, GF_BitStream *dsi, void(*AddField)(struct __input_device *_this, u32 fieldType, const char *name))
 
u32 MPEGVS_OnData (struct __input_device *dr, const char *data)
 
u32 ThreadRun (void *param)
 
void MPEGVS_Start (struct __input_device *dr)
 
void MPEGVS_Stop (struct __input_device *dr)
 
GF_InputSensorDeviceNewMPEGVSInputSesor ()
 
void DeleteMPEGVSInputSensor (GF_InputSensorDevice *dev)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static JavaVM * javaVM = 0
 
static jclass sensCtrlClass
 
static jmethodID cid
 
static jmethodID startSensor
 
static jmethodID stopSensor
 

Data Structure Documentation

struct MPEGVSensorContext
+ Collaboration diagram for MPEGVSensorContext:
Data Fields
char sensor[50]
u16 sensorAndroidType
u8 isAttached
GF_Thread * trd
u8 stop
JNIEnv * env
jclass sensCtrlClass
jmethodID cid
jobject sensCtrlObj
jmethodID startSensor
jmethodID stopSensor
u16 sensorIOSType
GF_Mutex * mx
void * inst

Macro Definition Documentation

#define LOG_TAG   "MPEG-V_IN"
#define QUOTEME_ (   x)    #x
#define QUOTEME (   x)    QUOTEME_(x)
#define LOGI (   ...)    fprintf(stderr, "I/" LOG_TAG " (" __FILE__ ":" QUOTEME(__LINE__) "): " __VA_ARGS__)
#define LOGE (   ...)    fprintf(stderr, "E/" LOG_TAG "(" ")" __VA_ARGS__)
#define MPEGVSCTX   MPEGVSensorContext *rc = (MPEGVSensorContext *)dr->udta

Function Documentation

JNIEXPORT void Java_com_gpac_Osmo4_MPEGVSensor_sendData ( JNIEnv *  env,
jobject  thiz,
jint  ptr,
jstring  data 
)

+ Here is the call graph for this function:

jint JNI_OnLoad ( JavaVM *  vm,
void *  reserved 
)
void JNI_OnUnload ( JavaVM *  vm,
void *  reserved 
)
JavaVM* GetJavaVM ( )
void unloadSensorController ( MPEGVSensorContext rc)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void loadSensorControler ( MPEGVSensorContext rc)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool MPEGVS_RegisterDevice ( struct __input_device *  dr,
const char *  urn,
GF_BitStream *  dsi,
void(*)(struct __input_device *_this, u32 fieldType, const char *name)  AddField 
)

+ Here is the caller graph for this function:

u32 MPEGVS_OnData ( struct __input_device *  dr,
const char *  data 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 ThreadRun ( void *  param)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MPEGVS_Start ( struct __input_device *  dr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MPEGVS_Stop ( struct __input_device *  dr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_InputSensorDevice* NewMPEGVSInputSesor ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeleteMPEGVSInputSensor ( GF_InputSensorDevice dev)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const u32* QueryInterfaces ( )
GF_BaseInterface* LoadInterface ( u32  InterfaceType)

+ Here is the call graph for this function:

void ShutdownInterface ( GF_BaseInterface ifce)

+ Here is the call graph for this function:

Variable Documentation

JavaVM* javaVM = 0
static
jclass sensCtrlClass
static
jmethodID cid
static
jmethodID startSensor
static
jmethodID stopSensor
static