]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: deprecate AVCodecContext.debug_mv
authorJames Almer <jamrial@gmail.com>
Sun, 24 Jan 2021 23:45:18 +0000 (20:45 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 25 Jan 2021 22:31:04 +0000 (19:31 -0300)
It's been unused for almost three years now.

Signed-off-by: James Almer <jamrial@gmail.com>
doc/APIchanges
libavcodec/avcodec.h
libavcodec/pthread_frame.c
libavcodec/version.h

index bbf56a538507d3f8f9f681c175364e8d1e857911..1509c9b8cb41a14b15ee3586d5cef35e9d802237 100644 (file)
@@ -15,6 +15,10 @@ libavutil:     2017-10-21
 
 API changes, most recent first:
 
+2021-01-25 - xxxxxxxxxx - lavc 58.119.100 - avcodec.h
+  Deprecate AVCodecContext.debug_mv, FF_DEBUG_VIS_MV_P_FOR, FF_DEBUG_VIS_MV_B_FOR,
+  FF_DEBUG_VIS_MV_B_BACK
+
 2021-01-11 - xxxxxxxxxx - lavc 58.116.100 - avcodec.h
   Add FF_PROFILE_VVC_MAIN_10 and FF_PROFILE_VVC_MAIN_10_444.
 
index dc8738c819670b56979048a13d3da96ff91d5dfb..eafc2e84e33ba5292e70da9cb3618b6153922be1 100644 (file)
@@ -2141,15 +2141,16 @@ typedef struct AVCodecContext {
      */
     int seek_preroll;
 
+#if FF_API_DEBUG_MV
     /**
-     * debug motion vectors
-     * - encoding: Set by user.
-     * - decoding: Set by user.
+     * @deprecated unused
      */
+    attribute_deprecated
     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
 
     /**
      * custom intra quantization matrix
index a570e25e0d80d6a62024beeb23246905b932c851..4429a4d59c1e67eeb21a363fb27bb91ab95936ad 100644 (file)
@@ -342,7 +342,6 @@ static int update_context_from_user(AVCodecContext *dst, AVCodecContext *src)
 
     dst->opaque   = src->opaque;
     dst->debug    = src->debug;
-    dst->debug_mv = src->debug_mv;
 
     dst->slice_flags = src->slice_flags;
     dst->flags2      = src->flags2;
index c0ce9f18656838b173b647c85b9c3047ec57be66..866932cb843ada448dffbaede4724680735ee697 100644 (file)
@@ -28,7 +28,7 @@
 #include "libavutil/version.h"
 
 #define LIBAVCODEC_VERSION_MAJOR  58
-#define LIBAVCODEC_VERSION_MINOR 118
+#define LIBAVCODEC_VERSION_MINOR 119
 #define LIBAVCODEC_VERSION_MICRO 100
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
 #ifndef FF_API_THREAD_SAFE_CALLBACKS
 #define FF_API_THREAD_SAFE_CALLBACKS (LIBAVCODEC_VERSION_MAJOR < 60)
 #endif
+#ifndef FF_API_DEBUG_MV
+#define FF_API_DEBUG_MV          (LIBAVCODEC_VERSION_MAJOR < 60)
+#endif
 
 #endif /* AVCODEC_VERSION_H */