[x265] analysis: don't add the cost of picture boundary CU to avgCost [CHANGES OUTPUT]
Satoshi Nakagawa
nakagawa424 at oki.com
Thu Nov 13 10:43:59 CET 2014
# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1415871635 -32400
# Thu Nov 13 18:40:35 2014 +0900
# Node ID cc70f51c5b6dd6009c5f2b9876c9fc8108c75c62
# Parent 18aefbde72ab2dfaa0d4edeea7fd0ab4f9a09f9c
analysis: don't add the cost of picture boundary CU to avgCost [CHANGES OUTPUT]
diff -r 18aefbde72ab -r cc70f51c5b6d source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp Wed Nov 12 17:17:56 2014 -0600
+++ b/source/encoder/analysis.cpp Thu Nov 13 18:40:35 2014 +0900
@@ -762,7 +762,7 @@
checkBestMode(*splitPred, depth);
}
- if (!depth || md.bestMode->cu.isInter(0))
+ if (mightNotSplit && (!depth || md.bestMode->cu.isInter(0)))
{
/* early-out statistics */
FrameData& curEncData = const_cast<FrameData&>(*m_frame->m_encData);
@@ -1044,7 +1044,7 @@
md.bestMode = splitPred;
}
- if (!depth || md.bestMode->cu.isInter(0))
+ if (mightNotSplit && (!depth || md.bestMode->cu.isInter(0)))
{
/* early-out statistics */
FrameData& curEncData = const_cast<FrameData&>(*m_frame->m_encData);
More information about the x265-devel
mailing list