[x265] [PATCH 3 of 3] cleanups: Remove unnecessary reset
deepthidevaki at multicorewareinc.com
deepthidevaki at multicorewareinc.com
Tue Oct 29 11:18:00 CET 2013
# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1383040610 -19800
# Node ID 4d3fea9339da59862fdd4e916ac5eb1efaaebdc1
# Parent 4e667bcda40397960f0ce412f2be8a366d24b6d2
cleanups: Remove unnecessary reset.
If refIdx is set to NOT_VALID, mv will not be used. Hence resetting MVs to 0 can be safely removed.
diff -r 4e667bcda403 -r 4d3fea9339da source/Lib/TLibCommon/TComMotionInfo.cpp
--- a/source/Lib/TLibCommon/TComMotionInfo.cpp Tue Oct 29 15:22:28 2013 +0530
+++ b/source/Lib/TLibCommon/TComMotionInfo.cpp Tue Oct 29 15:26:50 2013 +0530
@@ -89,12 +89,6 @@
void TComCUMvField::clearMvField()
{
- for (int i = 0; i < m_numPartitions; i++)
- {
- m_mv[i] = 0;
- m_mvd[i] = 0;
- }
-
assert(sizeof(*m_refIdx) == 1);
memset(m_refIdx, NOT_VALID, m_numPartitions * sizeof(*m_refIdx));
}
More information about the x265-devel
mailing list