#include <inttypes.h>Go to the source code of this file.
Data Structures | |
| struct | OptionDef |
Defines | |
| #define | HAS_ARG 0x0001 |
| #define | OPT_BOOL 0x0002 |
| #define | OPT_EXPERT 0x0004 |
| #define | OPT_STRING 0x0008 |
| #define | OPT_VIDEO 0x0010 |
| #define | OPT_AUDIO 0x0020 |
| #define | OPT_GRAB 0x0040 |
| #define | OPT_INT 0x0080 |
| #define | OPT_FLOAT 0x0100 |
| #define | OPT_SUBTITLE 0x0200 |
| #define | OPT_FUNC2 0x0400 |
| #define | OPT_INT64 0x0800 |
Functions | |
| void | show_help_options (const OptionDef *options, const char *msg, int mask, int value) |
| void | parse_options (int argc, char **argv, const OptionDef *options, void(*parse_arg_function)(const char *)) |
| Parses the command line arguments. | |
| void | print_error (const char *filename, int err) |
| void | show_banner (const char *program_name, int program_birth_year) |
| Prints the banner of the program on stderr. | |
| void | show_version (const char *program_name) |
| Prints the version of the program on stdout. | |
| void | show_license (void) |
| Prints on stdout the license of the program, which depends on the license of the compiled libav* libraries. | |
| #define HAS_ARG 0x0001 |
| #define OPT_AUDIO 0x0020 |
| #define OPT_BOOL 0x0002 |
| #define OPT_EXPERT 0x0004 |
| #define OPT_FLOAT 0x0100 |
| #define OPT_FUNC2 0x0400 |
| #define OPT_GRAB 0x0040 |
| #define OPT_INT 0x0080 |
| #define OPT_INT64 0x0800 |
| #define OPT_STRING 0x0008 |
| #define OPT_SUBTITLE 0x0200 |
| #define OPT_VIDEO 0x0010 |
| void parse_options | ( | int | argc, | |
| char ** | argv, | |||
| const OptionDef * | options, | |||
| void(*)(const char *) | parse_arg_function | |||
| ) |
Parses the command line arguments.
| options | Array with the definitions required to interpret every option of the form: -<option_name> [<argument>] | |
| parse_arg_function | Name of the function called to process every argument without a leading option name flag. NULL if such arguments do not have to be processed. |
Definition at line 67 of file cmdutils.c.
Referenced by main().
| void print_error | ( | const char * | filename, | |
| int | err | |||
| ) |
Definition at line 125 of file cmdutils.c.
Referenced by decode_thread(), opt_input_file(), opt_output_file(), and write_frame().
| void show_banner | ( | const char * | program_name, | |
| int | program_birth_year | |||
| ) |
Prints the banner of the program on stderr.
The banner message depends on the current versions of the repository and of the libav* libraries.
| program_name | Name of the program. | |
| program_birth_year | Year of birth of the program. |
Definition at line 158 of file cmdutils.c.
Referenced by main().
| void show_help_options | ( | const OptionDef * | options, | |
| const char * | msg, | |||
| int | mask, | |||
| int | value | |||
| ) |
| void show_license | ( | void | ) |
Prints on stdout the license of the program, which depends on the license of the compiled libav* libraries.
Definition at line 185 of file cmdutils.c.
Referenced by main(), and opt_show_license().
| void show_version | ( | const char * | program_name | ) |
Prints the version of the program on stdout.
The version message depends on the current versions of the repository and of the libav* libraries.
| program_name | Name of the program. |
Definition at line 175 of file cmdutils.c.
Referenced by opt_show_version().
1.5.6