summaryrefslogtreecommitdiff
path: root/libavutil/opt.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-02-15 08:24:23 +0100
committerAnton Khirnov <anton@khirnov.net>2014-02-19 21:52:17 +0100
commitc3ecd968f0e78da6e77f0c06c2f785b266d83cf1 (patch)
tree88a439d1877ec9f8e3736c824d00f37bd9a9028d /libavutil/opt.h
parent6bb8720f00e2e6209665f819fb351fd42b82d5d0 (diff)
AVOptions: add flags for read/read-only options
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r--libavutil/opt.h9
1 files changed, 9 insertions, 0 deletions
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
/**