<div dir="ltr">Please ignore the patch need to update. Thanks.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Regards,<div>Praveen</div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 8, 2016 at 10:57 AM, <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Praveen Tiwari <<a href="mailto:praveen@multicorewareinc.com">praveen@multicorewareinc.com</a>><br>
# Date 1457356750 -19800<br>
# Mon Mar 07 18:49:10 2016 +0530<br>
# Node ID 6f7dbb1c901cb5b5b88cc20c3213906465021338<br>
# Parent 88aebc166fa8e16f91d5f0acce77690003be9d91<br>
param: cleanup, print reconfigured param option along with its old and configured value<br>
<br>
diff -r 88aebc166fa8 -r 6f7dbb1c901c source/common/param.cpp<br>
--- a/source/common/param.cpp Fri Mar 04 16:59:45 2016 +0530<br>
+++ b/source/common/param.cpp Mon Mar 07 18:49:10 2016 +0530<br>
@@ -1373,36 +1373,31 @@<br>
if (!param || !reconfiguredParam)<br>
return;<br>
<br>
- x265_log(param,X265_LOG_INFO, "Reconfigured param options :\n");<br>
-<br>
- char buf[80] = { 0 };<br>
char tmp[40];<br>
-#define TOOLCMP(COND1, COND2, STR, VAL) if (COND1 != COND2) { sprintf(tmp, STR, VAL); appendtool(param, buf, sizeof(buf), tmp); }<br>
- TOOLCMP(param->maxNumReferences, reconfiguredParam->maxNumReferences, "ref=%d", reconfiguredParam->maxNumReferences);<br>
- TOOLCMP(param->maxTUSize, reconfiguredParam->maxTUSize, "max-tu-size=%d", reconfiguredParam->maxTUSize);<br>
- TOOLCMP(param->searchRange, reconfiguredParam->searchRange, "merange=%d", reconfiguredParam->searchRange);<br>
- TOOLCMP(param->subpelRefine, reconfiguredParam->subpelRefine, "subme= %d", reconfiguredParam->subpelRefine);<br>
- TOOLCMP(param->rdLevel, reconfiguredParam->rdLevel, "rd=%d", reconfiguredParam->rdLevel);<br>
- TOOLCMP(param->psyRd, reconfiguredParam->psyRd, "psy-rd=%.2lf", reconfiguredParam->psyRd);<br>
- TOOLCMP(param->rdoqLevel, reconfiguredParam->rdoqLevel, "rdoq=%d", reconfiguredParam->rdoqLevel);<br>
- TOOLCMP(param->psyRdoq, reconfiguredParam->psyRdoq, "psy-rdoq=%.2lf", reconfiguredParam->psyRdoq);<br>
- TOOLCMP(param->noiseReductionIntra, reconfiguredParam->noiseReductionIntra, "nr-intra=%d", reconfiguredParam->noiseReductionIntra);<br>
- TOOLCMP(param->noiseReductionInter, reconfiguredParam->noiseReductionInter, "nr-inter=%d", reconfiguredParam->noiseReductionInter);<br>
- TOOLCMP(param->bEnableTSkipFast, reconfiguredParam->bEnableTSkipFast, "tskip-fast=%d", reconfiguredParam->bEnableTSkipFast);<br>
- TOOLCMP(param->bEnableSignHiding, reconfiguredParam->bEnableSignHiding, "signhide=%d", reconfiguredParam->bEnableSignHiding);<br>
- TOOLCMP(param->bEnableFastIntra, reconfiguredParam->bEnableFastIntra, "fast-intra=%d", reconfiguredParam->bEnableFastIntra);<br>
- if (param->bEnableLoopFilter && (param->deblockingFilterBetaOffset != reconfiguredParam->deblockingFilterBetaOffset<br>
+#define TOOLCMP(COND1, COND2, STR, OLD_VAL, NEW_VAL) if (COND1 != COND2) { sprintf(tmp, STR, OLD_VAL, NEW_VAL);}<br>
+ TOOLCMP(param->maxNumReferences, reconfiguredParam->maxNumReferences, "[x265] Reconfigure: ref=%d to %d", param->maxNumReferences, reconfiguredParam->maxNumReferences);<br>
+ TOOLCMP(param->maxTUSize, reconfiguredParam->maxTUSize, "[x265] Reconfigure: max-tu-size=%d to %d", param->maxTUSize, reconfiguredParam->maxTUSize);<br>
+ TOOLCMP(param->searchRange, reconfiguredParam->searchRange, "[x265] Reconfigure: merange=%d to %d", param->searchRange, reconfiguredParam->searchRange);<br>
+ TOOLCMP(param->subpelRefine, reconfiguredParam->subpelRefine, "[x265] Reconfigure: subme=%d to %d", param->subpelRefine, reconfiguredParam->subpelRefine);<br>
+ TOOLCMP(param->rdLevel, reconfiguredParam->rdLevel, "[x265] Reconfigure: rd=%d to %d", param->rdLevel, reconfiguredParam->rdLevel);<br>
+ TOOLCMP(param->psyRd, reconfiguredParam->psyRd, "[x265] Reconfigure: psy-rd=%.2lf to %.2lf", param->psyRd, reconfiguredParam->psyRd);<br>
+ TOOLCMP(param->rdoqLevel, reconfiguredParam->rdoqLevel, "[x265] Reconfigure: rdoq=%d to %d", param->rdoqLevel, reconfiguredParam->rdoqLevel);<br>
+ TOOLCMP(param->psyRdoq, reconfiguredParam->psyRdoq, "[x265] Reconfigure: psy-rdoq=%.2lf to %.2lf", param->psyRdoq, reconfiguredParam->psyRdoq);<br>
+ TOOLCMP(param->noiseReductionIntra, reconfiguredParam->noiseReductionIntra, "[x265] Reconfigure: nr-intra=%d to %d", param->noiseReductionIntra, reconfiguredParam->noiseReductionIntra);<br>
+ TOOLCMP(param->noiseReductionInter, reconfiguredParam->noiseReductionInter, "[x265] Reconfigure: nr-inter=%d to %d", param->noiseReductionInter, reconfiguredParam->noiseReductionInter);<br>
+ TOOLCMP(param->bEnableTSkipFast, reconfiguredParam->bEnableTSkipFast, "[x265] Reconfigure: tskip-fast=%d to %d", param->bEnableTSkipFast, reconfiguredParam->bEnableTSkipFast);<br>
+ TOOLCMP(param->bEnableSignHiding, reconfiguredParam->bEnableSignHiding, "[x265] Reconfigure: signhide=%d to %d", param->bEnableSignHiding, reconfiguredParam->bEnableSignHiding);<br>
+ TOOLCMP(param->bEnableFastIntra, reconfiguredParam->bEnableFastIntra, "[x265] Reconfigure: fast-intra=%d to %d", param->bEnableFastIntra, reconfiguredParam->bEnableFastIntra);<br>
+ if (param->bEnableLoopFilter && (param->deblockingFilterBetaOffset != reconfiguredParam->deblockingFilterBetaOffset<br>
|| param->deblockingFilterTCOffset != reconfiguredParam->deblockingFilterTCOffset))<br>
{<br>
- sprintf(tmp, "deblock(tC=%d:B=%d)", param->deblockingFilterTCOffset, param->deblockingFilterBetaOffset);<br>
- appendtool(param, buf, sizeof(buf), tmp);<br>
+ sprintf(tmp, "[x265] Reconfigure: deblock(tC=%d:B=%d) to (tC=%d:B=%d)", param->deblockingFilterTCOffset, param->deblockingFilterBetaOffset, reconfiguredParam->deblockingFilterTCOffset, reconfiguredParam->deblockingFilterBetaOffset);<br>
}<br>
else<br>
- TOOLCMP(param->bEnableLoopFilter, reconfiguredParam->bEnableLoopFilter, "deblock=%d", reconfiguredParam->bEnableLoopFilter);<br>
+ TOOLCMP(param->bEnableLoopFilter, reconfiguredParam->bEnableLoopFilter, "[x265] Reconfigure: deblock=%d to %d", param->bEnableLoopFilter, reconfiguredParam->bEnableLoopFilter);<br>
<br>
- TOOLCMP(param->bEnableTemporalMvp, reconfiguredParam->bEnableTemporalMvp, "tmvp=%d", reconfiguredParam->bEnableTemporalMvp);<br>
- TOOLCMP(param->bEnableEarlySkip, reconfiguredParam->bEnableEarlySkip, "early-skip=%d", reconfiguredParam->bEnableEarlySkip);<br>
- x265_log(param, X265_LOG_INFO, "tools:%s\n", buf);<br>
+ TOOLCMP(param->bEnableTemporalMvp, reconfiguredParam->bEnableTemporalMvp, "[x265] Reconfigure: tmvp=%d to %d", param->bEnableTemporalMvp, reconfiguredParam->bEnableTemporalMvp);<br>
+ TOOLCMP(param->bEnableEarlySkip, reconfiguredParam->bEnableEarlySkip, "[x265] Reconfigure: early-skip=%d to %d", param->bEnableEarlySkip, reconfiguredParam->bEnableEarlySkip);<br>
}<br>
<br>
char *x265_param2string(x265_param* p)<br>
</blockquote></div><br></div>