37 fprintf(stderr,
"Usage: enum_options type\n" 38 "type: format codec\n");
47 printf(
"@item -%s%s @var{", o->
name, per_stream ?
"[:stream_specifier]" :
"");
57 default: printf(
"value");
break;
73 printf(
"%s\n", o->
help);
77 printf(
"\nPossible values:\n@table @samp\n");
79 for (u = opts; u->
name; u++) {
81 printf(
"@item %s\n%s\n", u->
name, u->
help ? u->
help :
"");
83 printf(
"@end table\n");
91 printf(
"@table @option\n");
92 for (o = opts; o->
name; o++) {
96 printf(
"@end table\n");
101 printf(
"@section Format AVOptions\n");
107 printf(
"@section Codec AVOptions\n");
111 int main(
int argc,
char **argv)
116 if (!strcmp(argv[1],
"format"))
118 else if (!strcmp(argv[1],
"codec"))
static void show_codec_opts(void)
#define AV_OPT_FLAG_SUBTITLE_PARAM
#define AV_OPT_FLAG_AUDIO_PARAM
static void print_usage(void)
static const AVOption avcodec_options[]
const char * help
short English help text
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
int main(int argc, char **argv)
const char * unit
The logical unit to which the option belongs.
offset must point to a pointer immediately followed by an int for the length
Libavcodec external API header.
static void show_format_opts(void)
static void show_opts(const AVOption *opts, int per_stream)
#define AV_OPT_FLAG_VIDEO_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
static void print_option(const AVOption *opts, const AVOption *o, int per_stream)