[x265-commits] [x265] TEncSearch: break ties in favor of uni-directional MC [CH...

Steve Borho steve at borho.org
Wed Mar 12 00:33:08 CET 2014


details:   http://hg.videolan.org/x265/rev/c24eda418b5c
branches:  
changeset: 6468:c24eda418b5c
user:      Steve Borho <steve at borho.org>
date:      Tue Mar 11 18:27:26 2014 -0500
description:
TEncSearch: break ties in favor of uni-directional MC [CHANGES OUTPUTS]

If bidir has the same cost as unidir, pick the unidir prediction. Bidir will
average the two directional prediction and thus tends to generate blurred
predictions. Uni-directional prediction is better when costs are the equal.

diffstat:

 source/Lib/TLibEncoder/TEncSearch.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bbd35c26c4e4 -r c24eda418b5c source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp	Tue Mar 11 15:57:36 2014 -0500
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp	Tue Mar 11 18:27:26 2014 -0500
@@ -2410,7 +2410,7 @@ bool TEncSearch::predInterSearch(TComDat
         }
 
         uint32_t mebits = 0;
-        if (listCost[2] <= listCost[0] && listCost[2] <= listCost[1])
+        if (listCost[2] < listCost[0] && listCost[2] < listCost[1])
         {
             lastMode = 2;
             cu->getCUMvField(REF_PIC_LIST_0)->setAllMv(mvBidir[0], partSize, partAddr, 0, partIdx);


More information about the x265-commits mailing list