[x265] [PATCH] lowres : removed duplicate code for extending right and bottom margin

Gopu Govindaswamy gopu at multicorewareinc.com
Mon Oct 21 09:46:53 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1382341604 -19800
# Node ID ff8860e0b3082cbb1848e0f5c89e73dc1d7aa87e
# Parent  fabb25ae4db4a06073decead3836521a14b5bde9
lowres : removed duplicate code for extending right and bottom margin

diff -r fabb25ae4db4 -r ff8860e0b308 source/common/lowres.cpp
--- a/source/common/lowres.cpp	Sat Oct 19 18:08:07 2013 +0800
+++ b/source/common/lowres.cpp	Mon Oct 21 13:16:44 2013 +0530
@@ -159,24 +159,6 @@
         ::memcpy(src + y * srcStride, src, sizeof(Pel) * (extWidth));
     }
 
-    /* extending right margin*/
-    if (2 * width > orig->getWidth())
-    {
-        for (y = 0; y < srcHeight; y++)
-        {
-            ::memset(src + srcWidth, src[srcWidth - 1], sizeof(Pel) * (X265_LOWRES_CU_SIZE - 1));
-            src += srcStride;
-        }
-    }
-
-    /* extending bottom margin */
-    src = orig->getLumaAddr() + (srcHeight - 1) * srcStride;
-
-    for (y = 1; y <= 2 * lines - srcHeight; y++)
-    {
-        ::memcpy(src + y * srcStride, src, sizeof(Pel) * (extWidth));
-    }
-
     /* downscale and generate 4 HPEL planes for lookahead */
     primitives.frame_init_lowres_core(orig->getLumaAddr(),
                                       lowresPlane[0], lowresPlane[1], lowresPlane[2], lowresPlane[3],


More information about the x265-devel mailing list