Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-02-15 11:24:23 +0400
committerAnton Khirnov <anton@khirnov.net>2014-02-20 00:52:17 +0400
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
/**