[x265] [PATCH] fix output mismatch for pme mode when --limit-mode is enabled
ashok at multicorewareinc.com
ashok at multicorewareinc.com
Fri Jan 22 14:27:38 CET 2016
# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1453469229 -19800
# Fri Jan 22 18:57:09 2016 +0530
# Node ID 2ed61f2f5d92f573b0ef629ca1cf59125189438e
# Parent 4945598201d0b22317d032f19e4d43e130d6cb7a
fix output mismatch for pme mode when --limit-mode is enabled
diff -r 4945598201d0 -r 2ed61f2f5d92 source/encoder/search.cpp
--- a/source/encoder/search.cpp Wed Jan 20 18:27:42 2016 +0530
+++ b/source/encoder/search.cpp Fri Jan 22 18:57:09 2016 +0530
@@ -2025,7 +2025,8 @@
/* Get total cost of partition, but only include MV bit cost once */
bits += m_me.bitcost(outmv);
- uint32_t cost = (satdCost - m_me.mvcost(outmv)) + m_rdCost.getCost(bits);
+ uint32_t mvCost = m_me.mvcost(outmv);
+ uint32_t cost = (satdCost - mvCost) + m_rdCost.getCost(bits);
/* Refine MVP selection, updates: mvpIdx, bits, cost */
mvp = checkBestMVP(amvp, outmv, mvpIdx, bits, cost);
@@ -2041,6 +2042,7 @@
bestME[list].ref = ref;
bestME[list].cost = cost;
bestME[list].bits = bits;
+ bestME[list].mvCost = mvCost;
}
}
@@ -2153,8 +2155,6 @@
refMask >>= 16;
}
-
-
if (pme.m_jobTotal > 2)
{
pme.tryBondPeers(*m_frame->m_encData->m_jobProvider, pme.m_jobTotal - 1);
More information about the x265-devel
mailing list