[x265] [PATCH] Fix boundary case for Gaussian filter
Somu Vineela
somu at multicorewareinc.com
Fri Mar 18 03:18:58 UTC 2022
>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20220318/d34bf637/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix_boundary_case_for_gaussian_filter.diff
Type: application/octet-stream
Size: 1028 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20220318/d34bf637/attachment.obj>
More information about the x265-devel
mailing list