[FFmpeg-cvslog] avcodec: make vismv option as flag types

Clément Bœsch git at videolan.org
Mon Jul 7 13:06:30 CEST 2014


ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Mon Jul  7 10:23:55 2014 +0200| [5f4dbf3c1030df7088f940730d2885bb6f46d718] | committer: Clément Bœsch

avcodec: make vismv option as flag types

This allows for example -vismv pf+bf+bb instead of -vismv 7.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5f4dbf3c1030df7088f940730d2885bb6f46d718
---

 libavcodec/options_table.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index 6185e67..fa0bdf8 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -252,7 +252,7 @@ static const AVOption avcodec_options[] = {
 {"buffers", "picture buffer allocations", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DEBUG_BUFFERS }, INT_MIN, INT_MAX, V|D, "debug"},
 {"thread_ops", "threading operations", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DEBUG_THREADS }, INT_MIN, INT_MAX, V|A|D, "debug"},
 {"nomc", "skip motion compensation", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DEBUG_NOMC }, INT_MIN, INT_MAX, V|A|D, "debug"},
-{"vismv", "visualize motion vectors (MVs)", OFFSET(debug_mv), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, V|D, "debug_mv"},
+{"vismv", "visualize motion vectors (MVs)", OFFSET(debug_mv), AV_OPT_TYPE_FLAGS, {.i64 = DEFAULT }, 0, INT_MAX, V|D, "debug_mv"},
 {"pf", "forward predicted MVs of P-frames", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DEBUG_VIS_MV_P_FOR }, INT_MIN, INT_MAX, V|D, "debug_mv"},
 {"bf", "forward predicted MVs of B-frames", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DEBUG_VIS_MV_B_FOR }, INT_MIN, INT_MAX, V|D, "debug_mv"},
 {"bb", "backward predicted MVs of B-frames", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DEBUG_VIS_MV_B_BACK }, INT_MIN, INT_MAX, V|D, "debug_mv"},



More information about the ffmpeg-cvslog mailing list