[x265] [PATCH] analysis: respect X265_REF_LIMIT_DEPTH with RD 0/4
ashok at multicorewareinc.com
ashok at multicorewareinc.com
Tue May 19 15:17:29 CEST 2015
# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1431936119 -19800
# Mon May 18 13:31:59 2015 +0530
# Node ID 3a8c241580093e93b5e46a0a13f631c4420215cd
# Parent f6c9a1e184fe7a8c17744117120828458be43106
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 f6c9a1e184fe -r 3a8c24158009 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp Mon May 18 13:26:33 2015 +0530
+++ b/source/encoder/analysis.cpp Mon May 18 13:31:59 2015 +0530
@@ -1098,7 +1098,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