[x265] [PATCH] lookahead: fix cost estimation, use previous result when calculation is skipped
deepthidevaki at multicorewareinc.com
deepthidevaki at multicorewareinc.com
Wed Sep 18 14:51:35 CEST 2013
# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1379508562 -19800
# Node ID f3f6eb53a7854220ef06c5b0f925e485929ab31f
# Parent 9d5d4e4e6d6ca312cb443f18fe6880127e5f6c75
lookahead: fix cost estimation, use previous result when calculation is skipped
diff -r 9d5d4e4e6d6c -r f3f6eb53a785 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Wed Sep 18 11:34:10 2013 +0530
+++ b/source/encoder/slicetype.cpp Wed Sep 18 18:19:22 2013 +0530
@@ -363,8 +363,11 @@
for (int i = 0; i < 1 + bBidir; i++)
{
if (!bDoSearch[i])
+ {
+ /* Use previously calculated cost */
+ COPY2_IF_LT(bcost, *fenc_costs[i], listused, i + 1);
continue;
-
+ }
int numc = 0;
MV mvc[4], mvp;
MV *fenc_mv = fenc_mvs[i];
More information about the x265-devel
mailing list