#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "avformat.h"
#include "avdevice.h"
#include "cmdutils.h"
#include "avstring.h"
#include "version.h"
#include "config.h"
Go to the source code of this file.
Functions | |
void | show_help_options (const OptionDef *options, const char *msg, int mask, int value) |
static const OptionDef * | find_option (const OptionDef *po, const char *name) |
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. |
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().