[x265] [PATCH 1 of 3] rd: fix error in merge-skip identfication in rd 1, 0

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Tue Dec 17 14:00:15 CET 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1387284449 -19800
# Node ID 0ae9351996370c39a165f15bc3597b245420ae71
# Parent  7592b8801a6c5799d33359f3c38f55cd2ad4460c
rd: fix error in merge-skip identfication in rd 1,0

Cost was not calculated if the best mode is merge-skip in rd 1,0

diff -r 7592b8801a6c -r 0ae935199637 source/encoder/compress.cpp
--- a/source/encoder/compress.cpp	Tue Dec 17 17:04:07 2013 +0530
+++ b/source/encoder/compress.cpp	Tue Dec 17 18:17:29 2013 +0530
@@ -283,6 +283,7 @@
     outTempCU->getCUMvField(REF_PIC_LIST_1)->setAllMvField(mvFieldNeighbours[1 + 2 * bestMergeCand], SIZE_2Nx2N, 0, 0);
     outTempCU->m_totalBits = outBestCU->m_totalBits;
     outTempCU->m_totalDistortion = outBestCU->m_totalDistortion;
+    outTempCU->m_totalCost = m_rdCost->calcRdSADCost(outTempCU->m_totalDistortion, outTempCU->m_totalBits);
     if (m_cfg->param.rdLevel > 2)
     {
         //calculate the motion compensation for chroma for the best mode selected


More information about the x265-devel mailing list