History

avcodec: deprecate AVCodecContext.debug_mv

It's been unused for almost three years now.

James Almer committed 5 years ago

Commit 56709ca1 parent c3f3b564 files · +12 −5Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavcodec/avcodec.h +4 −3
  3. libavcodec/pthread_frame.c +0 −1
  4. libavcodec/version.h +4 −1
doc/APIchanges+4−0
@@ -15,6 +15,10 @@ libavutil: 2017-10-21 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18+2021-01-25 - xxxxxxxxxx - lavc 58.119.100 - avcodec.h
19+ Deprecate AVCodecContext.debug_mv, FF_DEBUG_VIS_MV_P_FOR, FF_DEBUG_VIS_MV_B_FOR,
20+ FF_DEBUG_VIS_MV_B_BACK
21+
1822 2021-01-11 - xxxxxxxxxx - lavc 58.116.100 - avcodec.h
1923 Add FF_PROFILE_VVC_MAIN_10 and FF_PROFILE_VVC_MAIN_10_444.
2024
libavcodec/avcodec.h+4−3
@@ -2141,15 +2141,16 @@ typedef struct AVCodecContext { · 2140 unmodified lines
21412141 */
21422142 int seek_preroll;
21432143
2144+#if FF_API_DEBUG_MV
21442145 /**
2145− * debug motion vectors
2146− * - encoding: Set by user.
2147− * - decoding: Set by user.
2146+ * @deprecated unused
21482147 */
2148+ attribute_deprecated
21492149 int debug_mv;
21502150 #define FF_DEBUG_VIS_MV_P_FOR 0x00000001 //visualize forward predicted MVs of P frames
21512151 #define FF_DEBUG_VIS_MV_B_FOR 0x00000002 //visualize forward predicted MVs of B frames
21522152 #define FF_DEBUG_VIS_MV_B_BACK 0x00000004 //visualize backward predicted MVs of B frames
2153+#endif
21532154
21542155 /**
21552156 * custom intra quantization matrix
libavcodec/pthread_frame.c+0−1
@@ -342,7 +342,6 @@ static int update_context_from_user(AVCodecContext *dst, AVCodecContext *src) · 341 unmodified lines
342342
343343 dst->opaque = src->opaque;
344344 dst->debug = src->debug;
345− dst->debug_mv = src->debug_mv;
346345
347346 dst->slice_flags = src->slice_flags;
348347 dst->flags2 = src->flags2;
libavcodec/version.h+4−1
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "libavutil/version.h"
2929
3030 #define LIBAVCODEC_VERSION_MAJOR 58
31−#define LIBAVCODEC_VERSION_MINOR 118
31+#define LIBAVCODEC_VERSION_MINOR 119
3232 #define LIBAVCODEC_VERSION_MICRO 100
3333
3434 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -147,5 +147,8 @@ · 112 unmodified lines
147147 #ifndef FF_API_THREAD_SAFE_CALLBACKS
148148 #define FF_API_THREAD_SAFE_CALLBACKS (LIBAVCODEC_VERSION_MAJOR < 60)
149149 #endif
150+#ifndef FF_API_DEBUG_MV
151+#define FF_API_DEBUG_MV (LIBAVCODEC_VERSION_MAJOR < 60)
152+#endif
150153
151154 #endif /* AVCODEC_VERSION_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t