<div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div># HG changeset patch</div><div># User Dinesh<<a href="mailto:dinesh@multicorewareinc.com">dinesh@multicorewareinc.com</a>></div><div># Date 1551169344 -19800</div><div>#      Tue Feb 26 13:52:24 2019 +0530</div><div># Node ID 31ab7e09a3b5b15ffcc532826d4dd5d37e611483</div><div># Parent  cb3e172a5f51c6a4bf8adb7953fe53277f5a1979</div><div>- Fixed  --tune mapping issue in x265 + SVT-HEVc integration</div><div><br></div><div>diff -r cb3e172a5f51 -r 31ab7e09a3b5 doc/reST/svthevc.rst</div><div>--- a/doc/reST/svthevc.rst<span style="white-space:pre">      </span>Tue Feb 19 20:20:35 2019 +0530</div><div>+++ b/doc/reST/svthevc.rst<span style="white-space:pre">      </span>Tue Feb 26 13:52:24 2019 +0530</div><div>@@ -177,12 +177,14 @@</div><div> +----------------------------------------+------------------------------+</div><div> </div><div> x265 has 5 tune modes (psnr, ssim, grain, zero-latency, animation) whereas SVT-HEVC</div><div>-has only 2 tune modes (0 - Subjective Quality Mode, 1 - Objective Quality Mode). Below </div><div>+has only 3 tune modes (0 - visual quality, 1 - PSNR / SSIM and 2 - VMAF). Below </div><div> table shows the mapping of tune modes,</div><div> </div><div> +-----------------------+---------------------------+</div><div> | x265 Tune Modes       | SVT-HEVC Tune Modes       |</div><div> +=======================+===========================+</div><div>+| vmaf                  | 2                         |</div><div>++-----------------------+---------------------------+</div><div> | psnr                  | 1                         |</div><div> +-----------------------+---------------------------+</div><div> | ssim                  | 1                         |</div><div>@@ -196,4 +198,5 @@</div><div> | animation             | 0                         |</div><div> +-----------------------+---------------------------+</div><div> </div><div>-Note that :option:`--tune` animation is also mapped to "LatencyMode" of SVT-HEVC.</div><div>+Note that : 1.option:`--tune` animation is also mapped to "LatencyMode" of SVT-HEVC.</div><div>+            2.option: '--tune' vmaf is not supported in x265, its under development.</div><div>diff -r cb3e172a5f51 -r 31ab7e09a3b5 source/common/param.cpp</div><div>--- a/source/common/param.cpp<span style="white-space:pre">      </span>Tue Feb 19 20:20:35 2019 +0530</div><div>+++ b/source/common/param.cpp<span style="white-space:pre">   </span>Tue Feb 26 13:52:24 2019 +0530</div><div>@@ -570,6 +570,10 @@</div><div>             param->deblockingFilterBetaOffset = 1;</div><div>             param->deblockingFilterTCOffset = 1;</div><div>         }</div><div>+<span style="white-space:pre">                </span>else if (!strcmp(tune, "vmaf"))  /*Adding vmaf for x265 + SVT-HEVC integration support*/</div><div>+<span style="white-space:pre">          </span>{</div><div>+<span style="white-space:pre">                    </span>/*vmaf is under development, currently x265 won't support vmaf*/</div><div>+<span style="white-space:pre">         </span>}</div><div>         else</div><div>             return -1;</div><div>     }</div><div>@@ -2482,7 +2486,8 @@</div><div>         if (!strcmp(tune, "psnr")) svtHevcParam->tune = 1;</div><div>         else if (!strcmp(tune, "ssim")) svtHevcParam->tune = 1;</div><div>         else if (!strcmp(tune, "grain")) svtHevcParam->tune = 0;</div><div>-        else if (!strcmp(tune, "animation")) svtHevcParam->tune = 1;</div><div>+        else if (!strcmp(tune, "animation")) svtHevcParam->tune = 0;</div><div>+<span style="white-space:pre">         </span>else if (!strcmp(tune, "vmaf")) svtHevcParam->tune = 2;</div><div>         else if (!strcmp(tune, "zero-latency") || !strcmp(tune, "zerolatency")) svtHevcParam->latencyMode = 1;</div><div>         else  return -1;</div><div>     }</div></div><div><br></div><div> </div><div><br></div></div></div></div>