changeset 4733:6552629b45c5

Cleanups: Remove call to setALLMVField, and set only required members.
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Tue, 29 Oct 2013 15:22:28 +0530
parents f1a1d4f19db4
children 50cd62d85ead
files source/Lib/TLibEncoder/TEncSearch.cpp
diffstat 1 files changed, 5 insertions(+-), 5 deletions(-) [+]
line wrap: on
line diff
--- a/source/Lib/TLibEncoder/TEncSearch.cpp	Tue Oct 29 15:20:51 2013 +0530
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp	Tue Oct 29 15:22:28 2013 +0530
@@ -2144,11 +2144,11 @@ void TEncSearch::xMergeEstimation(TComDa
     {
         uint32_t costCand = MAX_UINT;
         uint32_t bitsCand = 0;
-
-        PartSize size = cu->getPartitionSize(0);
-
-        cu->getCUMvField(REF_PIC_LIST_0)->setAllMvField(mvFieldNeighbours[0 + 2 * mergeCand], size, absPartIdx, 0, puIdx);
-        cu->getCUMvField(REF_PIC_LIST_1)->setAllMvField(mvFieldNeighbours[1 + 2 * mergeCand], size, absPartIdx, 0, puIdx);
+       
+        cu->getCUMvField(REF_PIC_LIST_0)->m_mv[absPartIdx] = mvFieldNeighbours[0 + 2 * mergeCand].mv;
+        cu->getCUMvField(REF_PIC_LIST_0)->m_refIdx[absPartIdx] = mvFieldNeighbours[0 + 2 * mergeCand].refIdx;
+        cu->getCUMvField(REF_PIC_LIST_1)->m_mv[absPartIdx] = mvFieldNeighbours[1 + 2 * mergeCand].mv;
+        cu->getCUMvField(REF_PIC_LIST_1)->m_refIdx[absPartIdx] = mvFieldNeighbours[1 + 2 * mergeCand].refIdx;
 
         costCand = xGetInterPredictionError(cu, puIdx);
         bitsCand = mergeCand + 1;