# HG changeset patch
# User Steve Borho <[email protected]>
# Date 1426555173 18000
#      Mon Mar 16 20:19:33 2015 -0500
# Node ID 641d21026dc8bd2d5602c7b7a6bab238c6ae3c95
# Parent  163b009d3699dfb289c5bea76a1783988b62352d
analysis: respect X265_REF_LIMIT_DEPTH

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

diff -r 163b009d3699 -r 641d21026dc8 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp       Mon Mar 16 20:19:33 2015 -0500
+++ b/source/encoder/analysis.cpp       Mon Mar 16 20:19:33 2015 -0500
@@ -1260,7 +1260,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))
     {
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to