diff options
author | Clément Bœsch <clement@stupeflix.com> | 2014-07-16 16:42:42 +0200 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2014-08-18 14:13:57 +0200 |
commit | b0352b1997a83f1b6b27919b94aab539f099b25b (patch) | |
tree | 5d7f4f64a17d8f0ec623eb101755f6e9fe036ff8 /libavutil/frame.c | |
parent | c5f43c8888400f5fab6f7d2ad27e961e8d2616a5 (diff) | |
download | ffmpeg-b0352b1997a83f1b6b27919b94aab539f099b25b.tar.gz |
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 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 12eac5540b..4dc8e4ea5d 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -683,6 +683,7 @@ const char *av_frame_side_data_name(enum AVFrameSideDataType type) case AV_FRAME_DATA_DOWNMIX_INFO: return "Metadata relevant to a downmix procedure"; case AV_FRAME_DATA_REPLAYGAIN: return "AVReplayGain"; case AV_FRAME_DATA_DISPLAYMATRIX: return "3x3 displaymatrix"; + case AV_FRAME_DATA_MOTION_VECTORS: return "Motion vectors"; } return NULL; } |