[x265] [PATCH STABLE] param: no longer disable deblock at ultrafast

Steve Borho steve at borho.org
Thu Feb 5 18:33:05 CET 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1423156800 21600
#      Thu Feb 05 11:20:00 2015 -0600
# Branch stable
# Node ID cefc6f03cce1f3a44c37786c16764b0e51ce0b9f
# Parent  d4f52d3270b69cfc9d5d39b4ef4678beb69a7805
param: no longer disable deblock at ultrafast

Recent profiling shows that it has an out-sized effect on quality for the very
small performance impact.

Deblocking accounts for about 3% of the CPU time at ultrafast preset, but at
smaller resolutions it has an outsised effect on frame parallelism because
deblocking introduces a 1-row reference lag.

At 4k this lag is not important, at 1080p the lag becomes measurable, while at
720p the lag can account for about a %10 drop in performance.

diff -r d4f52d3270b6 -r cefc6f03cce1 doc/reST/presets.rst
--- a/doc/reST/presets.rst	Wed Feb 04 15:41:46 2015 -0600
+++ b/doc/reST/presets.rst	Thu Feb 05 11:20:00 2015 -0600
@@ -66,8 +66,6 @@
 +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+
 | rdLevel      |    2      |     2     |    2     |   2    |  2   |    3   |  4   |   6    |    6     |    6    |
 +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+
-| deblock      |    0      |     1     |    1     |   1    |  1   |    1   |  1   |   1    |    1     |    1    |
-+--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+
 | tu-intra     |    1      |     1     |    1     |   1    |  1   |    1   |  1   |   2    |    3     |    4    |
 +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+
 | tu-inter     |    1      |     1     |    1     |   1    |  1   |    1   |  1   |   2    |    3     |    4    |
diff -r d4f52d3270b6 -r cefc6f03cce1 source/common/param.cpp
--- a/source/common/param.cpp	Wed Feb 04 15:41:46 2015 -0600
+++ b/source/common/param.cpp	Thu Feb 05 11:20:00 2015 -0600
@@ -258,7 +258,6 @@
             param->bEnableWeightedPred = 0;
             param->rdLevel = 2;
             param->maxNumReferences = 1;
-            param->bEnableLoopFilter = 0;
             param->rc.aqStrength = 0.0;
             param->rc.aqMode = X265_AQ_NONE;
             param->rc.cuTree = 0;


More information about the x265-devel mailing list