summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2014-07-16 16:42:42 +0200
committerClément Bœsch <clement@stupeflix.com>2014-08-18 14:13:57 +0200
commitb0352b1997a83f1b6b27919b94aab539f099b25b (patch)
tree5d7f4f64a17d8f0ec623eb101755f6e9fe036ff8 /libavcodec/avcodec.h
parentc5f43c8888400f5fab6f7d2ad27e961e8d2616a5 (diff)
avcodec: export motion vectors in frame side data on demand
The reasoning behind this addition is that various third party applications are interested in getting some motion information out of a video "for free" when it is available. It was considered to export other information as well (such as the intra information about the block, or the quantization) but the structure might have ended up into a half full-generic, half full of codec specific cruft. If more information is necessary, it should either be added in the "flags" field of the AVMotionVector structure, or in another side-data. This commit also includes an example exporting them in a CSV stream.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4f53359d65..d39e7f14b5 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -767,6 +767,7 @@ typedef struct RcOverride{
#define CODEC_FLAG2_CHUNKS 0x00008000 ///< Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
#define CODEC_FLAG2_SHOW_ALL 0x00400000 ///< Show all frames before the first keyframe
+#define CODEC_FLAG2_EXPORT_MVS 0x10000000 ///< Export motion vectors through frame side data
/* Unsupported options :
* Syntax Arithmetic coding (SAC)