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

Deepthi Nandakumar deepthi at multicorewareinc.com
Mon Oct 21 12:52:02 CEST 2013


Thanks - unintended duplicate copy. Pushed the same fix before I saw this.


On Mon, Oct 21, 2013 at 1:16 PM, Gopu Govindaswamy <
gopu at multicorewareinc.com> wrote:

> # 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],
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20131021/a1632e0f/attachment.html>


More information about the x265-devel mailing list