FFmpeg
Data Fields
AVOptionArrayDef Struct Reference

May be set as default_val for AV_OPT_TYPE_FLAG_ARRAY options. More...

#include <opt.h>

Data Fields

const char * def
 Native access only. More...
 
unsigned size_min
 Minimum number of elements in the array. More...
 
unsigned size_max
 Maximum number of elements in the array, 0 when unlimited. More...
 
char sep
 Separator between array elements in string representations of this option, used by av_opt_set() and av_opt_get(). More...
 

Detailed Description

May be set as default_val for AV_OPT_TYPE_FLAG_ARRAY options.

Definition at line 312 of file opt.h.

Field Documentation

◆ def

const char* AVOptionArrayDef::def

Native access only.

Default value of the option, as would be serialized by av_opt_get() (i.e. using the value of sep as the separator).

Definition at line 319 of file opt.h.

Referenced by av_opt_is_set_to_default(), av_opt_set_defaults2(), and log_default().

◆ size_min

unsigned AVOptionArrayDef::size_min

Minimum number of elements in the array.

When this field is non-zero, def must be non-NULL and contain at least this number of elements.

Definition at line 325 of file opt.h.

Referenced by opt_set_array().

◆ size_max

unsigned AVOptionArrayDef::size_max

Maximum number of elements in the array, 0 when unlimited.

Definition at line 329 of file opt.h.

Referenced by opt_set_array().

◆ sep

char AVOptionArrayDef::sep

Separator between array elements in string representations of this option, used by av_opt_set() and av_opt_get().

It must be a printable ASCII character, excluding alphanumeric and the backslash. A comma is used when sep=0.

The separator and the backslash must be backslash-escaped in order to appear in string representations of the option value.

Definition at line 340 of file opt.h.


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