World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Evaluating option strings

This group of functions can be used to evaluate option strings and get numbers out of them. They do the same thing as av_opt_set(), except the result is written into the caller-supplied pointer. Подробнее...

+ Граф связей класса Evaluating option strings:

Функции

int av_opt_eval_flags (void *obj, const AVOption *o, const char *val, int *flags_out)
 
int av_opt_eval_int (void *obj, const AVOption *o, const char *val, int *int_out)
 
int av_opt_eval_int64 (void *obj, const AVOption *o, const char *val, int64_t *int64_out)
 
int av_opt_eval_float (void *obj, const AVOption *o, const char *val, float *float_out)
 
int av_opt_eval_double (void *obj, const AVOption *o, const char *val, double *double_out)
 
int av_opt_eval_q (void *obj, const AVOption *o, const char *val, AVRational *q_out)
 

Подробное описание

This group of functions can be used to evaluate option strings and get numbers out of them. They do the same thing as av_opt_set(), except the result is written into the caller-supplied pointer.

Аргументы
obja struct whose first element is a pointer to AVClass.
oan option for which the string is to be evaluated.
valstring to be evaluated.
*_outvalue of the string will be written here.
Возвращает
0 on success, a negative number on failure.

Функции

◆ av_opt_eval_flags()

int av_opt_eval_flags ( void obj,
const AVOption o,
const char *  val,
int *  flags_out 
)

◆ av_opt_eval_int()

int av_opt_eval_int ( void obj,
const AVOption o,
const char *  val,
int *  int_out 
)

◆ av_opt_eval_int64()

int av_opt_eval_int64 ( void obj,
const AVOption o,
const char *  val,
int64_t int64_out 
)

◆ av_opt_eval_float()

int av_opt_eval_float ( void obj,
const AVOption o,
const char *  val,
float *  float_out 
)

◆ av_opt_eval_double()

int av_opt_eval_double ( void obj,
const AVOption o,
const char *  val,
double *  double_out 
)

◆ av_opt_eval_q()

int av_opt_eval_q ( void obj,
const AVOption o,
const char *  val,
AVRational q_out 
)