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");
94 printf(
"@section Generic format AVOptions\n");
97 printf(
"@section Format-specific AVOptions\n");
116 printf(
"@section Generic codec AVOptions\n");
119 printf(
"@section Codec-specific AVOptions\n");
128 int main(
int argc,
char **argv)
135 if (!strcmp(argv[1],
"format"))
137 else if (!strcmp(argv[1],
"codec"))
offset must point to a pointer immediately followed by an int for the length
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static void print_option(const AVClass *class, const AVOption *o)
const char * help
short English help text
static void show_format_opts(void)
const AVClass * avformat_get_class(void)
Get the AVClass for AVFormatContext.
#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)
AVCodec * av_codec_next(const AVCodec *c)
If c is NULL, returns the first registered codec, if c is non-NULL, returns the next registered codec...
static void show_opts(const AVClass *class)
Libavcodec external API header.
const char * unit
The logical unit to which the option belongs.
AVOutputFormat * av_oformat_next(const AVOutputFormat *f)
If f is NULL, returns the first registered output format, if f is non-NULL, returns the next register...
static AVInputFormat * iformat
Describe the class of an AVClass context structure.
const AVOption * av_next_option(FF_CONST_AVUTIL55 void *obj, const AVOption *last)
const AVClass * priv_class
AVClass for the private context.
static void show_codec_opts(void)
void av_register_all(void)
Initialize libavformat and register all the muxers, demuxers and protocols.
static void print_usage(void)
AVInputFormat * av_iformat_next(const AVInputFormat *f)
If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registere...