[x265] [PATCH] analysis: respect X265_REF_LIMIT_DEPTH with RD 0/4

ashok at multicorewareinc.com ashok at multicorewareinc.com
Mon Apr 13 15:33:24 CEST 2015


# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1428931472 -19800
#      Mon Apr 13 18:54:32 2015 +0530
# Node ID f145aefac07db1b595550753754fca12d509c029
# Parent  3b60d34e493aa7c813d6aaa7f1de3e0e18e08cea
analysis: respect X265_REF_LIMIT_DEPTH with RD 0/4

When this flag is not set, we do not restrict references used by parent CUs

diff -r 3b60d34e493a -r f145aefac07d source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Mon Apr 13 18:54:32 2015 +0530
+++ b/source/encoder/analysis.cpp	Mon Apr 13 18:54:32 2015 +0530
@@ -1086,7 +1086,9 @@
 
     /* determine which motion references the parent CU should search */
     uint32_t refMask;
-    if (md.bestMode == &md.pred[PRED_SPLIT])
+    if (!(m_param->limitReferences & X265_REF_LIMIT_DEPTH))
+        refMask = 0;
+    else if (md.bestMode == &md.pred[PRED_SPLIT])
         refMask = allSplitRefs;
     else if (md.bestMode->cu.isIntra(0))
     {


More information about the x265-devel mailing list