[x265] [PATCH] SEA motion search: Copy integral planes for ANALYSIS LOAD
vignesh at multicorewareinc.com
vignesh at multicorewareinc.com
Wed Dec 7 15:12:28 CET 2016
# HG changeset patch
# User Vignesh Vijayakumar <vignesh at multicorewareinc.com>
# Date 1481110091 -19800
# Wed Dec 07 16:58:11 2016 +0530
# Node ID 5aaff4caad408c1b7907672a312637eca844d0af
# Parent 25a4bb8fb11b75aa099841933f9e31941bcff515
SEA motion search: Copy integral planes for ANALYSIS LOAD
diff -r 25a4bb8fb11b -r 5aaff4caad40 source/encoder/search.cpp
--- a/source/encoder/search.cpp Mon Dec 05 10:46:35 2016 +0530
+++ b/source/encoder/search.cpp Wed Dec 07 16:58:11 2016 +0530
@@ -2145,6 +2145,13 @@
int mvpIdx = selectMVP(cu, pu, amvp, list, ref);
MV mvmin, mvmax, outmv, mvp = amvp[mvpIdx];
+ if (m_param->searchMethod == X265_SEA)
+ {
+ int puX = puIdx & 1;
+ int puY = puIdx >> 1;
+ for (int planes = 0; planes < INTEGRAL_PLANE_NUM; planes++)
+ m_me.integral[planes] = interMode.fencYuv->m_integral[list][ref][planes] + puX * pu.width + puY * pu.height * m_slice->m_refFrameList[list][ref]->m_reconPic->m_stride;
+ }
setSearchRange(cu, mvp, m_param->searchRange, mvmin, mvmax);
int satdCost = m_me.motionEstimate(&slice->m_mref[list][ref], mvmin, mvmax, mvp, numMvc, mvc, m_param->searchRange, outmv,
m_param->bSourceReferenceEstimation ? m_slice->m_refFrameList[list][ref]->m_fencPic->getLumaAddr(0) : 0);
More information about the x265-devel
mailing list