libgpac
Documentation of the core library of GPAC
mpeg4_inputsensor.c File Reference
#include <gpac/internal/compositor_dev.h>
#include <gpac/modules/codec.h>
#include <gpac/utf.h>
#include <gpac/nodes_x3d.h>
#include <gpac/constants.h>
+ Include dependency graph for mpeg4_inputsensor.c:

Data Structures

struct  GF_InputSensorCtx
 
struct  ISStack
 
struct  StringSensorStack
 

Enumerations

enum  { IS_KeySensor = 1 , IS_StringSensor , IS_Mouse , IS_HTKSensor }
 

Functions

void gf_isdec_del (GF_BaseDecoder *plug)
 
static GF_Err IS_ProcessData (GF_InputSensorCtx *is_ctx, const char *inBuffer, u32 inBufferLength)
 
static void add_field (GF_InputSensorCtx *priv, u32 fieldType, const char *fieldName)
 
static void isdev_add_field (GF_InputSensorDevice *dev, u32 fieldType, const char *fieldName)
 
static void isdev_dispatch_frame (struct __input_device *dev, const u8 *data, u32 data_len)
 
static GF_InputSensorCtxlocate_is_ctx_for_odm (GF_Scene *scene, GF_ObjectManager *for_odm)
 
GF_Err gf_input_sensor_setup_object (GF_ObjectManager *odm, GF_ESD *esd)
 
void gf_input_sensor_delete (GF_ObjectManager *odm)
 
static void InputSensorUnregister (GF_Node *node, ISStack *st)
 
static void InputSensorRegister (GF_Node *n)
 
static void TraverseInputSensor (GF_Node *node, void *rs, Bool is_destroy)
 
void InitInputSensor (GF_Scene *scene, GF_Node *node)
 
void InputSensorModified (GF_Node *node)
 
GF_EXPORT void gf_sc_input_sensor_mouse_input (GF_Compositor *compositor, GF_EventMouse *event)
 
GF_EXPORT Bool gf_sc_input_sensor_keyboard_input (GF_Compositor *compositor, u32 key_code, u32 hw_code, Bool isKeyUp)
 
GF_EXPORT void gf_sc_input_sensor_string_input (GF_Compositor *compositor, u32 character)
 
void DestroyKeySensor (GF_Node *node, void *rs, Bool is_destroy)
 
void InitKeySensor (GF_Scene *scene, GF_Node *node)
 
void DestroyStringSensor (GF_Node *node, void *rs, Bool is_destroy)
 
void InitStringSensor (GF_Scene *scene, GF_Node *node)
 

Data Structure Documentation

◆ GF_InputSensorCtx

struct GF_InputSensorCtx
+ Collaboration diagram for GF_InputSensorCtx:
Data Fields
GF_ObjectManager * odm
GF_List * is_nodes
u16 ES_ID
GF_List * ddf
GF_InputSensorDevice * io_dev
u32 type
s16 termChar
s16 delChar
unsigned short enteredText[5000]
u32 text_len

◆ ISStack

struct ISStack
Data Fields
u16 ES_ID
Bool registered
GF_MediaObject * mo
M_InputSensor * is

◆ StringSensorStack

struct StringSensorStack
Data Fields
u16 enteredText[5000]
u32 text_len
GF_Compositor * compositor

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
IS_KeySensor 
IS_StringSensor 
IS_Mouse 
IS_HTKSensor 

Function Documentation

◆ gf_isdec_del()

void gf_isdec_del ( GF_BaseDecoder plug)

◆ IS_ProcessData()

static GF_Err IS_ProcessData ( GF_InputSensorCtx is_ctx,
const char *  inBuffer,
u32  inBufferLength 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_field()

static void add_field ( GF_InputSensorCtx priv,
u32  fieldType,
const char *  fieldName 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isdev_add_field()

static void isdev_add_field ( GF_InputSensorDevice dev,
u32  fieldType,
const char *  fieldName 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isdev_dispatch_frame()

static void isdev_dispatch_frame ( struct __input_device *  dev,
const u8 data,
u32  data_len 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ locate_is_ctx_for_odm()

static GF_InputSensorCtx* locate_is_ctx_for_odm ( GF_Scene *  scene,
GF_ObjectManager *  for_odm 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_input_sensor_setup_object()

GF_Err gf_input_sensor_setup_object ( GF_ObjectManager *  odm,
GF_ESD esd 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_input_sensor_delete()

void gf_input_sensor_delete ( GF_ObjectManager *  odm)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InputSensorUnregister()

static void InputSensorUnregister ( GF_Node node,
ISStack st 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InputSensorRegister()

static void InputSensorRegister ( GF_Node n)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TraverseInputSensor()

static void TraverseInputSensor ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitInputSensor()

void InitInputSensor ( GF_Scene *  scene,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InputSensorModified()

void InputSensorModified ( GF_Node node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sc_input_sensor_mouse_input()

GF_EXPORT void gf_sc_input_sensor_mouse_input ( GF_Compositor *  compositor,
GF_EventMouse event 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sc_input_sensor_keyboard_input()

GF_EXPORT Bool gf_sc_input_sensor_keyboard_input ( GF_Compositor *  compositor,
u32  key_code,
u32  hw_code,
Bool  isKeyUp 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sc_input_sensor_string_input()

GF_EXPORT void gf_sc_input_sensor_string_input ( GF_Compositor *  compositor,
u32  character 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyKeySensor()

void DestroyKeySensor ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitKeySensor()

void InitKeySensor ( GF_Scene *  scene,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyStringSensor()

void DestroyStringSensor ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitStringSensor()

void InitStringSensor ( GF_Scene *  scene,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: