[x265] [PATCH] disable limitTU with refine-level 10

bhavna at multicorewareinc.com bhavna at multicorewareinc.com
Wed Mar 29 07:58:51 CEST 2017


# HG changeset patch
# User Bhavna Hariharan <bhavna at multicorewareinc.com>
# Date 1490767094 -19800
#      Wed Mar 29 11:28:14 2017 +0530
# Node ID 647586755a9457dc0997913c8a9d6d3f837810d3
# Parent  6e1edafd6dc767ae84c93bca2ff9711f38056e08
disable limitTU with refine-level 10

diff -r 6e1edafd6dc7 -r 647586755a94 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Mon Mar 27 10:30:49 2017 +0530
+++ b/source/encoder/encoder.cpp	Wed Mar 29 11:28:14 2017 +0530
@@ -2145,6 +2145,13 @@
         p->limitTU = 0;
         x265_log(p, X265_LOG_WARNING, "limit-tu disabled, requires tu-inter-depth > 1\n");
     }
+
+    if (p->limitTU && p->analysisMode && p->analysisRefineLevel == 10)
+    {
+        p->limitTU = 0;
+        x265_log(p, X265_LOG_WARNING, "limit-tu disabled, not compatible with refine-level 10\n");
+    }
+
     bool bIsVbv = m_param->rc.vbvBufferSize > 0 && m_param->rc.vbvMaxBitrate > 0;
     if (!m_param->bLossless && (m_param->rc.aqMode || bIsVbv || m_param->bAQMotion))
     {


More information about the x265-devel mailing list