[x265-commits] [x265] bug fix in scalefactor 0

Kavitha Sampath kavitha at multicorewareinc.com
Wed May 9 01:03:03 CEST 2018


details:   http://hg.videolan.org/x265/rev/0968a46d6ba4
branches:  stable
changeset: 12342:0968a46d6ba4
user:      Kavitha Sampath <kavitha at multicorewareinc.com>
date:      Fri May 04 14:56:10 2018 +0530
description:
bug fix in scalefactor 0

diffstat:

 source/encoder/analysis.cpp |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 59ae5bf705ae -r 0968a46d6ba4 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Wed Apr 11 17:30:34 2018 +0530
+++ b/source/encoder/analysis.cpp	Fri May 04 14:56:10 2018 +0530
@@ -2500,6 +2500,15 @@ void Analysis::recodeCU(const CUData& pa
                         uint8_t candDir[MRG_MAX_NUM_CANDS];
                         mode.cu.getInterMergeCandidates(pu.puAbsPartIdx, part, candMvField, candDir);
                         uint8_t mvpIdx = mode.cu.m_mvpIdx[0][pu.puAbsPartIdx];
+                        if (mode.cu.isBipredRestriction())
+                        {
+                            /* do not allow bidir merge candidates if PU is smaller than 8x8, drop L1 reference */
+                            if (candDir[mvpIdx] == 3)
+                            {
+                                candDir[mvpIdx] = 1;
+                                candMvField[mvpIdx][1].refIdx = REF_NOT_VALID;
+                            }
+                        }
                         mode.cu.setPUInterDir(candDir[mvpIdx], pu.puAbsPartIdx, part);
                         mode.cu.setPUMv(0, candMvField[mvpIdx][0].mv, pu.puAbsPartIdx, part);
                         mode.cu.setPUMv(1, candMvField[mvpIdx][1].mv, pu.puAbsPartIdx, part);


More information about the x265-commits mailing list