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
ogg_in.c File Reference
#include "ogg_in.h"
#include <ogg/ogg.h>
+ Include dependency graph for ogg_in.c:

Data Structures

struct  OGGInfo
 
struct  OGGStream
 
struct  OGGReader
 

Macros

#define OGG_BUFFER_SIZE   4096
 

Functions

void OGG_EndOfFile (OGGReader *read)
 
static Bool OGG_ReadPage (OGGReader *read, ogg_page *oggpage)
 
static OGGStreamOGG_FindStreamForPage (OGGReader *read, ogg_page *oggpage)
 
static GF_ObjectDescriptorOGG_GetOD (OGGStream *st)
 
u64 OGG_GranuleToTime (OGGInfo *cfg, s64 granule)
 
Double OGG_GranuleToMediaTime (OGGInfo *cfg, s64 granule)
 
static void OGG_GetStreamInfo (ogg_packet *oggpacket, OGGInfo *info)
 
static void OGG_ResetupStream (OGGReader *read, OGGStream *st, ogg_page *oggpage)
 
static void OGG_NewStream (OGGReader *read, ogg_page *oggpage)
 
void OGG_SignalEndOfStream (OGGReader *read, OGGStream *st)
 
void OGG_SendPackets (OGGReader *read, OGGStream *st, ogg_packet *oggpacket)
 
void OGG_Process (OGGReader *read)
 
static u32 OggDemux (void *par)
 
Bool OGG_CheckFile (OGGReader *read)
 
static u32 OGG_RegisterMimeTypes (const GF_InputService *plug)
 
static Bool OGG_CanHandleURL (GF_InputService *plug, const char *url)
 
static Bool ogg_is_local (const char *url)
 
void OGG_NetIO (void *cbk, GF_NETIO_Parameter *param)
 
void OGG_DownloadFile (GF_InputService *plug, char *url)
 
static GF_Err OGG_ConnectService (GF_InputService *plug, GF_ClientService *serv, const char *url)
 
static GF_Err OGG_CloseService (GF_InputService *plug)
 
static GF_DescriptorOGG_GetServiceDesc (GF_InputService *plug, u32 expect_type, const char *sub_url)
 
static GF_Err OGG_ConnectChannel (GF_InputService *plug, LPNETCHANNEL channel, const char *url, Bool upstream)
 
static GF_Err OGG_DisconnectChannel (GF_InputService *plug, LPNETCHANNEL channel)
 
static GF_Err OGG_ServiceCommand (GF_InputService *plug, GF_NetworkCommand *com)
 
static Bool OGG_CanHandleURLInService (GF_InputService *plug, const char *url)
 
GF_InputServiceOGG_LoadDemux ()
 
void OGG_DeleteDemux (void *ifce)
 

Variables

static const char * OGG_MIMES_AUDIO []
 
static const char * OGG_MIMES_AUDIO_EXT = "oga spx"
 
static const char * OGG_MIMES_AUDIO_DESC = "Xiph.org OGG Music"
 
static const char * OGG_MIMES_VIDEO []
 
static const char * OGG_MIMES_VIDEO_DESC = "Xiph.org OGG Movie"
 
static const char * OGG_MIMES_VIDEO_EXT = "ogg ogv oggm"
 

Data Structure Documentation

struct OGGInfo
+ Collaboration diagram for OGGInfo:
Data Fields
u32 streamType
u32 num_init_headers
u32 sample_rate
u32 bitrate
u32 theora_kgs
Float frame_rate
u32 frame_rate_base
u32 type
struct OGGStream
+ Collaboration diagram for OGGStream:
Data Fields
ogg_stream_state os
u32 serial_no
char * dsi
u32 dsi_len
OGGInfo info
Bool got_headers
s64 seek_granule
s64 last_granule
Bool is_running
u32 parse_headers
LPNETCHANNEL ch
u16 ESID
Bool eos_detected
Bool map_time
u32 ogg_ts
GF_VorbisParser vp
struct OGGReader
+ Collaboration diagram for OGGReader:
Data Fields
GF_ClientService * service
GF_Thread * demuxer
GF_List * streams
FILE * ogfile
u64 file_size
Bool is_remote
Bool is_inline
u32 nb_playing
u32 kill_demux
u32 do_seek
u32 service_type
u32 init_remain
u32 bos_done
ogg_sync_state oy
OGGStream * resync_stream
Bool has_video
Bool has_audio
Bool is_single_media
Double dur
u32 data_buffer_ms
Bool needs_connection
Double start_range
Double end_range
GF_DownloadSession * dnload
Bool is_live
u32 tune_in_time

Macro Definition Documentation

#define OGG_BUFFER_SIZE   4096

Function Documentation

void OGG_EndOfFile ( OGGReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool OGG_ReadPage ( OGGReader read,
ogg_page oggpage 
)
static

+ Here is the call graph for this function:

static OGGStream* OGG_FindStreamForPage ( OGGReader read,
ogg_page oggpage 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_ObjectDescriptor* OGG_GetOD ( OGGStream st)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u64 OGG_GranuleToTime ( OGGInfo cfg,
s64  granule 
)

+ Here is the caller graph for this function:

Double OGG_GranuleToMediaTime ( OGGInfo cfg,
s64  granule 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void OGG_GetStreamInfo ( ogg_packet oggpacket,
OGGInfo info 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void OGG_ResetupStream ( OGGReader read,
OGGStream st,
ogg_page oggpage 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void OGG_NewStream ( OGGReader read,
ogg_page oggpage 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OGG_SignalEndOfStream ( OGGReader read,
OGGStream st 
)

+ Here is the call graph for this function:

void OGG_SendPackets ( OGGReader read,
OGGStream st,
ogg_packet oggpacket 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OGG_Process ( OGGReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 OggDemux ( void *  par)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool OGG_CheckFile ( OGGReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 OGG_RegisterMimeTypes ( const GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool OGG_CanHandleURL ( GF_InputService plug,
const char *  url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool ogg_is_local ( const char *  url)
static

+ Here is the caller graph for this function:

void OGG_NetIO ( void *  cbk,
GF_NETIO_Parameter param 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OGG_DownloadFile ( GF_InputService plug,
char *  url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err OGG_ConnectService ( GF_InputService plug,
GF_ClientService *  serv,
const char *  url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err OGG_CloseService ( GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Descriptor* OGG_GetServiceDesc ( GF_InputService plug,
u32  expect_type,
const char *  sub_url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err OGG_ConnectChannel ( GF_InputService plug,
LPNETCHANNEL  channel,
const char *  url,
Bool  upstream 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err OGG_DisconnectChannel ( GF_InputService plug,
LPNETCHANNEL  channel 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err OGG_ServiceCommand ( GF_InputService plug,
GF_NetworkCommand com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool OGG_CanHandleURLInService ( GF_InputService plug,
const char *  url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_InputService* OGG_LoadDemux ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void OGG_DeleteDemux ( void *  ifce)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* OGG_MIMES_AUDIO[]
static
Initial value:
= {
"audio/ogg", "audio/x-ogg", "audio/x-vorbis+ogg", 0
}
const char* OGG_MIMES_AUDIO_EXT = "oga spx"
static
const char* OGG_MIMES_AUDIO_DESC = "Xiph.org OGG Music"
static
const char* OGG_MIMES_VIDEO[]
static
Initial value:
= {
"application/ogg", "application/x-ogg", "video/ogg", "video/x-ogg", "video/x-ogm+ogg", 0
}
const char* OGG_MIMES_VIDEO_DESC = "Xiph.org OGG Movie"
static
const char* OGG_MIMES_VIDEO_EXT = "ogg ogv oggm"
static