[x265] [PATCH] Fix boundary case for Gaussian filter

Mahesh Pittala mahesh at multicorewareinc.com
Mon Mar 21 11:50:14 UTC 2022


pushed to master branch

On Fri, Mar 18, 2022 at 8:49 AM Somu Vineela <somu at multicorewareinc.com>
wrote:

> From 36b088057f731d9b1ac8ac52df03fd95d2692430 Mon Sep 17 00:00:00 2001
> From: Somu Vineela <somu at multicorewareinc.com>
> Date: Mon, 7 Mar 2022 10:13:08 +0530
> Subject: [PATCH] Fix boundary case for Gaussian filter
>
> ---
>  source/encoder/slicetype.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/source/encoder/slicetype.cpp b/source/encoder/slicetype.cpp
> index e77f0ac70..1222a8511 100644
> --- a/source/encoder/slicetype.cpp
> +++ b/source/encoder/slicetype.cpp
> @@ -184,7 +184,7 @@ void edgeFilter(Frame *curFrame, x265_param* param)
>      {
>          for (int colNum = 0; colNum < width; colNum++)
>          {
> -            if ((rowNum >= 2) && (colNum >= 2) && (rowNum != height - 2)
> && (colNum != width - 2)) //Ignoring the border pixels of the picture
> +            if ((rowNum >= 2) && (colNum >= 2) && (rowNum < height - 2)
> && (colNum < width - 2)) //Ignoring the border pixels of the picture
>              {
>                  /*  5x5 Gaussian filter
>                      [2   4   5   4   2]
> --
> 2.30.0.windows.1
>
> _______________________________________________
> 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/20220321/3d45162a/attachment.html>


More information about the x265-devel mailing list