[x265] [PATCH] param: preset tuning changes

Steve Borho steve at borho.org
Mon Sep 15 15:00:35 CEST 2014


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1410786013 -7200
#      Mon Sep 15 15:00:13 2014 +0200
# Node ID dd060bfda6e57f17aa7663de805db8d3a7ed7edc
# Parent  dff0cd55b520620ef8a7a9b7f4a7c0861f26b351
param: preset tuning changes

1. disable SAO in superfast

Recent changes have made --no-sao substantially faster than SAO, which has
made ultrafast preset much much faster than superfast.  By disabling SAO in
superfast, it is now roughly half-way between ultrafast and veryfast again.

2. Enable weighted prediction for B slices in slower, veryslow, and placebo

Weighted prediction for B can sometimes be beneficial, so turn it on for slower
encodes.

diff -r dff0cd55b520 -r dd060bfda6e5 source/common/param.cpp
--- a/source/common/param.cpp	Mon Sep 15 14:43:19 2014 +0200
+++ b/source/common/param.cpp	Mon Sep 15 15:00:13 2014 +0200
@@ -277,6 +277,7 @@
             param->rc.aqStrength = 0.0;
             param->rc.aqMode = X265_AQ_NONE;
             param->rc.cuTree = 0;
+            param->bEnableSAO = 0;
             param->bEnableFastIntra = 1;
         }
         else if (!strcmp(preset, "veryfast"))
@@ -326,6 +327,7 @@
         }
         else if (!strcmp(preset, "slower"))
         {
+            param->bEnableWeightedBiPred = 1;
             param->bEnableAMP = 1;
             param->bEnableRectInter = 1;
             param->lookaheadDepth = 30;
@@ -339,6 +341,7 @@
         }
         else if (!strcmp(preset, "veryslow"))
         {
+            param->bEnableWeightedBiPred = 1;
             param->bEnableAMP = 1;
             param->bEnableRectInter = 1;
             param->lookaheadDepth = 40;
@@ -353,6 +356,7 @@
         }
         else if (!strcmp(preset, "placebo"))
         {
+            param->bEnableWeightedBiPred = 1;
             param->bEnableAMP = 1;
             param->bEnableRectInter = 1;
             param->lookaheadDepth = 60;


More information about the x265-devel mailing list