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
fm_fake_pull.c File Reference
#include <gpac/thread.h>
#include "hyb_in.h"
+ Include dependency graph for fm_fake_pull.c:

Data Structures

struct  FM_FAKE_PULL
 

Macros

#define EXT_MEDIA_LOAD_THREADED
 
#define FM_FAKE_PULL_AUDIO_FREQ   44100
 
#define FM_FAKE_PULL_CHAN_NUM   2
 
#define FM_FAKE_PULL_BITS   16
 
#define FM_FAKE_PULL_TYPE   s16
 
#define FM_FAKE_PULL_FRAME_DUR   60 /*in ms*/
 
#define FM_FAKE_PULL_FRAME_LEN   ((FM_FAKE_PULL_FRAME_DUR*FM_FAKE_PULL_CHAN_NUM*FM_FAKE_PULL_BITS*FM_FAKE_PULL_AUDIO_FREQ)/(1000*8)) /*in bytes*/
 

Functions

static Bool FM_FAKE_PULL_CanHandleURL (const char *url)
 
static GF_ObjectDescriptorFM_FAKE_PULL_GetOD (void)
 
static GF_Err FM_FAKE_PULL_Connect (GF_HYBMEDIA *self, GF_ClientService *service, const char *url)
 
static GF_Err FM_FAKE_PULL_Disconnect (GF_HYBMEDIA *self)
 
static GF_Err FM_FAKE_PULL_GetData (GF_HYBMEDIA *self, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr)
 
static GF_Err FM_FAKE_PULL_ReleaseData (GF_HYBMEDIA *self)
 
static GF_ESDget_esd ()
 
static u32 ext_media_load_th (void *par)
 

Variables

FM_FAKE_PULL FM_FAKE_PULL_private_data
 
GF_HYBMEDIA master_fm_fake_pull
 

Data Structure Documentation

struct FM_FAKE_PULL
+ Collaboration diagram for FM_FAKE_PULL:
Data Fields
u64 PTS
unsigned char buffer10[((60 *2 *16 *44100)/(1000 *8))]
unsigned char buffer90[((60 *2 *16 *44100)/(1000 *8))]
GF_Thread * media_th

Macro Definition Documentation

#define EXT_MEDIA_LOAD_THREADED
#define FM_FAKE_PULL_AUDIO_FREQ   44100
#define FM_FAKE_PULL_CHAN_NUM   2
#define FM_FAKE_PULL_BITS   16
#define FM_FAKE_PULL_TYPE   s16
#define FM_FAKE_PULL_FRAME_DUR   60 /*in ms*/
#define FM_FAKE_PULL_FRAME_LEN   ((FM_FAKE_PULL_FRAME_DUR*FM_FAKE_PULL_CHAN_NUM*FM_FAKE_PULL_BITS*FM_FAKE_PULL_AUDIO_FREQ)/(1000*8)) /*in bytes*/

Function Documentation

static Bool FM_FAKE_PULL_CanHandleURL ( const char *  url)
static
static GF_ObjectDescriptor * FM_FAKE_PULL_GetOD ( void  )
static

+ Here is the call graph for this function:

static GF_Err FM_FAKE_PULL_Connect ( GF_HYBMEDIA self,
GF_ClientService *  service,
const char *  url 
)
static

+ Here is the call graph for this function:

static GF_Err FM_FAKE_PULL_Disconnect ( GF_HYBMEDIA self)
static

+ Here is the call graph for this function:

static GF_Err FM_FAKE_PULL_GetData ( GF_HYBMEDIA self,
char **  out_data_ptr,
u32 out_data_size,
GF_SLHeader out_sl_hdr 
)
static
static GF_Err FM_FAKE_PULL_ReleaseData ( GF_HYBMEDIA self)
static
static GF_ESD* get_esd ( )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 ext_media_load_th ( void *  par)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

FM_FAKE_PULL FM_FAKE_PULL_private_data
GF_HYBMEDIA master_fm_fake_pull
Initial value:
= {
"Fake FM (pull mode)",
0 ,
}
FM_FAKE_PULL FM_FAKE_PULL_private_data
Definition: fm_fake_pull.c:55
static GF_Err FM_FAKE_PULL_Connect(GF_HYBMEDIA *self, GF_ClientService *service, const char *url)
Definition: fm_fake_pull.c:139
Definition: hyb_in.h:44
static Bool FM_FAKE_PULL_CanHandleURL(const char *url)
Definition: fm_fake_pull.c:81
static GF_Err FM_FAKE_PULL_ReleaseData(GF_HYBMEDIA *self)
Definition: fm_fake_pull.c:215
static GF_Err FM_FAKE_PULL_GetData(GF_HYBMEDIA *self, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr)
Definition: fm_fake_pull.c:190
static GF_Err FM_FAKE_PULL_Disconnect(GF_HYBMEDIA *self)
Definition: fm_fake_pull.c:178
static GF_ObjectDescriptor * FM_FAKE_PULL_GetOD(void)
Definition: fm_fake_pull.c:116