libgpac
Documentation of the core library of GPAC
oci_codec.c File Reference
+ Include dependency graph for oci_codec.c:

Data Structures

struct  __tag_oci_event
 
struct  __tag_oci_codec
 

Macros

#define OCI_MAX_EVENT_SIZE   1<<28 - 1
 
#define MAX_OCIEVENT_ID   0x7FFF
 

Functions

GF_Err gf_odf_write_descriptor_list (GF_BitStream *bs, GF_List *descList)
 
GF_Err gf_odf_size_descriptor_list (GF_List *descList, u32 *outSize)
 
GF_Err gf_odf_delete_descriptor (GF_Descriptor *desc)
 
GF_Err gf_odf_parse_descriptor (GF_BitStream *bs, GF_Descriptor **desc, u32 *desc_size)
 
s32 gf_odf_size_field_size (u32 size_desc)
 
GF_EXPORT OCIEvent * gf_oci_event_new (u16 EventID)
 
GF_EXPORT void gf_oci_event_del (OCIEvent *event)
 
GF_EXPORT GF_Err gf_oci_event_set_start_time (OCIEvent *event, u8 Hours, u8 Minutes, u8 Seconds, u8 HundredSeconds, u8 IsAbsoluteTime)
 
GF_EXPORT GF_Err gf_oci_event_set_duration (OCIEvent *event, u8 Hours, u8 Minutes, u8 Seconds, u8 HundredSeconds)
 
u8 OCI_IsOCIDesc (GF_Descriptor *oci_desc)
 
GF_EXPORT GF_Err gf_oci_event_add_desc (OCIEvent *event, GF_Descriptor *oci_desc)
 
GF_EXPORT GF_Err gf_oci_event_get_id (OCIEvent *event, u16 *ID)
 
GF_EXPORT GF_Err gf_oci_event_get_start_time (OCIEvent *event, u8 *Hours, u8 *Minutes, u8 *Seconds, u8 *HundredSeconds, u8 *IsAbsoluteTime)
 
GF_EXPORT GF_Err gf_oci_event_get_duration (OCIEvent *event, u8 *Hours, u8 *Minutes, u8 *Seconds, u8 *HundredSeconds)
 
GF_EXPORT u32 gf_oci_event_get_desc_count (OCIEvent *event)
 
GF_EXPORT GF_Descriptorgf_oci_event_get_desc (OCIEvent *event, u32 DescIndex)
 
GF_EXPORT GF_Err gf_oci_event_rem_desc (OCIEvent *event, u32 DescIndex)
 
GF_EXPORT OCICodec * gf_oci_codec_new (u8 IsEncoder, u8 Version)
 
GF_EXPORT void gf_oci_codec_del (OCICodec *codec)
 
GF_EXPORT GF_Err gf_oci_codec_add_event (OCICodec *codec, OCIEvent *event)
 
GF_Err WriteSevenBitLength (GF_BitStream *bs, u32 size)
 
GF_EXPORT GF_Err gf_oci_codec_encode (OCICodec *codec, u8 **outAU, u32 *au_length)
 
GF_EXPORT GF_Err gf_oci_codec_decode (OCICodec *codec, u8 *au, u32 au_length)
 
GF_EXPORT OCIEvent * gf_oci_codec_get_event (OCICodec *codec)
 

Data Structure Documentation

◆ __tag_oci_event

struct __tag_oci_event
Data Fields
u16 EventID
u8 AbsoluteTimeFlag
char StartingTime[4]
char duration[4]
GF_List * OCIDescriptors

◆ __tag_oci_codec

struct __tag_oci_codec
Data Fields
GF_List * OCIEvents
u8 Version
u8 Mode

Macro Definition Documentation

◆ OCI_MAX_EVENT_SIZE

#define OCI_MAX_EVENT_SIZE   1<<28 - 1

◆ MAX_OCIEVENT_ID

#define MAX_OCIEVENT_ID   0x7FFF

Function Documentation

◆ gf_odf_write_descriptor_list()

GF_Err gf_odf_write_descriptor_list ( GF_BitStream *  bs,
GF_List *  descList 
)
+ Here is the caller graph for this function:

