summaryrefslogtreecommitdiff
path: root/libavutil/opt.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-20 02:01:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-20 02:01:13 +0100
commit6a24d77929e0d5425c79a081034719ac68199602 (patch)
tree5300b75b67ae1494e494333730e4234a16562839 /libavutil/opt.h
parentf4c8d002231afbc181e97c512e459ec6860f7098 (diff)
parentc3ecd968f0e78da6e77f0c06c2f785b266d83cf1 (diff)
downloadffmpeg-6a24d77929e0d5425c79a081034719ac68199602.tar.gz
Merge commit 'c3ecd968f0e78da6e77f0c06c2f785b266d83cf1'
* commit 'c3ecd968f0e78da6e77f0c06c2f785b266d83cf1': AVOptions: add flags for read/read-only options Conflicts: libavutil/opt.c libavutil/opt.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 56b0e0f6ba..cd1b18e4c0 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -288,6 +288,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
#define AV_OPT_FLAG_FILTERING_PARAM (1<<16) ///< a generic parameter which can be set by the user for filtering
//FIXME think about enc-audio, ... style flags