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
amr_in.c File Reference
+ Include dependency graph for amr_in.c:

Data Structures

struct  AMR_Reader
 

Enumerations

enum  { TYPE_AMR = 0, TYPE_AMR_WB, TYPE_EVRC, TYPE_SMV }
 

Functions

static u32 AMR_RegisterMimeTypes (const GF_InputService *plug)
 
static GF_ESDAMR_GetESD (AMR_Reader *read)
 
static void AMR_SetupObject (AMR_Reader *read)
 
static Bool AMR_CanHandleURL (GF_InputService *plug, const char *url)
 
static Bool file_is_local (const char *url)
 
static Bool AMR_ConfigureFromFile (AMR_Reader *read)
 
static void AMR_NetIO (void *cbk, GF_NETIO_Parameter *param)
 
static void AMR_DownloadFile (GF_InputService *plug, char *url)
 
static GF_Err AMR_ConnectService (GF_InputService *plug, GF_ClientService *serv, const char *url)
 
static GF_Err AMR_CloseService (GF_InputService *plug)
 
static GF_DescriptorAMR_GetServiceDesc (GF_InputService *plug, u32 expect_type, const char *sub_url)
 
static GF_Err AMR_ConnectChannel (GF_InputService *plug, LPNETCHANNEL channel, const char *url, Bool upstream)
 
static GF_Err AMR_DisconnectChannel (GF_InputService *plug, LPNETCHANNEL channel)
 
static GF_Err AMR_ServiceCommand (GF_InputService *plug, GF_NetworkCommand *com)
 
static GF_Err AMR_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 AMR_ChannelReleaseSLP (GF_InputService *plug, LPNETCHANNEL channel)
 
GF_InputServiceNewAESReader ()
 
void DeleteAESReader (void *ifce)
 

Variables

static const char * AMR_MIMES [] = { "audio/ac3", "audio/x-ac3", 0 }
 

Data Structure Documentation

struct AMR_Reader
+ Collaboration diagram for AMR_Reader:
Data Fields
GF_ClientService * service
Bool is_remote
u32 start_offset
u32 mtype
u32 sample_rate
u32 block_size
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
Double start_range
Double end_range
u32 current_time
GF_DownloadSession * dnload

Enumeration Type Documentation

anonymous enum
Enumerator
TYPE_AMR 
TYPE_AMR_WB 
TYPE_EVRC 
TYPE_SMV 

Function Documentation

static u32 AMR_RegisterMimeTypes ( const GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_ESD* AMR_GetESD ( AMR_Reader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void AMR_SetupObject ( AMR_Reader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

static Bool AMR_ConfigureFromFile ( AMR_Reader read)
static

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err AMR_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 AMR_CloseService ( GF_InputService plug)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Descriptor* AMR_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 AMR_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 AMR_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 AMR_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 AMR_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 AMR_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* NewAESReader ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeleteAESReader ( void *  ifce)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* AMR_MIMES[] = { "audio/ac3", "audio/x-ac3", 0 }
static