34 fprintf(stderr,
"Usage: enum_options type\n" 35 "type: format codec\n");
41 printf(
"@item -%s @var{", o->
name);
43 case FF_OPT_TYPE_BINARY: printf(
"hexadecimal string");
break;
44 case FF_OPT_TYPE_STRING: printf(
"string");
break;
46 case FF_OPT_TYPE_INT64: printf(
"integer");
break;
47 case FF_OPT_TYPE_FLOAT:
48 case FF_OPT_TYPE_DOUBLE: printf(
"float");
break;
49 case FF_OPT_TYPE_RATIONAL: printf(
"rational number");
break;
50 case FF_OPT_TYPE_FLAGS: printf(
"flags");
break;
51 default: printf(
"value");
break;
65 printf(
"%s\n", o->
help);
69 printf(
"\nPossible values:\n@table @samp\n");
71 while ((u = av_next_option(&
class, u)))
73 printf(
"@item %s\n%s\n", u->
name, u->
help ? u->
help :
"");
74 printf(
"@end table\n");
82 printf(
"@table @option\n");
83 while ((o = av_next_option(&
class, o)))
84 if (o->
type != FF_OPT_TYPE_CONST)
86 printf(
"@end table\n");
94 printf(
"@section Generic format AVOptions\n");
97 printf(
"@section Format-specific AVOptions\n");
98 while ((iformat = av_iformat_next(iformat))) {
104 while ((oformat = av_oformat_next(oformat))) {
116 printf(
"@section Generic codec AVOptions\n");
119 printf(
"@section Codec-specific AVOptions\n");
128 int main(
int argc,
char **argv)
133 if (!strcmp(argv[1],
"format"))
135 else if (!strcmp(argv[1],
"codec"))
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...
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)
#define u(width, name, range_min, range_max)
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)
static void show_opts(const AVClass *class)
const char * unit
The logical unit to which the option belongs.
static AVInputFormat * iformat
Libavcodec external API header.
Describe the class of an AVClass context structure.
const AVClass * priv_class
AVClass for the private context.
static void show_codec_opts(void)
static void print_usage(void)