summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorWolfgang Hesseler <qv@multimediaware.com>2003-12-30 02:12:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-12-30 02:12:12 +0000
commit0c9bbaec6021ff2ab6017e8b99354a26c2394b47 (patch)
tree15d2921727398fc827965d1f90214c3f3f100590 /ffplay.c
parent890972be037a2deab8a39680087bf0c9ad533e90 (diff)
motion vector vissualization improvements patch by (Wolfgang Hesseler <qv at multimediaware dot com>)
Originally committed as revision 2636 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 8f06f8fb17..c5c2ca1349 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -166,6 +166,7 @@ static int show_status;
static int av_sync_type = AV_SYNC_AUDIO_MASTER;
static int64_t start_time = AV_NOPTS_VALUE;
static int debug = 0;
+static int debug_mv = 0;
static int step = 0;
/* current context */
@@ -1196,7 +1197,8 @@ static int stream_component_open(VideoState *is, int stream_index)
packet_queue_init(&is->videoq);
is->video_tid = SDL_CreateThread(video_thread, is);
- enc->debug= debug;
+ enc->debug = debug;
+ enc->debug_mv = debug_mv;
break;
default:
break;
@@ -1784,6 +1786,11 @@ static void opt_debug(const char *arg)
debug = atoi(arg);
}
+static void opt_vismv(const char *arg)
+{
+ debug_mv = atoi(arg);
+}
+
const OptionDef options[] = {
{ "h", 0, {(void*)show_help}, "show help" },
{ "x", HAS_ARG, {(void*)opt_width}, "force displayed width", "width" },
@@ -1800,6 +1807,7 @@ const OptionDef options[] = {
{ "img", HAS_ARG, {(void*)opt_image_format}, "force image format", "img_fmt" },
{ "stats", OPT_BOOL | OPT_EXPERT, {(void*)&show_status}, "show status", "" },
{ "debug", HAS_ARG | OPT_EXPERT, {(void*)opt_debug}, "print specific debug info", "" },
+ { "vismv", HAS_ARG | OPT_EXPERT, {(void*)opt_vismv}, "visualize motion vectors", "" },
#ifdef CONFIG_NETWORK
{ "rtp_tcp", OPT_EXPERT, {(void*)&opt_rtp_tcp}, "force RTP/TCP protocol usage", "" },
#endif