From c3ecd968f0e78da6e77f0c06c2f785b266d83cf1 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 15 Feb 2014 08:24:23 +0100 Subject: AVOptions: add flags for read/read-only options --- libavutil/opt.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavutil/opt.h') diff --git a/libavutil/opt.h b/libavutil/opt.h index 2568a7103e..b90feaad8f 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -268,6 +268,15 @@ typedef struct AVOption { #define AV_OPT_FLAG_AUDIO_PARAM 8 #define AV_OPT_FLAG_VIDEO_PARAM 16 #define AV_OPT_FLAG_SUBTITLE_PARAM 32 +/** + * The option is inteded for exporting values to the caller. + */ +#define AV_OPT_FLAG_EXPORT 64 +/** + * The option may not be set through the AVOptions API, only read. + * This flag only makes sense when AV_OPT_FLAG_EXPORT is also set. + */ +#define AV_OPT_FLAG_READONLY 128 //FIXME think about enc-audio, ... style flags /** -- cgit v1.2.3