ref: 14acd1e663d4a087f08f1c21ecf8bc97ed973385
parent: d468404822d0f19e0b24b60934f1f81541912286
parent: 892d90175c54df8d8aba172e23c094001dea3e32
author: volvet <[email protected]>
date: Mon Feb 24 04:46:37 EST 2014
Merge pull request #339 from mstorsjo/console-trace-param Handle a -trace parameter for setting the trace level
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -416,6 +416,7 @@
printf (" -lqp (Layer) (base quality layer qp : must work with -ldeltaqp or -lqparr)\n");
printf (" -ltarb (Layer) (spatial layer target bitrate)\n");
printf (" -slcmd (Layer) (spatial layer slice mode): pls refer to layerX.cfg for details ( -slcnum: set target slice num; -slcsize: set target slice size constraint ) \n");
+ printf (" -trace (Level)\n");
printf ("\n");
}
@@ -468,6 +469,9 @@
else if (!strcmp (pCommand, "-rc") && (n < argc))
pSvcParam.bEnableRc = atoi (argv[n++]) ? true : false;
+
+ else if (!strcmp (pCommand, "-trace") && (n < argc))
+ WelsStderrSetTraceLevel (atoi (argv[n++]));
else if (!strcmp (pCommand, "-tarb") && (n < argc))
pSvcParam.iTargetBitrate = atoi (argv[n++]);