<div dir="ltr">Please find the updated version of the patch.<br><br>From 87774f5edf3be2afeaafeef43196f83be7e89912 Mon Sep 17 00:00:00 2001<br>From: Kirithika <<a href="mailto:kirithika@multicorewareinc.com">kirithika@multicorewareinc.com</a>><br>Date: Tue, 20 Dec 2022 11:29:27 +0530<br>Subject: [PATCH] Cleanup unused variables and fix build warnings<br><br>---<br> source/common/param.cpp          | 2 +-<br> source/common/temporalfilter.cpp | 2 +-<br> source/encoder/ratecontrol.cpp   | 2 --<br> 3 files changed, 2 insertions(+), 4 deletions(-)<br><br>diff --git a/source/common/param.cpp b/source/common/param.cpp<br>index eeda40e..03c3beb 100755<br>--- a/source/common/param.cpp<br>+++ b/source/common/param.cpp<br>@@ -824,7 +824,7 @@ int x265_scenecut_aware_qp_param_parse(x265_param* p, const char* name, const ch<br>                     p->bwdNonRefQpDelta[i] = p->bwdNonRefQpDelta[i - 1] - (0.15 * p->bwdNonRefQpDelta[i - 1]);<br>                 }<br>             }<br>-            else if (36 == sscanf(value, "%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf"<br>+            else if (36 == sscanf(value, "%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf"<br>                 , &window1[0], &refQpDelta1[0], &nonRefQpDelta1[0], &window1[1], &refQpDelta1[1], &nonRefQpDelta1[1]<br>                 , &window1[2], &refQpDelta1[2], &nonRefQpDelta1[2], &window1[3], &refQpDelta1[3], &nonRefQpDelta1[3]<br>                 , &window1[4], &refQpDelta1[4], &nonRefQpDelta1[4], &window1[5], &refQpDelta1[5], &nonRefQpDelta1[5]<br>diff --git a/source/common/temporalfilter.cpp b/source/common/temporalfilter.cpp<br>index 01a6ddf..215feaa 100644<br>--- a/source/common/temporalfilter.cpp<br>+++ b/source/common/temporalfilter.cpp<br>@@ -336,7 +336,7 @@ int TemporalFilter::motionErrorLumaSSD(<br>         /* copy PU block into cache */<br>         primitives.pu[partEnum].copy_pp(predPUYuv.m_buf[0], FENC_STRIDE, bufferRowStart, buffStride);<br> <br>-        error = <a href="http://primitives.cu">primitives.cu</a>[partEnum].sse_pp(m_metld->me.fencPUYuv.m_buf[0], FENC_STRIDE, predPUYuv.m_buf[0], FENC_STRIDE);<br>+        error = (int)<a href="http://primitives.cu">primitives.cu</a>[partEnum].sse_pp(m_metld->me.fencPUYuv.m_buf[0], FENC_STRIDE, predPUYuv.m_buf[0], FENC_STRIDE);<br> <br> #endif<br>         if (error > besterror)<br>diff --git a/source/encoder/ratecontrol.cpp b/source/encoder/ratecontrol.cpp<br>index 17d8c1e..b645676 100644<br>--- a/source/encoder/ratecontrol.cpp<br>+++ b/source/encoder/ratecontrol.cpp<br>@@ -3347,7 +3347,6 @@ double RateControl::forwardMasking(Frame* curFrame, double q)<br>     uint32_t maxWindowSize = uint32_t((m_param->fwdMaxScenecutWindow / 1000.0) * (m_param->fpsNum / m_param->fpsDenom) + 0.5);<br>     uint32_t windowSize[6], prevWindow = 0;<br>     int lastScenecut = m_top->m_rateControl->m_lastScenecut;<br>-    int lastIFrame = m_top->m_rateControl->m_lastScenecutAwareIFrame;<br> <br>     double fwdRefQpDelta[6], fwdNonRefQpDelta[6], sliceTypeDelta[6];<br>     for (int i = 0; i < 6; i++)<br>@@ -3424,7 +3423,6 @@ double RateControl::forwardMasking(Frame* curFrame, double q)<br> double RateControl::backwardMasking(Frame* curFrame, double q)<br> {<br>     double qp = x265_qScale2qp(q);<br>-    uint32_t maxWindowSize = uint32_t((m_param->bwdMaxScenecutWindow / 1000.0) * (m_param->fpsNum / m_param->fpsDenom) + 0.5);<br>     uint32_t windowSize[6], prevWindow = 0;<br>     int lastScenecut = m_top->m_rateControl->m_lastScenecut;<br> <br>-- <br>2.10.2.windows.1<br><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><i>Thanks,</i><div><i>Kirithika</i></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 20, 2022 at 3:27 PM Kirithika Kalirathnam <<a href="mailto:kirithika@multicorewareinc.com">kirithika@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 44dcf54c016cc45f7f0da3c6ff30f2ee57373335 Mon Sep 17 00:00:00 2001<br>From: Kirithika <<a href="mailto:kirithika@multicorewareinc.com" target="_blank">kirithika@multicorewareinc.com</a>><br>Date: Tue, 20 Dec 2022 11:29:27 +0530<br>Subject: [PATCH] Cleanup unused variables and fix build warnings<br><br>---<br> source/common/param.cpp        | 2 +-<br> source/encoder/ratecontrol.cpp | 2 --<br> 2 files changed, 1 insertion(+), 3 deletions(-)<br><br>diff --git a/source/common/param.cpp b/source/common/param.cpp<br>index eeda40eb5..03c3beb70 100755<br>--- a/source/common/param.cpp<br>+++ b/source/common/param.cpp<br>@@ -824,7 +824,7 @@ int x265_scenecut_aware_qp_param_parse(x265_param* p, const char* name, const ch<br>                     p->bwdNonRefQpDelta[i] = p->bwdNonRefQpDelta[i - 1] - (0.15 * p->bwdNonRefQpDelta[i - 1]);<br>                 }<br>             }<br>-            else if (36 == sscanf(value, "%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf"<br>+            else if (36 == sscanf(value, "%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf"<br>                 , &window1[0], &refQpDelta1[0], &nonRefQpDelta1[0], &window1[1], &refQpDelta1[1], &nonRefQpDelta1[1]<br>                 , &window1[2], &refQpDelta1[2], &nonRefQpDelta1[2], &window1[3], &refQpDelta1[3], &nonRefQpDelta1[3]<br>                 , &window1[4], &refQpDelta1[4], &nonRefQpDelta1[4], &window1[5], &refQpDelta1[5], &nonRefQpDelta1[5]<br>diff --git a/source/encoder/ratecontrol.cpp b/source/encoder/ratecontrol.cpp<br>index 17d8c1e0d..b645676c8 100644<br>--- a/source/encoder/ratecontrol.cpp<br>+++ b/source/encoder/ratecontrol.cpp<br>@@ -3347,7 +3347,6 @@ double RateControl::forwardMasking(Frame* curFrame, double q)<br>     uint32_t maxWindowSize = uint32_t((m_param->fwdMaxScenecutWindow / 1000.0) * (m_param->fpsNum / m_param->fpsDenom) + 0.5);<br>     uint32_t windowSize[6], prevWindow = 0;<br>     int lastScenecut = m_top->m_rateControl->m_lastScenecut;<br>-    int lastIFrame = m_top->m_rateControl->m_lastScenecutAwareIFrame;<br> <br>     double fwdRefQpDelta[6], fwdNonRefQpDelta[6], sliceTypeDelta[6];<br>     for (int i = 0; i < 6; i++)<br>@@ -3424,7 +3423,6 @@ double RateControl::forwardMasking(Frame* curFrame, double q)<br> double RateControl::backwardMasking(Frame* curFrame, double q)<br> {<br>     double qp = x265_qScale2qp(q);<br>-    uint32_t maxWindowSize = uint32_t((m_param->bwdMaxScenecutWindow / 1000.0) * (m_param->fpsNum / m_param->fpsDenom) + 0.5);<br>     uint32_t windowSize[6], prevWindow = 0;<br>     int lastScenecut = m_top->m_rateControl->m_lastScenecut;<br> <br>-- <br>2.28.0.windows.1<br><br><div><div dir="ltr"><div dir="ltr"><i>Thanks,</i><div><i>Kirithika</i></div></div></div></div></div>
</blockquote></div>