aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.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 /ffmpeg.c
parent890972be037a2deab8a39680087bf0c9ad533e90 (diff)
downloadffmpeg-0c9bbaec6021ff2ab6017e8b99354a26c2394b47.tar.gz
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 'ffmpeg.c')
-rw-r--r--ffmpeg.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index ff782d285e..0724984678 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -131,6 +131,7 @@ static int packet_size = 0;
static int error_rate = 0;
static int strict = 0;
static int debug = 0;
+static int debug_mv = 0;
extern int loop_input; /* currently a hack */
static int gop_size = 12;
@@ -1672,6 +1673,11 @@ static void opt_debug(const char *arg)
debug = atoi(arg);
}
+static void opt_vismv(const char *arg)
+{
+ debug_mv = atoi(arg);
+}
+
static void opt_verbose(const char *arg)
{
verbose = atoi(arg);
@@ -2171,8 +2177,9 @@ static void opt_input_file(const char *filename)
enc->workaround_bugs = workaround_bugs;
enc->error_resilience = error_resilience;
enc->error_concealment = error_concealment;
- enc->idct_algo= idct_algo;
- enc->debug= debug;
+ enc->idct_algo = idct_algo;
+ enc->debug = debug;
+ enc->debug_mv = debug_mv;
if(bitexact)
enc->flags|= CODEC_FLAG_BITEXACT;
@@ -2382,8 +2389,8 @@ static void opt_output_file(const char *filename)
video_enc->qblur = video_qblur;
video_enc->qcompress = video_qcomp;
video_enc->rc_eq = video_rc_eq;
- video_enc->debug= debug;
-
+ video_enc->debug = debug;
+ video_enc->debug_mv = debug_mv;
p= video_rc_override_string;
for(i=0; p; i++){
int start, end, q;
@@ -2913,6 +2920,7 @@ const OptionDef options[] = {
{ "copyright", HAS_ARG | OPT_STRING, {(void*)&str_copyright}, "set the copyright", "string" },
{ "comment", HAS_ARG | OPT_STRING, {(void*)&str_comment}, "set the comment", "string" },
{ "debug", HAS_ARG | OPT_EXPERT, {(void*)opt_debug}, "print specific debug info", "" },
+ { "vismv", HAS_ARG | OPT_EXPERT, {(void*)opt_vismv}, "visualize motion vectors", "" },
{ "benchmark", OPT_BOOL | OPT_EXPERT, {(void*)&do_benchmark},
"add timings for benchmarking" },
{ "dump", OPT_BOOL | OPT_EXPERT, {(void*)&do_pkt_dump},