aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-02-02 18:44:41 -0300
committerJames Almer <jamrial@gmail.com>2020-02-22 23:19:07 -0300
commitc6666894914ba8be1193ed81e9b6b737c68c29b6 (patch)
tree5ade4736c2bf0dd32eed59156a78a162c05522fa /libavcodec/avcodec.h
parent5dda6c173f8c8d169f934731e31d34c1fe5da75a (diff)
downloadffmpeg-c6666894914ba8be1193ed81e9b6b737c68c29b6.tar.gz
avcodec: add an AVCodecContext field to signal types of packet, frame, and coded stream side data to export
Add an initial mvs flag to is, analog to the export_mvs flags2 one. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index fc6b71ce90..ba0fdd3493 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1103,6 +1103,14 @@ typedef struct RcOverride{
*/
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE (1 << 20)
+/* Exported side data.
+ These flags can be passed in AVCodecContext.export_side_data before initialization.
+*/
+/**
+ * Export motion vectors through frame side data
+ */
+#define AV_CODEC_EXPORT_DATA_MVS (1 << 0)
+
/**
* Pan Scan area.
* This specifies the area which should be displayed.
@@ -3400,6 +3408,16 @@ typedef struct AVCodecContext {
* - encoding: set by user
*/
int64_t max_samples;
+
+ /**
+ * Bit set of AV_CODEC_EXPORT_DATA_* flags, which affects the kind of
+ * metadata exported in frame, packet, or coded stream side data by
+ * decoders and encoders.
+ *
+ * - decoding: set by user
+ * - encoding: set by user
+ */
+ int export_side_data;
} AVCodecContext;
#if FF_API_CODEC_GET_SET