![]() |
libgpac
Documentation of the core library of GPAC
|
Collaboration diagram for Main tools:Data Structures | |
| struct | GF_GPACArg |
Macros | |
| #define | GF_MAIN_FUNC(__fun) |
| #define | GF_GPAC_ARG_BASE |
| #define | GF_ARG_HINT_ADVANCED (1<<1) |
| #define | GF_ARG_HINT_EXPERT (1<<2) |
| #define | GF_ARG_HINT_HIDE (1<<3) |
| #define | GF_ARG_HINT_EXPERIMENTAL (1<<4) |
| #define | GF_ARG_SUBSYS_CORE (1<<5) |
| #define | GF_ARG_SUBSYS_LOG (1<<6) |
| #define | GF_ARG_SUBSYS_FILTERS (1<<7) |
| #define | GF_ARG_SUBSYS_HTTP (1<<8) |
| #define | GF_ARG_SUBSYS_VIDEO (1<<9) |
| #define | GF_ARG_SUBSYS_AUDIO (1<<10) |
| #define | GF_ARG_SUBSYS_TEXT (1<<11) |
| #define | GF_ARG_SUBSYS_RMT (1<<12) |
| #define | GF_ARG_SUBSYS_HACKS (1<<13) |
| #define | GF_ARG_BOOL 0 |
| #define | GF_ARG_INT 1 |
| #define | GF_ARG_DOUBLE 2 |
| #define | GF_ARG_STRING 3 |
| #define | GF_ARG_STRINGS 4 |
| #define | GF_ARG_4CC 5 |
| #define | GF_ARG_4CCS 6 |
| #define | GF_ARG_CUSTOM 7 |
| #define | GF_DEF_ARG(_a, _b, _c, _d, _e, _f, _g) {_a, _b, _c, _d, _e, _f, _g} |
Enumerations | |
| enum | GF_SysArgMode { GF_ARGMODE_BASE =0 , GF_ARGMODE_ADVANCED , GF_ARGMODE_EXPERT , GF_ARGMODE_ALL } |
| enum | GF_SysPrintArgFlags { GF_PRINTARG_HIGHLIGHT_FIRST = 1 , GF_PRINTARG_NL_TO_BR = 1<<1 , GF_PRINTARG_OPT_DESC = 1<<2 , GF_PRINTARG_IS_APP = 1<<3 , GF_PRINTARG_ADD_DASH = 1<<4 , GF_PRINTARG_NO_DASH = 1<<5 , GF_PRINTARG_COLON = 1<<6 , GF_PRINTARG_MD = 1<<16 , GF_PRINTARG_MAN = 1<<17 , GF_PRINTARG_ESCAPE_XML = 1<<18 , GF_PRINTARG_ESCAPE_PIPE = 1<<19 } |
Functions | |
| const GF_GPACArg * | gf_sys_get_options () |
| u32 | gf_sys_is_gpac_arg (const char *arg_name) |
| Bool | gf_sys_set_cfg_option (const char *opt_string) |
| void | gf_sys_print_arg (FILE *helpout, GF_SysPrintArgFlags flags, const GF_GPACArg *arg, const char *arg_subsystem) |
| void | gf_sys_print_core_help (FILE *helpout, GF_SysPrintArgFlags flags, GF_SysArgMode mode, u32 subsystem_flags) |
| const char * | gf_sys_localized (const char *sec_name, const char *str_name, const char *def_val) |
| void | gf_sys_format_help (FILE *output, GF_SysPrintArgFlags flags, const char *fmt,...) |
| Bool | gf_sys_word_match (const char *orig, const char *dst) |
Thiis section decribes functions useful when developing an application using libgpac such as:
| struct GF_GPACArg |
structure holding a libgpac arg (not a filter arg)
| #define GF_MAIN_FUNC | ( | __fun | ) |
| #define GF_GPAC_ARG_BASE |
| #define GF_ARG_HINT_ADVANCED (1<<1) |
argument is of advanced type
| #define GF_ARG_HINT_EXPERT (1<<2) |
argument is of expert type
| #define GF_ARG_HINT_HIDE (1<<3) |
argument should not be presented in UIs
| #define GF_ARG_HINT_EXPERIMENTAL (1<<4) |
argument is highly experimental
| #define GF_ARG_SUBSYS_CORE (1<<5) |
argument applies to the libgpac core subsystem
| #define GF_ARG_SUBSYS_LOG (1<<6) |
argument applies to the log subsystem
| #define GF_ARG_SUBSYS_FILTERS (1<<7) |
argument applies to the filter subsystem
| #define GF_ARG_SUBSYS_HTTP (1<<8) |
argument applies to the HTTP subsystem
| #define GF_ARG_SUBSYS_VIDEO (1<<9) |
argument applies to the video subsystem
| #define GF_ARG_SUBSYS_AUDIO (1<<10) |
argument applies to the audio subsystem
| #define GF_ARG_SUBSYS_TEXT (1<<11) |
argument applies to the font and text subsystem
| #define GF_ARG_SUBSYS_RMT (1<<12) |
argument applies to the rmtws subsystem
| #define GF_ARG_SUBSYS_HACKS (1<<13) |
argument belongs to hack tools, usually never used
| #define GF_ARG_BOOL 0 |
argument is a boolean
| #define GF_ARG_INT 1 |
argument is a 32 bit integer
| #define GF_ARG_DOUBLE 2 |
argument is a double
| #define GF_ARG_STRING 3 |
argument is a string
| #define GF_ARG_STRINGS 4 |
argument is a camma-separated list of strings
| #define GF_ARG_4CC 5 |
argument is a custom arg, default value contains the syntax of the argument
| #define GF_ARG_4CCS 6 |
argument is a custom arg, default value contains the syntax of the argument
| #define GF_ARG_CUSTOM 7 |
argument is a custom arg, default value contains the syntax of the argument
| #define GF_DEF_ARG | ( | _a, | |
| _b, | |||
| _c, | |||
| _d, | |||
| _e, | |||
| _f, | |||
| _g | |||
| ) | {_a, _b, _c, _d, _e, _f, _g} |
macros for defining a GF_GPACArg argument
| enum GF_SysArgMode |
| enum GF_SysPrintArgFlags |
flags for help formatting
| const GF_GPACArg * gf_sys_get_options | ( | ) |
gets the options defined for libgpac
Here is the caller graph for this function:| u32 gf_sys_is_gpac_arg | ( | const char * | arg_name | ) |
check if the given option is a libgpac argument
| arg_name | name of the argument |
Here is the caller graph for this function:| Bool gf_sys_set_cfg_option | ( | const char * | opt_string | ) |
parses config string and update config accordingly
| opt_string | section/key/val formatted as Section:Key (discard key), Section:Key=null (discard key), Section:Key=Val (set key) or Section=null (discard section) |
Here is the call graph for this function:
Here is the caller graph for this function:| void gf_sys_print_arg | ( | FILE * | helpout, |
| GF_SysPrintArgFlags | flags, | ||
| const GF_GPACArg * | arg, | ||
| const char * | arg_subsystem | ||
| ) |
prints a argument
| helpout | destination file - if NULL, uses stderr |
| flags | dump flags |
| arg | argument to print |
| arg_subsystem | name of subsystem of argument (core, gpac, filter name) for localization) |
Here is the call graph for this function:
Here is the caller graph for this function:| void gf_sys_print_core_help | ( | FILE * | helpout, |
| GF_SysPrintArgFlags | flags, | ||
| GF_SysArgMode | mode, | ||
| u32 | subsystem_flags | ||
| ) |
prints libgpac help for builton core options to stderr
| helpout | destination file - if NULL, uses stderr |
| flags | dump flags |
| mode | filtering mode based on argument type |
| subsystem_flags | filtering mode based on argument subsytem flags |
Here is the call graph for this function:
Here is the caller graph for this function:| const char * gf_sys_localized | ( | const char * | sec_name, |
| const char * | str_name, | ||
| const char * | def_val | ||
| ) |
gets localized version of string identified by module name and identifier.
| sec_name | name of the module to query, such as "gpac", "core", or filter name |
| str_name | name of string to query, such as acore/app option or a filter argument |
| def_val | default value to return if no locaization exists |
Here is the call graph for this function:
Here is the caller graph for this function:| void gf_sys_format_help | ( | FILE * | output, |
| GF_SysPrintArgFlags | flags, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
formats help to output
| output | output file to dump to |
| flags | help formatting flags |
| fmt | arguments of the format |
Here is the call graph for this function:
Here is the caller graph for this function:| Bool gf_sys_word_match | ( | const char * | orig, |
| const char * | dst | ||
| ) |
very basic word match, check the number of source characters in order in dest
| orig | word to test |
| dst | word to compare to |
Here is the call graph for this function:
Here is the caller graph for this function: