34 fprintf(stderr,
"Usage: enum_options type\n"
35 "type: format codec\n");
41 printf(
"@item -%s @var{", o->
name);
51 default: printf(
"value");
break;
65 printf(
"%s\n", o->
help);
69 printf(
"\nPossible values:\n@table @samp\n");
73 printf(
"@item %s\n%s\n",
u->name,
u->help ?
u->help :
"");
74 printf(
"@end table\n");
82 printf(
"@table @option\n");
86 printf(
"@end table\n");
93 void *iformat_opaque =
NULL;
94 void *oformat_opaque =
NULL;
96 printf(
"@section Generic format AVOptions\n");
99 printf(
"@section Format-specific AVOptions\n");
119 printf(
"@section Generic codec AVOptions\n");
122 printf(
"@section Codec-specific AVOptions\n");
126 printf(
"@subsection %s AVOptions\n",
c->priv_class->class_name);
131 int main(
int argc,
char **argv)
136 if (!strcmp(argv[1],
"format"))
138 else if (!strcmp(argv[1],
"codec"))
Libavcodec external API header.
#define u(width, name, range_min, range_max)
static void print_usage(void)
int main(int argc, char **argv)
static void show_opts(const AVClass *class)
static void show_format_opts(void)
static void show_codec_opts(void)
static void print_option(const AVClass *class, const AVOption *o)
static AVInputFormat * iformat
const AVOption * av_opt_next(const void *obj, const AVOption *last)
Iterate over all AVOptions belonging to obj.
@ AV_OPT_TYPE_BINARY
offset must point to a pointer immediately followed by an int for the length
const AVCodec * av_codec_iterate(void **opaque)
Iterate over all registered codecs.
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
const AVOutputFormat * av_muxer_iterate(void **opaque)
Iterate over all registered muxers.
const AVClass * avformat_get_class(void)
Get the AVClass for AVFormatContext.
const AVInputFormat * av_demuxer_iterate(void **opaque)
Iterate over all registered demuxers.
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Describe the class of an AVClass context structure.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
const char * unit
The logical unit to which the option belongs.
const char * help
short English help text