[x265] [PATCH 07 of 10 RFC] analysis: respect X265_REF_LIMIT_DEPTH
Steve Borho
steve at borho.org
Tue Mar 31 03:29:43 CEST 2015
# HG changeset patch
# User Steve Borho <steve at borho.org>
# 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))
{
More information about the x265-devel
mailing list