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
mp4client/main.c File Reference
#include <gpac/terminal.h>
#include <gpac/term_info.h>
#include <gpac/constants.h>
#include <gpac/media_tools.h>
#include <gpac/options.h>
#include <gpac/modules/service.h>
#include <gpac/avparse.h>
#include <time.h>
#include <gpac/iso639.h>
#include <gpac/internal/terminal_dev.h>
#include <dlfcn.h>
#include <pwd.h>
#include <unistd.h>
#include <termios.h>
+ Include dependency graph for mp4client/main.c:

Functions

void PrintWorldInfo (GF_Terminal *term)
 
void ViewOD (GF_Terminal *term, u32 OD_ID, u32 number)
 
void PrintODList (GF_Terminal *term, GF_ObjectManager *root_odm, u32 num, u32 indent, char *root_name)
 
void ViewODs (GF_Terminal *term, Bool show_timing)
 
void PrintGPACConfig ()
 
void dump_frame (GF_Terminal *term, char *rad_path, u32 dump_type, u32 frameNum)
 
Bool dump_file (char *the_url, u32 dump_mode, Double fps, u32 width, u32 height, Float scale, u32 *times, u32 nb_times)
 
void hide_shell (u32 cmd_type)
 
void PrintUsage ()
 
void PrintHelp ()
 
static void PrintTime (u64 time)
 
static void UpdateRTInfo (const char *legend)
 
static void ResetCaption ()
 
void switch_bench (Bool is_on)
 
int getch ()
 
static const char * read_line_input (char *line, int maxSize, Bool showContent)
 
Bool GPAC_EventProc (void *ptr, GF_Event *evt)
 
void list_modules (GF_ModuleManager *modules)
 
void set_navigation ()
 
static Bool get_time_list (char *arg, u32 *times, u32 *nb_times)
 
static void on_gpac_log (void *cbk, u32 ll, u32 lm, const char *fmt, va_list list)
 
static void init_rti_logs (char *rti_file, char *url, Bool use_rtix)
 
void set_cfg_option (char *opt_string)
 
int main (int argc, char **argv)
 
void PrintODTiming (GF_Terminal *term, GF_ObjectManager *odm)
 
void PrintODBuffer (GF_Terminal *term, GF_ObjectManager *odm)
 

Variables

static u32 gui_mode = 0
 
static Bool restart = GF_FALSE
 
static Bool reload = GF_FALSE
 
static u32 threading_flags = 0
 
static Bool no_audio = GF_FALSE
 
static Bool term_step = GF_FALSE
 
static Bool no_regulation = GF_FALSE
 
static Bool bench_mode = GF_FALSE
 
static Bool eos_seen = GF_FALSE
 
Bool is_connected = GF_FALSE
 
Bool startup_file = GF_FALSE
 
GF_User user
 
GF_Terminal * term
 
u64 Duration
 
GF_Err last_error = GF_OK
 
static Bool request_next_playlist_item = GF_FALSE
 
FILE * playlist = 0
 
static Bool readonly_playlist = GF_FALSE
 
static GF_Config * cfg_file
 
static u32 display_rti = 0
 
static Bool Run
 
static Bool CanSeek = GF_FALSE
 
static char the_url [1023]
 
static char pl_path [1023]
 
static Bool no_mime_check = GF_TRUE
 
static Bool be_quiet = GF_FALSE
 
static u32 log_time_start = 0
 
static Bool log_utc_time = GF_FALSE
 
static Bool loop_at_end = GF_FALSE
 
static u32 forced_width =0
 
static u32 forced_height =0
 
u32 align_mode = 0
 
u32 init_w = 0
 
u32 init_h = 0
 
u32 last_x
 
u32 last_y
 
Bool right_down = GF_FALSE
 
static u32 rti_update_time_ms = 200
 
static FILE * rti_logs = 0
 

Function Documentation

void PrintWorldInfo ( GF_Terminal *  term)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ViewOD ( GF_Terminal *  term,
u32  OD_ID,
u32  number 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PrintODList ( GF_Terminal *  term,
GF_ObjectManager *  root_odm,
u32  num,
u32  indent,
char *  root_name 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ViewODs ( GF_Terminal *  term,
Bool  show_timing 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PrintGPACConfig ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_frame ( GF_Terminal *  term,
char *  rad_path,
u32  dump_type,
u32  frameNum 
)
Bool dump_file ( char *  the_url,
u32  dump_mode,
Double  fps,
u32  width,
u32  height,
Float  scale,
u32 times,
u32  nb_times 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void hide_shell ( u32  cmd_type)

+ Here is the caller graph for this function:

void PrintUsage ( )

+ Here is the call graph for this function:

void PrintHelp ( )

+ Here is the caller graph for this function:

static void PrintTime ( u64  time)
static

+ Here is the caller graph for this function:

static void UpdateRTInfo ( const char *  legend)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ResetCaption ( )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void switch_bench ( Bool  is_on)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int getch ( )

+ Here is the caller graph for this function:

static const char* read_line_input ( char *  line,
int  maxSize,
Bool  showContent 
)
static

Reads a line of input from stdin

Parameters
linethe buffer to fill
maxSizethe maximum size of the line to read
showContentboolean indicating if the line read should be printed on stderr or not

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool GPAC_EventProc ( void *  ptr,
GF_Event evt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void list_modules ( GF_ModuleManager *  modules)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void set_navigation ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool get_time_list ( char *  arg,
u32 times,
u32 nb_times 
)
static

+ Here is the caller graph for this function:

static void on_gpac_log ( void *  cbk,
u32  ll,
u32  lm,
const char *  fmt,
va_list  list 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void init_rti_logs ( char *  rti_file,
char *  url,
Bool  use_rtix 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void set_cfg_option ( char *  opt_string)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)
void PrintODTiming ( GF_Terminal *  term,
GF_ObjectManager *  odm 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PrintODBuffer ( GF_Terminal *  term,
GF_ObjectManager *  odm 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

u32 gui_mode = 0
static
Bool restart = GF_FALSE
static
Bool reload = GF_FALSE
static
u32 threading_flags = 0
static
Bool no_audio = GF_FALSE
static
Bool term_step = GF_FALSE
static
Bool no_regulation = GF_FALSE
static
Bool bench_mode = GF_FALSE
static
Bool eos_seen = GF_FALSE
static
Bool is_connected = GF_FALSE
Bool startup_file = GF_FALSE
GF_User user
GF_Terminal* term
u64 Duration
GF_Err last_error = GF_OK
Bool request_next_playlist_item = GF_FALSE
static
FILE* playlist = 0
Bool readonly_playlist = GF_FALSE
static
GF_Config* cfg_file
static
u32 display_rti = 0
static
Bool Run
static
Bool CanSeek = GF_FALSE
static
char the_url[1023]
static
char pl_path[1023]
static
Bool no_mime_check = GF_TRUE
static
Bool be_quiet = GF_FALSE
static
u32 log_time_start = 0
static
Bool log_utc_time = GF_FALSE
static
Bool loop_at_end = GF_FALSE
static
u32 forced_width =0
static
u32 forced_height =0
static
u32 align_mode = 0
u32 init_w = 0
u32 init_h = 0
u32 last_x
u32 last_y
Bool right_down = GF_FALSE
u32 rti_update_time_ms = 200
static
FILE* rti_logs = 0
static