aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/opt.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-02-27 17:30:40 -0300
committerJames Almer <jamrial@gmail.com>2024-05-04 21:17:40 -0300
commitd053290d8dd4dfddebc7285628360b67e185d63d (patch)
tree95242ccaaa0b116d373fdc7940c936e68396c450 /libavutil/opt.h
parent9902fc550aec7215723e441edbe02f4dc40e6089 (diff)
downloadffmpeg-d053290d8dd4dfddebc7285628360b67e185d63d.tar.gz
avutil/opt: add an unsigned option type
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r--libavutil/opt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/opt.h b/libavutil/opt.h
index 2fdfb65c23..2d76ec6105 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -260,6 +260,7 @@ enum AVOptionType{
AV_OPT_TYPE_COLOR,
AV_OPT_TYPE_BOOL,
AV_OPT_TYPE_CHLAYOUT,
+ AV_OPT_TYPE_UINT,
/**
* May be combined with another regular option type to declare an array
@@ -883,6 +884,7 @@ int av_opt_get_dict_val(void *obj, const char *name, int search_flags, AVDiction
*/
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_uint (void *obj, const AVOption *o, const char *val, unsigned *uint_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);