[x265] [PATCH 2 of 2] param: enable psy-rd and psy-rdoq by default

Steve Borho steve at borho.org
Thu Jan 29 17:50:33 CET 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1422550022 21600
#      Thu Jan 29 10:47:02 2015 -0600
# Node ID 4c821beecf447222742a063c6c616d5f01922898
# Parent  e91e608e751339b28746f928835fb4c1e3b2d4fb
param: enable psy-rd and psy-rdoq by default

The psycho-visual cost functions are assembly optimized now, so there isn't a
large cost penalty to having them enabled.

diff -r e91e608e7513 -r 4c821beecf44 doc/reST/cli.rst
--- a/doc/reST/cli.rst	Thu Jan 29 10:34:27 2015 -0600
+++ b/doc/reST/cli.rst	Thu Jan 29 10:47:02 2015 -0600
@@ -792,7 +792,7 @@
 	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 disabled.  Experimental
+	typical value. Default 1.0
 
 	**Range of values:** 0 .. 2.0
 
@@ -804,7 +804,7 @@
 	has effect on slower presets which use RDO Quantization
 	(:option:`--rd` 4, 5 and 6). 1.0 is a typical value. Default
 	disabled. High values can be beneficial in preserving high-frequency
-	detail like film grain. Experimental
+	detail like film grain. Default: 1.0
 
 	**Range of values:** 0 .. 50.0
 
diff -r e91e608e7513 -r 4c821beecf44 source/common/param.cpp
--- a/source/common/param.cpp	Thu Jan 29 10:34:27 2015 -0600
+++ b/source/common/param.cpp	Thu Jan 29 10:47:02 2015 -0600
@@ -174,8 +174,8 @@
     param->cbQpOffset = 0;
     param->crQpOffset = 0;
     param->rdPenalty = 0;
-    param->psyRd = 0.0;
-    param->psyRdoq = 0.0;
+    param->psyRd = 1.0;
+    param->psyRdoq = 1.0;
     param->analysisMode = 0;
     param->analysisFileName = NULL;
     param->bIntraInBFrames = 0;
diff -r e91e608e7513 -r 4c821beecf44 source/x265.h
--- a/source/x265.h	Thu Jan 29 10:34:27 2015 -0600
+++ b/source/x265.h	Thu Jan 29 10:47:02 2015 -0600
@@ -678,7 +678,7 @@
     /* Psycho-visual rate-distortion strength. Only has an effect in presets
      * which use RDO. It makes mode decision favor options which preserve the
      * energy of the source, at the cost of lost compression. The value must
-     * be between 0 and 2.0, 1.0 is typical. Default 0.0 */
+     * be between 0 and 2.0, 1.0 is typical. Default 1.0 */
     double    psyRd;
 
     /* Quantization scaling lists. HEVC supports 6 quantization scaling lists to
@@ -695,7 +695,7 @@
 
     /* Strength of psycho-visual optimizations in quantization. Only has an
      * effect in presets which use RDOQ (rd-levels 4 and 5).  The value must be
-     * between 0 and 50, 1.0 is typical. Default 0.0 */
+     * between 0 and 50, 1.0 is typical. Default 1.0 */
     double    psyRdoq;
 
     /* If X265_ANALYSIS_SAVE, write per-frame analysis information into analysis


More information about the x265-devel mailing list