[x265] [PATCH] psyrd: change default to 2.0, increase range to 5.0

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Mon Jan 11 11:06:16 CET 2016


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1452506593 -19800
#      Mon Jan 11 15:33:13 2016 +0530
# Branch stable
# Node ID 6f44cd5d00ff423b0e2f4817bc25b96d4191e82b
# Parent  81ff6d47262fe42697ba3f2043e665efb00aac33
psyrd: change default to 2.0, increase range to 5.0

Earlier, high psy-rd caused artifacts, recent changes to mode decisions show an
improved response.

diff -r 81ff6d47262f -r 6f44cd5d00ff doc/reST/cli.rst
--- a/doc/reST/cli.rst	Mon Jan 11 12:24:47 2016 +0530
+++ b/doc/reST/cli.rst	Mon Jan 11 15:33:13 2016 +0530
@@ -1066,9 +1066,9 @@
 	energy of the source image in the encoded image at the expense of
 	compression efficiency. It only has effect on presets which use
 	RDO-based mode decisions (:option:`--rd` 3 and above). 1.0 is a
-	typical value. Default 0.3
+	typical value. Default 2.0
 
-	**Range of values:** 0 .. 2.0
+	**Range of values:** 0 .. 5.0
 
 .. option:: --psy-rdoq <float>
 
diff -r 81ff6d47262f -r 6f44cd5d00ff source/common/param.cpp
--- a/source/common/param.cpp	Mon Jan 11 12:24:47 2016 +0530
+++ b/source/common/param.cpp	Mon Jan 11 15:33:13 2016 +0530
@@ -185,7 +185,7 @@
     param->cbQpOffset = 0;
     param->crQpOffset = 0;
     param->rdPenalty = 0;
-    param->psyRd = 0.3;
+    param->psyRd = 2.0;
     param->psyRdoq = 0.0;
     param->analysisMode = 0;
     param->analysisFileName = NULL;
@@ -1118,7 +1118,7 @@
           "deblocking filter tC offset must be in the range of -6 to +6");
     CHECK(param->deblockingFilterBetaOffset < -6 || param->deblockingFilterBetaOffset > 6,
           "deblocking filter Beta offset must be in the range of -6 to +6");
-    CHECK(param->psyRd < 0 || 2.0 < param->psyRd, "Psy-rd strength must be between 0 and 2.0");
+    CHECK(param->psyRd < 0 || 5.0 < param->psyRd, "Psy-rd strength must be between 0 and 5.0");
     CHECK(param->psyRdoq < 0 || 50.0 < param->psyRdoq, "Psy-rdoq strength must be between 0 and 50.0");
     CHECK(param->bEnableWavefront < 0, "WaveFrontSynchro cannot be negative");
     CHECK((param->vui.aspectRatioIdc < 0
diff -r 81ff6d47262f -r 6f44cd5d00ff source/x265cli.h
--- a/source/x265cli.h	Mon Jan 11 12:24:47 2016 +0530
+++ b/source/x265cli.h	Mon Jan 11 15:33:13 2016 +0530
@@ -301,7 +301,7 @@
     H0("   --tu-inter-depth <integer>    Max TU recursive depth for inter CUs. Default %d\n", param->tuQTMaxInterDepth);
     H0("\nAnalysis:\n");
     H0("   --rd <0..6>                   Level of RDO in mode decision 0:least....6:full RDO. Default %d\n", param->rdLevel);
-    H0("   --[no-]psy-rd <0..2.0>        Strength of psycho-visual rate distortion optimization, 0 to disable. Default %.1f\n", param->psyRd);
+    H0("   --[no-]psy-rd <0..5.0>        Strength of psycho-visual rate distortion optimization, 0 to disable. Default %.1f\n", param->psyRd);
     H0("   --[no-]rdoq-level <0|1|2>     Level of RDO in quantization 0:none, 1:levels, 2:levels & coding groups. Default %d\n", param->rdoqLevel);
     H0("   --[no-]psy-rdoq <0..50.0>     Strength of psycho-visual optimization in RDO quantization, 0 to disable. Default %.1f\n", param->psyRdoq);
     H0("   --[no-]early-skip             Enable early SKIP detection. Default %s\n", OPT(param->bEnableEarlySkip));


More information about the x265-devel mailing list