[FFmpeg-cvslog] avcodec/avcodec.h: move debug_mv to the end of the struct with the next ABI bump
Michael Niedermayer
git at videolan.org
Fri Nov 1 18:47:57 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 1 18:38:51 2013 +0100| [f49e6359b694023db99c5fa2805cdb6a5a11709e] | committer: Michael Niedermayer
avcodec/avcodec.h: move debug_mv to the end of the struct with the next ABI bump
This maintains ABI compatibility
also add a note that debug_mv must be accessed through AVOptions (for ABI)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f49e6359b694023db99c5fa2805cdb6a5a11709e
---
libavcodec/avcodec.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 5dafd39..7fa0680 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2469,6 +2469,7 @@ typedef struct AVCodecContext {
#if FF_API_DEBUG_MV
/**
* debug
+ * Code outside libavcodec should access this field using AVOptions
* - encoding: Set by user.
* - decoding: Set by user.
*/
@@ -2907,6 +2908,19 @@ typedef struct AVCodecContext {
* - encoding: set by libavcodec
*/
int seek_preroll;
+
+#if !FF_API_DEBUG_MV
+ /**
+ * debug motion vectors
+ * Code outside libavcodec should access this field using AVOptions
+ * - encoding: Set by user.
+ * - decoding: Set by user.
+ */
+ int debug_mv;
+#define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames
+#define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames
+#define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
+#endif
} AVCodecContext;
AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx);
More information about the ffmpeg-cvslog
mailing list