Go to the documentation of this file.
34 fprintf(stderr,
"Usage: enum_options type\n"
35 "type: format codec\n");
51 default:
printf(
"value");
break;
69 printf(
"\nPossible values:\n@table @samp\n");
73 printf(
"@item %s\n%s\n",
u->name,
u->help ?
u->help :
"");
82 printf(
"@table @option\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"))
#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 flags
A combination of AV_OPT_FLAG_*.
@ AV_OPT_TYPE_RATIONAL
Underlying C type is AVRational.
@ AV_OPT_TYPE_BINARY
Underlying C type is a uint8_t* that is either NULL or points to an array allocated with the av_mallo...
int main(int argc, char **argv)
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
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.
#define AV_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
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)
const AVInputFormat * av_demuxer_iterate(void **opaque)
Iterate over all registered demuxers.
printf("static const uint8_t my_array[100] = {\n")
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
static const AVInputFormat * iformat
const AVOption * av_opt_next(const void *obj, const AVOption *last)
Iterate over all AVOptions belonging to obj.
static void show_codec_opts(void)
const AVCodec * av_codec_iterate(void **opaque)
Iterate over all registered codecs.
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 AVOutputFormat * av_muxer_iterate(void **opaque)
Iterate over all registered muxers.
@ AV_OPT_TYPE_INT
Underlying C type is int.
const char * unit
The logical unit to which the option belongs.
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.