[x265] [PATCH] bug fix in scalefactor 0

kavitha at multicorewareinc.com kavitha at multicorewareinc.com
Mon May 7 14:25:40 CEST 2018


# HG changeset patch
# User Kavitha Sampath <kavitha at multicorewareinc.com>
# Date 1525425970 -19800
#      Fri May 04 14:56:10 2018 +0530
# Node ID b97a65d1227fbe8e80ed15a426ec4bc44537c247
# Parent  147b7dcee675a7cd394125788e12909cdce0c373
bug fix in scalefactor 0

diff -r 147b7dcee675 -r b97a65d1227f source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Wed May 02 15:14:30 2018 +0530
+++ b/source/encoder/analysis.cpp	Fri May 04 14:56:10 2018 +0530
@@ -2500,6 +2500,15 @@
                         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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hevc_latest.patch
Type: text/x-patch
Size: 1487 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180507/615888ea/attachment.bin>


More information about the x265-devel mailing list