[x265] [PATCH 2 of 3] Cleanups: Remove call to setALLMVField, and set only required members
deepthidevaki at multicorewareinc.com
deepthidevaki at multicorewareinc.com
Tue Oct 29 11:17:59 CET 2013
# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1383040348 -19800
# Node ID 4e667bcda40397960f0ce412f2be8a366d24b6d2
# Parent 284d3c97878462116a0a6705b46d625b7a4bc259
Cleanups: Remove call to setALLMVField, and set only required members.
diff -r 284d3c978784 -r 4e667bcda403 source/Lib/TLibEncoder/TEncSearch.cpp
--- 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 @@
{
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;
More information about the x265-devel
mailing list