cmdutils.h File Reference

#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 Documentation

#define HAS_ARG   0x0001

Definition at line 30 of file cmdutils.h.

Referenced by parse_options(), and show_help_options().

#define OPT_AUDIO   0x0020

Definition at line 35 of file cmdutils.h.

Referenced by show_help().

#define OPT_BOOL   0x0002

Definition at line 31 of file cmdutils.h.

Referenced by parse_options().

#define OPT_EXPERT   0x0004

Definition at line 32 of file cmdutils.h.

Referenced by show_help().

#define OPT_FLOAT   0x0100

Definition at line 38 of file cmdutils.h.

Referenced by parse_options().

#define OPT_FUNC2   0x0400

Definition at line 40 of file cmdutils.h.

Referenced by parse_options().

#define OPT_GRAB   0x0040

Definition at line 36 of file cmdutils.h.

Referenced by show_help().

#define OPT_INT   0x0080

Definition at line 37 of file cmdutils.h.

Referenced by parse_options().

#define OPT_INT64   0x0800

Definition at line 41 of file cmdutils.h.

Referenced by parse_options().

#define OPT_STRING   0x0008

Definition at line 33 of file cmdutils.h.

Referenced by parse_options().

#define OPT_SUBTITLE   0x0200

Definition at line 39 of file cmdutils.h.

Referenced by show_help().

#define OPT_VIDEO   0x0010

Definition at line 34 of file cmdutils.h.

Referenced by show_help().


Function Documentation

void parse_options ( int  argc,
char **  argv,
const OptionDef options,
void(*)(const char *)  parse_arg_function 
)

Parses the command line arguments.

Parameters:
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.

Parameters:
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 
)

Definition at line 35 of file cmdutils.c.

Referenced by show_help().

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.

Parameters:
program_name Name of the program.

Definition at line 175 of file cmdutils.c.

Referenced by opt_show_version().


Generated on Thu Apr 2 07:15:40 2009 for ffmpeg by  doxygen 1.5.6