[x265] [PATCH] Added check for mode 34

dtyx265 at gmail.com dtyx265 at gmail.com
Mon Aug 25 19:19:12 CEST 2014


# HG changeset patch
# User David T Yuen <dtyx265 at gmail.com>
# Date 1408987126 25200
# Node ID 157adb623151141d51c01bc085d563195f55e051
# Parent  6e6756f94b27c3ef30f6159f1880112a7ff978e3
Added check for mode 34

For fast intra search in EstimateRow::estimateCUCost check intra mode 34

diff -r 6e6756f94b27 -r 157adb623151 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Fri Aug 22 15:53:34 2014 -0500
+++ b/source/encoder/slicetype.cpp	Mon Aug 25 10:18:46 2014 -0700
@@ -1722,6 +1722,11 @@
                 cost = satd(m_me.fenc, FENC_STRIDE, &m_predictions[mode * predsize], cuSize);
             COPY2_IF_LT(acost, cost, lowmode, mode);
         }
+        if (lowmode == 33)
+        {
+            cost = satd(m_me.fenc, FENC_STRIDE, &m_predictions[34 * predsize], cuSize);
+            COPY2_IF_LT(acost, cost, lowmode, mode);
+        }
         if (acost < icost)
             icost = acost;
 


More information about the x265-devel mailing list