<div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 11, 2024 at 6:33 PM Anusuya Kumarasamy <<a href="mailto:anusuya.kumarasamy@multicorewareinc.com">anusuya.kumarasamy@multicorewareinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">From 7446c6a870002db01f75ef5fc8893446c7e59a1c Mon Sep 17 00:00:00 2001<br>From: AnusuyaKumarasamy <<a href="mailto:anusuya.kumarasamy@multicorewareinc.com" target="_blank">anusuya.kumarasamy@multicorewareinc.com</a>><br>Date: Fri, 10 Feb 2023 16:44:08 +0530<br>Subject: [PATCH 01/10] Add buffer for reference picture in bilateral filter<br><br>---<br> source/common/temporalfilter.cpp | 9 ++++++---<br> 1 file changed, 6 insertions(+), 3 deletions(-)<br><br>diff --git a/source/common/temporalfilter.cpp b/source/common/temporalfilter.cpp<br>index 215feaa0f..5b75517ee 100644<br>--- a/source/common/temporalfilter.cpp<br>+++ b/source/common/temporalfilter.cpp<br>@@ -575,6 +575,9 @@ void TemporalFilter::bilateralFilter(Frame* frame,<br>                         else<br>                             correctedPicsStride = refPicInfo->compensatedPic->m_strideC;<br> <br>+                        const intptr_t pelOffset = y * correctedPicsStride + x;<br>+                        primitives.pu[1].copy_pp(m_metld->me.fencPUYuv.m_buf[0], FENC_STRIDE, refPicInfo->compensatedPic->m_picOrg[c] + pelOffset, correctedPicsStride);<br>+<br>                         double variance = 0, diffsum = 0;<br>                         for (int y1 = 0; y1 < blkSize - 1; y1++)<br>                         {<br>@@ -584,9 +587,9 @@ void TemporalFilter::bilateralFilter(Frame* frame,<br>                                 int pixR = *(srcPel + x1 + 1);<br>                                 int pixD = *(srcPel + x1 + srcStride);<br> <br>-                                int ref = *(refPicInfo->compensatedPic->m_picOrg[c] + ((y + y1) * correctedPicsStride + x + x1));<br>-                                int refR = *(refPicInfo->compensatedPic->m_picOrg[c] + ((y + y1) * correctedPicsStride + x + x1 + 1));<br>-                                int refD = *(refPicInfo->compensatedPic->m_picOrg[c] + ((y + y1 + 1) * correctedPicsStride + x + x1));<br>+                                int ref = *(m_metld->me.fencPUYuv.m_buf[0] + ((y1)*FENC_STRIDE + x1));<br>+                                int refR = *(m_metld->me.fencPUYuv.m_buf[0] + ((y1)*FENC_STRIDE + x1 + 1));<br>+                                int refD = *(m_metld->me.fencPUYuv.m_buf[0] + ((y1 + 1) * FENC_STRIDE + x1));<br> <br>                                 int diff = pix - ref;<br>                                 int diffR = pixR - refR;<br>-- <br>2.36.0.windows.1<br><br></div>
</blockquote></div>