[x265] [PATCH] cli: remove default strings for preset and tune, modify default AQ mode to match

Steve Borho steve at borho.org
Thu May 15 15:49:04 CEST 2014


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1400120331 -19800
#      Thu May 15 07:48:51 2014 +0530
# Node ID 81fea15ba686be53e4f83e5d9fc903725a49b586
# Parent  d5b42a9fe43ba877f90f73a11a071d9e449e9661
cli: remove default strings for preset and tune, modify default AQ mode to match

The cli has used --tune ssim as the default since we've had an ssim tune, but
API users were getting the default aq-mode of 1 instead.  This commit removes
the default tune (and preset) strings and fixes the default param structure to
match the previous CLI default behavior (aq-mode 2)

diff -r d5b42a9fe43b -r 81fea15ba686 source/common/param.cpp
--- a/source/common/param.cpp	Wed May 14 21:01:56 2014 +0530
+++ b/source/common/param.cpp	Thu May 15 07:48:51 2014 +0530
@@ -170,7 +170,7 @@
     param->rc.qpStep = 4;
     param->rc.rateControlMode = X265_RC_CRF;
     param->rc.qp = 32;
-    param->rc.aqMode = X265_AQ_VARIANCE;
+    param->rc.aqMode = X265_AQ_AUTO_VARIANCE;
     param->rc.aqStrength = 1.0;
     param->rc.cuTree = 1;
 
diff -r d5b42a9fe43b -r 81fea15ba686 source/x265.cpp
--- a/source/x265.cpp	Wed May 14 21:01:56 2014 +0530
+++ b/source/x265.cpp	Thu May 15 07:48:51 2014 +0530
@@ -424,8 +424,8 @@
     const char *inputfn = NULL;
     const char *reconfn = NULL;
     const char *bitstreamfn = NULL;
-    const char *preset = "medium";
-    const char *tune = "ssim";
+    const char *preset = NULL;
+    const char *tune = NULL;
 
     if (argc <= 1)
     {


More information about the x265-devel mailing list