[x265] [PATCH] Lookahead: wavefront bugfix

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Mon Oct 21 12:51:52 CEST 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1382352679 -19800
# Node ID a13d5b9cf15e306823f840eb67d6a3c0e0f7eba9
# Parent  b2aa2aad2c6654797befe6098b7d14609b060299
Lookahead: wavefront bugfix.

conditionally assign estimated cost to avoid overwriting intra cost.

diff -r b2aa2aad2c66 -r a13d5b9cf15e source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Mon Oct 21 12:55:18 2013 +0530
+++ b/source/encoder/slicetype.cpp	Mon Oct 21 16:21:19 2013 +0530
@@ -240,8 +240,8 @@
 
         if (b != p1)
             score = (uint64_t)score * 100 / (130 + cfg->param.bFrameBias);
-
-        fenc->costEst[b - p0][p1 - b] = score;
+        if (b != p0 || b != p1) //Not Intra cost
+            fenc->costEst[b - p0][p1 - b] = score;
     }
 
     if (bIntraPenalty)


More information about the x265-devel mailing list