[x265] [PATCH STABLE] lowres intra fixes

Steve Borho steve at borho.org
Tue Sep 24 07:54:35 CEST 2013


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1380000448 18000
#      Tue Sep 24 00:27:28 2013 -0500
# Branch stable
# Node ID 46cc93c497c58d7ecb2abfde5556274c7a9f527f
# Parent  90be63021e7dcdbc607ce6d51cfe70a1ce713705
lowres intra fixes

diff -r 90be63021e7d -r 46cc93c497c5 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Mon Sep 23 14:31:02 2013 +0530
+++ b/source/encoder/slicetype.cpp	Tue Sep 24 00:27:28 2013 -0500
@@ -412,10 +412,10 @@
     {
         int nLog2SizeMinus2 = g_convertToBit[cuSize]; // partition size
 
-        pixel _above0[32 * 4 + 1], *const pAbove0 = _above0 + 2 * 32;
-        pixel _above1[32 * 4 + 1], *const pAbove1 = _above1 + 2 * 32;
-        pixel _left0[32 * 4 + 1], *const pLeft0 = _left0 + 2 * 32;
-        pixel _left1[32 * 4 + 1], *const pLeft1 = _left1 + 2 * 32;
+        pixel _above0[X265_LOWRES_CU_SIZE * 4 + 1], *const pAbove0 = _above0 + 2 * X265_LOWRES_CU_SIZE;
+        pixel _above1[X265_LOWRES_CU_SIZE * 4 + 1], *const pAbove1 = _above1 + 2 * X265_LOWRES_CU_SIZE;
+        pixel _left0[X265_LOWRES_CU_SIZE * 4 + 1], *const pLeft0 = _left0 + 2 * X265_LOWRES_CU_SIZE;
+        pixel _left1[X265_LOWRES_CU_SIZE * 4 + 1], *const pLeft1 = _left1 + 2 * X265_LOWRES_CU_SIZE;
 
         pixel *pix_cur = fenc->lowresPlane[0] + pelOffset;
 
@@ -434,9 +434,9 @@
         // filtering with [1 2 1]
         // assume getUseStrongIntraSmoothing() is disabled
         pAbove1[0] = pAbove0[0];
-        pAbove1[cuSize - 1] = pAbove0[cuSize - 1];
+        pAbove1[2 * cuSize - 1] = pAbove0[2 * cuSize - 1];
         pLeft1[0] = pLeft0[0];
-        pLeft1[cuSize - 1] = pLeft0[cuSize - 1];
+        pLeft1[2 * cuSize - 1] = pLeft0[2 * cuSize - 1];
         for (int i = 1; i < 2 * cuSize - 1; i++)
         {
             pAbove1[i] = (pAbove0[i - 1] + 2 * pAbove0[i] + pAbove0[i + 1] + 2) >> 2;


More information about the x265-devel mailing list