◆ gf_odf_size_descriptor_list()

GF_Err gf_odf_size_descriptor_list ( GF_List *  descList,
u32 outSize 
)
+ Here is the caller graph for this function:

◆ gf_odf_delete_descriptor()

GF_Err gf_odf_delete_descriptor ( GF_Descriptor desc)
+ Here is the caller graph for this function:

◆ gf_odf_parse_descriptor()

GF_Err gf_odf_parse_descriptor ( GF_BitStream *  bs,
GF_Descriptor **  desc,
u32 desc_size 
)
+ Here is the caller graph for this function:

◆ gf_odf_size_field_size()

s32 gf_odf_size_field_size ( u32  size_desc)
+ Here is the caller graph for this function:

◆ gf_oci_event_new()

GF_EXPORT OCIEvent* gf_oci_event_new ( u16  EventID)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_event_del()

GF_EXPORT void gf_oci_event_del ( OCIEvent *  event)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_event_set_start_time()

GF_EXPORT GF_Err gf_oci_event_set_start_time ( OCIEvent *  event,
u8  Hours,
u8  Minutes,
u8  Seconds,
u8  HundredSeconds,
u8  IsAbsoluteTime 
)

◆ gf_oci_event_set_duration()

GF_EXPORT GF_Err gf_oci_event_set_duration ( OCIEvent *  event,
u8  Hours,
u8  Minutes,
u8  Seconds,
u8  HundredSeconds 
)

◆ OCI_IsOCIDesc()

u8 OCI_IsOCIDesc ( GF_Descriptor oci_desc)
+ Here is the caller graph for this function:

◆ gf_oci_event_add_desc()

GF_EXPORT GF_Err gf_oci_event_add_desc ( OCIEvent *  event,
GF_Descriptor oci_desc 
)
+ Here is the call graph for this function:

◆ gf_oci_event_get_id()

GF_EXPORT GF_Err gf_oci_event_get_id ( OCIEvent *  event,
u16 ID 
)
+ Here is the caller graph for this function:

◆ gf_oci_event_get_start_time()

GF_EXPORT GF_Err gf_oci_event_get_start_time ( OCIEvent *  event,
u8 Hours,
u8 Minutes,
u8 Seconds,
u8 HundredSeconds,
u8 IsAbsoluteTime 
)
+ Here is the caller graph for this function:

◆ gf_oci_event_get_duration()

GF_EXPORT GF_Err gf_oci_event_get_duration ( OCIEvent *  event,
u8 Hours,
u8 Minutes,
u8 Seconds,
u8 HundredSeconds 
)
+ Here is the caller graph for this function:

◆ gf_oci_event_get_desc_count()

GF_EXPORT u32 gf_oci_event_get_desc_count ( OCIEvent *  event)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_event_get_desc()

GF_EXPORT GF_Descriptor* gf_oci_event_get_desc ( OCIEvent *  event,
u32  DescIndex 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_event_rem_desc()

GF_EXPORT GF_Err gf_oci_event_rem_desc ( OCIEvent *  event,
u32  DescIndex 
)
+ Here is the call graph for this function:

◆ gf_oci_codec_new()

GF_EXPORT OCICodec* gf_oci_codec_new ( u8  IsEncoder,
u8  Version 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_codec_del()

GF_EXPORT void gf_oci_codec_del ( OCICodec *  codec)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_codec_add_event()

GF_EXPORT GF_Err gf_oci_codec_add_event ( OCICodec *  codec,
OCIEvent *  event 
)
+ Here is the call graph for this function:

◆ WriteSevenBitLength()

GF_Err WriteSevenBitLength ( GF_BitStream *  bs,
u32  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_codec_encode()

GF_EXPORT GF_Err gf_oci_codec_encode ( OCICodec *  codec,
u8 **  outAU,
u32 au_length 
)
+ Here is the call graph for this function:

◆ gf_oci_codec_decode()

GF_EXPORT GF_Err gf_oci_codec_decode ( OCICodec *  codec,
u8 au,
u32  au_length 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_oci_codec_get_event()

GF_EXPORT OCIEvent* gf_oci_codec_get_event ( OCICodec *  codec)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: