Go to the documentation of this file.
34 fprintf(stderr,
"Usage: enum_options type\n"
35 "type: format codec\n");
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;
69 printf(
"\nPossible values:\n@table @samp\n");
71 while ((
u = av_next_option(&
class,
u)))
72 if (
u->type == FF_OPT_TYPE_CONST &&
u->unit && !strcmp(
u->unit, o->
unit))
73 printf(
"@item %s\n%s\n",
u->name,
u->help ?
u->help :
"");
82 printf(
"@table @option\n");
83 while ((o = av_next_option(&
class, o)))
84 if (o->
type != FF_OPT_TYPE_CONST)
94 printf(
"@section Generic format AVOptions\n");
97 printf(
"@section Format-specific AVOptions\n");
104 while ((oformat = av_oformat_next(oformat))) {
116 printf(
"@section Generic codec AVOptions\n");
119 printf(
"@section Codec-specific AVOptions\n");
123 printf(
"@subsection %s AVOptions\n",
c->priv_class->class_name);
128 int main(
int argc,
char **argv)
133 if (!strcmp(argv[1],
"format"))
135 else if (!strcmp(argv[1],
"codec"))
#define u(width, name, range_min, range_max)
static void print_option(const AVClass *class, const AVOption *o)
const AVClass * avformat_get_class(void)
Get the AVClass for AVFormatContext.
static void print_usage(void)
const char * help
short English help text
int main(int argc, char **argv)
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
static void show_format_opts(void)
Describe the class of an AVClass context structure.
const AVClass * avcodec_get_class(void)
Get the AVClass for AVCodecContext.
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
static void show_opts(const AVClass *class)
printf("static const uint8_t my_array[100] = {\n")
static void show_codec_opts(void)
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 char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static AVInputFormat * iformat
const char * unit
The logical unit to which the option belongs.