Go to the documentation of this file.
22 #ifndef CMDLINE_PARSER_PACKAGE
24 #define CMDLINE_PARSER_PACKAGE "janus-pp-rec"
27 #ifndef CMDLINE_PARSER_PACKAGE_NAME
29 #define CMDLINE_PARSER_PACKAGE_NAME "janus-pp-rec"
32 #ifndef CMDLINE_PARSER_VERSION
34 #define CMDLINE_PARSER_VERSION "0.9.3"
140 int override,
int initialize,
int check_required);
217 const char *prog_name);
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
Definition: pp-cmdline.c:398
unsigned int help_given
Whether help was given.
Definition: pp-cmdline.h:79
int debug_timestamps_flag
Enable debug/logging timestamps (default=off).
Definition: pp-cmdline.h:66
char * audioskew_orig
Time threshold to trigger an audio skew compensation, disabled if 0 (default=0) original value given ...
Definition: pp-cmdline.h:76
const char * videoorient_ext_help
ID of the video-orientation RTP extension (default=none) help description.
Definition: pp-cmdline.h:62
const char * header_help
Only parse .mjr header help description.
Definition: pp-cmdline.h:45
const char * audiolevel_ext_help
ID of the audio-levels RTP extension (default=none) help description.
Definition: pp-cmdline.h:59
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
Definition: pp-cmdline.c:414
char * ignore_first_orig
Number of first packets to ignore when processing, e.g., in case they're cause of issues (default=0) ...
Definition: pp-cmdline.h:55
char * videoorient_ext_orig
ID of the video-orientation RTP extension (default=none) original value given at command line.
Definition: pp-cmdline.h:61
int videoorient_ext_arg
ID of the video-orientation RTP extension (default=none).
Definition: pp-cmdline.h:60
const char * debug_level_help
Debug/logging level (0=disable debugging, 7=maximum debug level; default=4) help description.
Definition: pp-cmdline.h:65
char * postreset_trigger_orig
Number of packets needed to detect a timestamp reset (default=200) original value given at command li...
Definition: pp-cmdline.h:52
const char * faststart_help
For mp4 files write the MOOV atom at the head of the file help description.
Definition: pp-cmdline.h:74
struct cmdline_parser_params * cmdline_parser_params_create(void)
Definition: pp-cmdline.c:208
char * metadata_orig
Save this metadata string in the target file original value given at command line.
Definition: pp-cmdline.h:49
unsigned int header_given
Whether header was given.
Definition: pp-cmdline.h:82
const char * parse_help
Only parse and re-order packets help description.
Definition: pp-cmdline.h:47
unsigned int parse_given
Whether parse was given.
Definition: pp-cmdline.h:83
unsigned int audioskew_given
Whether audioskew was given.
Definition: pp-cmdline.h:94
char * format_orig
Specifies the output format (overrides the format from the destination) original value given at comma...
Definition: pp-cmdline.h:71
unsigned int version_given
Whether version was given.
Definition: pp-cmdline.h:80
const char * disable_colors_help
Disable color in the logging help description.
Definition: pp-cmdline.h:69
void cmdline_parser_print_help(void)
Definition: pp-cmdline.c:178
const char * json_help
Only print JSON header help description.
Definition: pp-cmdline.h:43
int header_flag
Only parse .mjr header (default=off).
Definition: pp-cmdline.h:44
int faststart_flag
For mp4 files write the MOOV atom at the head of the file (default=off).
Definition: pp-cmdline.h:73
const char * debug_timestamps_help
Enable debug/logging timestamps help description.
Definition: pp-cmdline.h:67
const char * postreset_trigger_help
Number of packets needed to detect a timestamp reset (default=200) help description.
Definition: pp-cmdline.h:53
unsigned int disable_colors_given
Whether disable-colors was given.
Definition: pp-cmdline.h:91
char * metadata_arg
Save this metadata string in the target file.
Definition: pp-cmdline.h:48
const char * metadata_help
Save this metadata string in the target file help description.
Definition: pp-cmdline.h:50
const char * gengetopt_args_info_help[]
all the lines making the help output
Definition: pp-cmdline.c:36
int ignore_first_arg
Number of first packets to ignore when processing, e.g., in case they're cause of issues (default=0).
Definition: pp-cmdline.h:54
unsigned int postreset_trigger_given
Whether postreset-trigger was given.
Definition: pp-cmdline.h:85
const char * audioskew_help
Time threshold to trigger an audio skew compensation, disabled if 0 (default=0) help description.
Definition: pp-cmdline.h:77
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:302
unsigned int faststart_given
Whether faststart was given.
Definition: pp-cmdline.h:93
unsigned int debug_level_given
Whether debug-level was given.
Definition: pp-cmdline.h:89
const char * ignore_first_help
Number of first packets to ignore when processing, e.g., in case they're cause of issues (default=0) ...
Definition: pp-cmdline.h:56
int parse_flag
Only parse and re-order packets (default=off).
Definition: pp-cmdline.h:46
int json_flag
Only print JSON header (default=off).
Definition: pp-cmdline.h:42
int audioskew_arg
Time threshold to trigger an audio skew compensation, disabled if 0 (default=0).
Definition: pp-cmdline.h:75
const char * cmdline_parser_format_values[]
Possible values for format.
Definition: pp-cmdline.c:72
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:371
unsigned int debug_timestamps_given
Whether debug-timestamps was given.
Definition: pp-cmdline.h:90
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
Definition: pp-cmdline.h:104
void cmdline_parser_print_version(void)
Definition: pp-cmdline.c:146
const char * format_help
Specifies the output format (overrides the format from the destination) help description.
Definition: pp-cmdline.h:72
unsigned int videoorient_ext_given
Whether videoorient-ext was given.
Definition: pp-cmdline.h:88
void cmdline_parser_params_init(struct cmdline_parser_params *params)
Definition: pp-cmdline.c:195
const char * version_help
Print version and exit help description.
Definition: pp-cmdline.h:41
int postreset_trigger_arg
Number of packets needed to detect a timestamp reset (default=200).
Definition: pp-cmdline.h:51
char * format_arg
Specifies the output format (overrides the format from the destination).
Definition: pp-cmdline.h:70
int audiolevel_ext_arg
ID of the audio-levels RTP extension (default=none).
Definition: pp-cmdline.h:57
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
Definition: pp-cmdline.h:105
unsigned int metadata_given
Whether metadata was given.
Definition: pp-cmdline.h:84
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:351
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:392
const char * gengetopt_args_info_usage
the usage string of the program
Definition: pp-cmdline.c:30
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Definition: pp-cmdline.c:437
char * audiolevel_ext_orig
ID of the audio-levels RTP extension (default=none) original value given at command line.
Definition: pp-cmdline.h:58
Where the command line options are stored.
Definition: pp-cmdline.h:38
Configuration files parsing (headers)
const char * gengetopt_args_info_description
the description string of the program
Definition: pp-cmdline.c:34
unsigned int json_given
Whether json was given.
Definition: pp-cmdline.h:81
int disable_colors_flag
Disable color in the logging (default=off).
Definition: pp-cmdline.h:68
The additional parameters to pass to parser functions.
Definition: pp-cmdline.h:99
const char * help_help
Print help and exit help description.
Definition: pp-cmdline.h:40
unsigned int ignore_first_given
Whether ignore-first was given.
Definition: pp-cmdline.h:86
unsigned int format_given
Whether format was given.
Definition: pp-cmdline.h:92
const char * gengetopt_args_info_purpose
the purpose string of the program
Definition: pp-cmdline.c:28
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
Definition: pp-cmdline.h:102
int debug_level_arg
Debug/logging level (0=disable debugging, 7=maximum debug level; default=4).
Definition: pp-cmdline.h:63
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Definition: pp-cmdline.c:187
int check_required
whether to check that all required options were provided (default 1)
Definition: pp-cmdline.h:103
unsigned int audiolevel_ext_given
Whether audiolevel-ext was given.
Definition: pp-cmdline.h:87
char * debug_level_orig
Debug/logging level (0=disable debugging, 7=maximum debug level; default=4) original value given at c...
Definition: pp-cmdline.h:64