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
saf_in.c File Reference
#include <gpac/modules/service.h>
#include <gpac/modules/codec.h>
#include <gpac/constants.h>
#include <gpac/thread.h>
+ Include dependency graph for saf_in.c:

Data Structures

struct  SAFChannel
 
struct  SAFIn
 
struct  StreamInfo
 

Enumerations

enum  { SAF_FILE_LOCAL, SAF_FILE_REMOTE, SAF_LIVE_STREAM }
 

Functions

static SAFChannelsaf_get_channel (SAFIn *saf, u32 stream_id, LPNETCHANNEL a_ch)
 
static u32 SAF_RegisterMimeTypes (const GF_InputService *plug)
 
static Bool SAF_CanHandleURL (GF_InputService *plug, const char *url)
 
static void SAF_Regulate (SAFIn *read)
 
static void SAF_NetIO (void *cbk, GF_NETIO_Parameter *param)
 
u32 SAF_Run (void *_p)
 
static void SAF_DownloadFile (GF_InputService *plug, char *url)
 
static void SAF_CheckFile (SAFIn *read)
 
static GF_Err SAF_ConnectService (GF_InputService *plug, GF_ClientService *serv, const char *url)
 
static GF_Err SAF_CloseService (GF_InputService *plug)
 
static GF_DescriptorSAF_GetServiceDesc (GF_InputService *plug, u32 expect_type, const char *sub_url)
 
static GF_Err SAF_ConnectChannel (GF_InputService *plug, LPNETCHANNEL channel, const char *url, Bool upstream)
 
static GF_Err SAF_DisconnectChannel (GF_InputService *plug, LPNETCHANNEL channel)
 
static GF_Err SAF_ServiceCommand (GF_InputService *plug, GF_NetworkCommand *com)
 
GF_InputServiceNewSAFReader ()
 
void DeleteSAFReader (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static const char * SAF_MIME = "application/x-saf"
 
static const char * SAF_MIME_EXT = "saf lsr"
 
static const char * SAF_MIME_DESC = "SAF Rich Media"
 

Data Structure Documentation

struct SAFChannel
+ Collaboration diagram for SAFChannel:
Data Fields
LPNETCHANNEL ch
u32 au_sn
u32 stream_id
u32 ts_res
u32 buffer_min
GF_ESD * esd
struct SAFIn
+ Collaboration diagram for SAFIn:
Data Fields
GF_ClientService * service
GF_List * channels
Bool needs_connection
u32 saf_type
GF_DownloadSession * dnload
char * saf_data
u32 saf_size
u32 alloc_size
GF_Thread * th
FILE * stream
u32 run_state
u32 start_range
u32 end_range
Double duration
u32 nb_playing
struct StreamInfo
+ Collaboration diagram for StreamInfo:
Data Fields
u32 stream_id
u32 ts_res

Enumeration Type Documentation

anonymous enum
Enumerator
SAF_FILE_LOCAL 
SAF_FILE_REMOTE 
SAF_LIVE_STREAM 

Function Documentation

static SAFChannel* saf_get_channel ( SAFIn saf,
u32  stream_id,
LPNETCHANNEL  a_ch 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 SAF_RegisterMimeTypes ( const GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool SAF_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 void SAF_Regulate ( SAFIn read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SAF_NetIO ( void *  cbk,
GF_NETIO_Parameter param 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 SAF_Run ( void *  _p)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SAF_DownloadFile ( GF_InputService plug,
char *  url 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SAF_CheckFile ( SAFIn read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err SAF_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 SAF_CloseService ( GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Descriptor* SAF_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 SAF_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 SAF_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 SAF_ServiceCommand ( GF_InputService plug,
GF_NetworkCommand com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_InputService* NewSAFReader ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeleteSAFReader ( void *  ifce)

+ 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

const char* SAF_MIME = "application/x-saf"
static
const char* SAF_MIME_EXT = "saf lsr"
static
const char* SAF_MIME_DESC = "SAF Rich Media"
static