X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fopt.h;h=b79f462660362909fa0f4f2d80dba3ab203a062d;hb=55bf7fb6130a2a13c30498a787d6dfead39ecceb;hp=ff65456d8530c4bfb6d0bc070f481c5891e23000;hpb=f8a32f450ade2449873c57e73ad04622c68af136;p=ffmpeg diff --git a/libavcodec/opt.h b/libavcodec/opt.h index ff65456d853..b79f4626603 100644 --- a/libavcodec/opt.h +++ b/libavcodec/opt.h @@ -27,6 +27,8 @@ * AVOptions */ +#include "rational.h" + enum AVOptionType{ FF_OPT_TYPE_FLAGS, FF_OPT_TYPE_INT, @@ -46,7 +48,7 @@ typedef struct AVOption { /** * short English text help. - * @fixme what about other languages + * @todo what about other languages */ const char *help; int offset; ///< offset to context structure where the parsed value should be stored @@ -68,6 +70,7 @@ typedef struct AVOption { } AVOption; +const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags); const AVOption *av_set_string(void *obj, const char *name, const char *val); const AVOption *av_set_double(void *obj, const char *name, double n); const AVOption *av_set_q(void *obj, const char *name, AVRational n); @@ -79,5 +82,6 @@ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, c const AVOption *av_next_option(void *obj, const AVOption *last); int av_opt_show(void *obj, void *av_log_obj); void av_opt_set_defaults(void *s); +void av_opt_set_defaults2(void *s, int mask, int flags); #endif