FFmpeg 7.0.2
Loading...
Searching...
No Matches
Data Fields
AVOption Struct Reference

AVOption. More...

#include <libavutil/opt.h>

Data Fields

const char * name
 
const char * help
 short English help text
 
int offset
 Native access only.
 
enum AVOptionType type
 
union { 
 
   int64_t   i64 
 
   double   dbl 
 
   const char *   str 
 
   AVRational   q 
 
   const AVOptionArrayDef *   arr 
 Used for AV_OPT_TYPE_FLAG_ARRAY options. More...
 
default_val 
 Native access only, except when documented otherwise.
 
double min
 minimum valid value for the option
 
double max
 maximum valid value for the option
 
int flags
 A combination of AV_OPT_FLAG_*.
 
const char * unit
 The logical unit to which the option belongs.
 

Detailed Description

AVOption.

Definition at line 346 of file opt.h.

Field Documentation

◆ name

const char* AVOption::name

Definition at line 347 of file opt.h.

◆ help

const char* AVOption::help

short English help text

Todo:
What about other languages?

Definition at line 353 of file opt.h.

◆ offset

int AVOption::offset

Native access only.

The offset relative to the context structure where the option value is stored. It should be 0 for named constants.

Definition at line 361 of file opt.h.

◆ type

enum AVOptionType AVOption::type

Definition at line 362 of file opt.h.

◆ i64

int64_t AVOption::i64

Definition at line 369 of file opt.h.

◆ dbl

double AVOption::dbl

Definition at line 370 of file opt.h.

◆ str

const char* AVOption::str

Definition at line 371 of file opt.h.

◆ q

AVRational AVOption::q

Definition at line 373 of file opt.h.

◆ arr

const AVOptionArrayDef* AVOption::arr

Used for AV_OPT_TYPE_FLAG_ARRAY options.

May be NULL.

Foreign access to some members allowed, as noted in AVOptionArrayDef documentation.

Definition at line 381 of file opt.h.

◆ [union]

union { ... } AVOption::default_val

Native access only, except when documented otherwise.

the default value for scalar options

◆ min

double AVOption::min

minimum valid value for the option

Definition at line 383 of file opt.h.

◆ max

double AVOption::max

maximum valid value for the option

Definition at line 384 of file opt.h.

◆ flags

int AVOption::flags

A combination of AV_OPT_FLAG_*.

Definition at line 389 of file opt.h.

◆ unit

const char* AVOption::unit

The logical unit to which the option belongs.

Non-constant options and corresponding named constants share the same unit. May be NULL.

Definition at line 396 of file opt.h.


The documentation for this struct was generated from the following file: