[x265] [PATCH] slicetype: fix bug in intra estimation in Lookahead::estimateCUCost()

Steve Borho steve at borho.org
Wed Sep 18 23:16:54 CEST 2013


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1379538813 18000
#      Wed Sep 18 16:13:33 2013 -0500
# Node ID 5bab261d0dd7ac68c4af3837853d48d56017d4d6
# Parent  197dd6d2f54d7193d7dcf28d03a0b3dccb353fad
slicetype: fix bug in intra estimation in Lookahead::estimateCUCost()

diff -r 197dd6d2f54d -r 5bab261d0dd7 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Wed Sep 18 13:35:18 2013 -0500
+++ b/source/encoder/slicetype.cpp	Wed Sep 18 16:13:33 2013 -0500
@@ -427,7 +427,7 @@
         pAbove1[cuSize - 1] = pAbove0[cuSize - 1];
         pLeft1[0] = pLeft0[0];
         pLeft1[cuSize - 1] = pLeft0[cuSize - 1];
-        for (int i = 1; i < cuSize - 1; i++)
+        for (int i = 1; i < 2 * cuSize - 1; i++)
         {
             pAbove1[i] = (pAbove0[i - 1] + 2 * pAbove0[i] + pAbove0[i + 1] + 2) >> 2;
             pLeft1[i] = (pLeft0[i - 1] + 2 * pLeft0[i] + pLeft0[i + 1] + 2) >> 2;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 922 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130918/460ee93c/attachment-0001.bin>


More information about the x265-devel mailing list