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

Data Structures

struct  AC3Reader
 

Functions

static u32 AC3_RegisterMimeTypes (const GF_InputService *plug)
 
static Bool AC3_CanHandleURL (GF_InputService *plug, const char *url)
 
static Bool ac3_is_local (const char *url)
 
static GF_ESDAC3_GetESD (AC3Reader *read)
 
static void AC3_SetupObject (AC3Reader *read)
 
static Bool AC3_ConfigureFromFile (AC3Reader *read)
 
static void AC3_RegulateDataRate (AC3Reader *read)
 
static void AC3_OnLiveData (AC3Reader *read, const char *data, u32 data_size)
 
void AC3_NetIO (void *cbk, GF_NETIO_Parameter *param)
 
void ac3_download_file (GF_InputService *plug, char *url)
 
static GF_Err AC3_ConnectService (GF_InputService *plug, GF_ClientService *serv, const char *url)
 
static GF_Err AC3_CloseService (GF_InputService *plug)
 
static GF_DescriptorAC3_GetServiceDesc (GF_InputService *plug, u32 expect_type, const char *sub_url)
 
static GF_Err AC3_ConnectChannel (GF_InputService *plug, LPNETCHANNEL channel, const char *url, Bool upstream)
 
static GF_Err AC3_DisconnectChannel (GF_InputService *plug, LPNETCHANNEL channel)
 
static GF_Err AC3_ServiceCommand (GF_InputService *plug, GF_NetworkCommand *com)
 
static GF_Err AC3_ChannelGetSLP (GF_InputService *plug, LPNETCHANNEL channel, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr, Bool *sl_compressed, GF_Err *out_reception_status, Bool *is_new_data)
 
static GF_Err AC3_ChannelReleaseSLP (GF_InputService *plug, LPNETCHANNEL channel)
 
GF_InputServiceAC3_Load ()
 
void AC3_Delete (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static const char * AC3_MIMES [] = { "audio/ac3", "audio/x-ac3", 0 }
 
static const char * AC3_EXTS = "ac3"
 
static const char * AC3_DESC = "AC3 Music"
 

Data Structure Documentation

struct AC3Reader
+ Collaboration diagram for AC3Reader:
Data Fields
GF_ClientService * service
Bool is_remote
FILE * stream
u32 duration
Bool needs_connection
u32 pad_bytes
Bool done
u32 is_inline
LPNETCHANNEL ch
unsigned char * data
u32 data_size
GF_SLHeader sl_hdr
u32 sample_rate
u32 nb_ch
Double start_range
Double end_range
u32 current_time
u32 nb_samp
GF_DownloadSession * dnload
Bool is_live
char prev_data[1000]
u32 prev_size
char * icy_name
char * icy_genre
char * icy_track_name

Function Documentation

static u32 AC3_RegisterMimeTypes ( const GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool AC3_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 ac3_is_local ( const char *  url)
static

+ Here is the caller graph for this function:

static GF_ESD* AC3_GetESD ( AC3Reader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void AC3_SetupObject ( AC3Reader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool AC3_ConfigureFromFile ( AC3Reader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void AC3_RegulateDataRate ( AC3Reader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void AC3_OnLiveData ( AC3Reader read,
const char *  data,
u32  data_size 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AC3_NetIO ( void *  cbk,
GF_NETIO_Parameter param 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ac3_download_file ( GF_InputService plug,
char *  url 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err AC3_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 AC3_CloseService ( GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Descriptor* AC3_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 AC3_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 AC3_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 AC3_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 GF_Err AC3_ChannelGetSLP ( GF_InputService plug,
LPNETCHANNEL  channel,
char **  out_data_ptr,
u32 out_data_size,
GF_SLHeader out_sl_hdr,
Bool sl_compressed,
GF_Err out_reception_status,
Bool is_new_data 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err AC3_ChannelReleaseSLP ( GF_InputService plug,
LPNETCHANNEL  channel 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_InputService* AC3_Load ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AC3_Delete ( 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* AC3_MIMES[] = { "audio/ac3", "audio/x-ac3", 0 }
static
const char* AC3_EXTS = "ac3"
static
const char* AC3_DESC = "AC3 Music"
static