[x265] [PATCH] fix: use mvp after initialization
sagar at multicorewareinc.com
sagar at multicorewareinc.com
Fri Nov 6 07:25:56 CET 2015
# HG changeset patch
# User sagar at multicorewareinc.com
# Date 1446791127 -19800
# Fri Nov 06 11:55:27 2015 +0530
# Node ID 45ea73c63c12c66e5e5e777e80853c8b3cadf101
# Parent 3381ed17d8728528d981eb2e2c5618ef09bdbaa9
fix: use mvp after initialization
diff -r 3381ed17d872 -r 45ea73c63c12 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Fri Nov 06 11:06:43 2015 +0530
+++ b/source/encoder/slicetype.cpp Fri Nov 06 11:55:27 2015 +0530
@@ -2130,10 +2130,10 @@
intptr_t stride = X265_LOWRES_CU_SIZE;
pixel *src = fref->lowresMC(pelOffset, mvc[idx], subpelbuf, stride);
int cost = tld.me.bufSATD(src, stride);
+ COPY2_IF_LT(mvpcost, cost, mvp, mvc[idx]);
/* Except for mv0 case, everyting else is likely to have enough residual to not trigger the skip. */
if (!mvp.notZero() && bBidir)
skipCost = cost;
- COPY2_IF_LT(mvpcost, cost, mvp, mvc[idx]);
}
}
More information about the x265-devel
mailing list