[x265] [PATCH] analysis: respect X265_REF_LIMIT_DEPTH with RD 5/6

ashok at multicorewareinc.com ashok at multicorewareinc.com
Tue Jun 23 17:16:53 CEST 2015


# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1435071917 -19800
#      Tue Jun 23 20:35:17 2015 +0530
# Node ID 94cd345b70994ebfd1b2e1d3e7501d790c00670d
# Parent  07f329f29ecaa3279a10a72ab9ec80cf6fc0ed43
analysis: respect X265_REF_LIMIT_DEPTH with RD 5/6

diff -r 07f329f29eca -r 94cd345b7099 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Tue Jun 23 20:35:13 2015 +0530
+++ b/source/encoder/analysis.cpp	Tue Jun 23 20:35:17 2015 +0530
@@ -1370,7 +1370,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
     {


More information about the x265-devel mailing list