<div dir="ltr">This patch has been pushed to the master branch. <br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>__________________________</b></div><div><b>Karam Singh</b></div><div><b>Ph.D. IIT Guwahati</b></div><div><font size="1">Senior Software (Video Coding) Engineer  </font></div><div><font size="1">Mobile: +91 8011279030</font></div><div><font size="1">Block 9A, 6th floor, DLF Cyber City</font></div><div><font size="1">Manapakkam, Chennai 600 089</font></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 10, 2024 at 10:54 PM Dash Santosh <<a href="mailto:dash.sathyanarayanan@multicorewareinc.com">dash.sathyanarayanan@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"><div>This patch optimizes the frame threads count on Windows ARM devices. The number of frame threads is set to the number of CPU cores, which enhances the overall encoding performance on ARM-based Windows devices.</div><div><br></div><div>From 09c947262350231868608e3e30b03cfdc1230b25 Mon Sep 17 00:00:00 2001<br>From: Dash Santosh <<a href="mailto:dash.sathyanarayanan@multicorewareinc.com" target="_blank">dash.sathyanarayanan@multicorewareinc.com</a>><br>Date: Tue, 10 Sep 2024 20:29:20 +0530<br>Subject: [PATCH] Framethreads tuning for Windows ARM devices<br><br>---<br> source/common/threadpool.cpp | 4 ++++<br> 1 file changed, 4 insertions(+)<br><br>diff --git a/source/common/threadpool.cpp b/source/common/threadpool.cpp<br>index 91e82a24e..9c27be783 100644<br>--- a/source/common/threadpool.cpp<br>+++ b/source/common/threadpool.cpp<br>@@ -669,7 +669,11 @@ void ThreadPool::getFrameThreadsCount(x265_param* p, int cpuCount)<br>     else if (cpuCount >= 16)<br>         p->frameNumThreads = 4;<br>     else if (cpuCount >= 8)<br>+#if _WIN32 && X265_ARCH_ARM64<br>+        p->frameNumThreads = cpuCount;<br>+#else<br>         p->frameNumThreads = 3;<br>+#endif<br>     else if (cpuCount >= 4)<br>         p->frameNumThreads = 2;<br>     else<font color="#888888"><br>--<br>2.43.0.windows.1</font></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><tbody><tr><td valign="top" align="center" style="padding-right:10px"><div><u><a rel="noopener noreferrer" href="https://multicorewareinc.com/" style="color:rgb(17,85,204)" target="_blank"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4xJVw2ouL-7kSIsC53GaQNdgsrl9bgcOifC08GwaQJPu1JnKnqfZTU30s7zxLJ1jTg-UY85QJ4KXpg5"></a><br></u></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" align="center" style="padding-right:10px"><span style="padding:0px;margin:0px"> <a rel="noopener noreferrer" href="https://www.linkedin.com/company/multicoreware-inc/" style="color:rgb(17,85,204)" target="_blank"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4ypKpdFAdtD5ghJ8ZhhSvThTPpbqhR7s_V5Wtz3SVRR9MQSPtYqiB4r6Q8gFg0JBX8_pEAxYqx8IcDP"></a>  <a rel="noopener noreferrer" href="https://twitter.com/MulticoreWare" style="color:rgb(17,85,204)" target="_blank"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4ywduRorDK_UGiphRmWW7yAHbFQFYtBNfKTy3tMcr7MVSt1kfuKUkrOUHYuQU7m3aFao_fcyhp3tUxR"></a>  <a rel="noopener noreferrer" href="https://www.facebook.com/multicoreware" style="color:rgb(17,85,204)" target="_blank"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4wzBbm2U0HqcrA18mfNe5ZYnu_7R21iHbKJK9fpG2-E0XGI-2tYbO8d32UMcqxJWCQTCt8_6e83HoMT"></a>  <a rel="noopener noreferrer" href="https://www.youtube.com/channel/UCXZ1A1MzS5JwBqwBkNfsBBw?sub_confirmation=1" style="color:rgb(17,85,204)" target="_blank"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4zux15kq6I5m66gDXz7UhzTaY8c72DXs-Vr3A6tehpEWsj_U7hcRzDAgzHHNql5Rj8jR62YBJLuOFYu"></a>  <a rel="noopener noreferrer" href="https://www.instagram.com/multicoreware.inc/" style="color:rgb(17,85,204)" target="_blank"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4xCleID9p5NJ9j5vsPEQFpunbcFVzF_hieeJvA1HjLt5HLx6z9CT___VxTzWCrPzMXiojTcwionPe8F"></a></span><br></td></tr></tbody></table></td><td bgcolor="#999999" rowspan="2" width="1"><br></td><td style="vertical-align:top;padding-left:10px"><p style="margin:0px;line-height:20px"><span style="color:rgb(32,85,254)"><b><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:16px"><span style="color:rgb(68,68,68)"><span style="font-family:Arial,sans-serif">Dash Santosh</span></span></span></span></b></span><br></p><p style="margin:0px 0px 5px;line-height:20px"><span style="color:rgb(36,36,36)"><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:16px"><b style="color:rgb(102,102,102);font-family:Arial,sans-serif;font-size:x-small">Research Engineer, Video Engineering</b></span></span></span><br></p><p style="margin:0px;line-height:16px"><span style="color:rgb(36,36,36)"><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:11px"><span style="color:rgb(88,88,88)"><span style="font-family:Arial,sans-serif"><span style="font-size:x-small">Mobile: +91 78679 43737</span></span></span></span></span></span><br></p><p style="margin:0px;line-height:16px"><font color="#585858" face="Arial, sans-serif"><span style="font-size:10px">IndiQube Echo Point, Avinashi Road</span></font></p><p style="margin:0px;line-height:16px"><span style="color:rgb(36,36,36)"><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:11px"><span style="color:rgb(88,88,88)"><span style="font-family:Arial,sans-serif"><span style="font-size:x-small">Coimbatore - 641 014</span></span></span></span></span></span><br></p><p style="margin:0px;line-height:16px"><span style="color:rgb(36,36,36)"><span style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:11px"><span style="color:rgb(88,88,88)"><span style="font-family:Arial,sans-serif"><span style="font-size:x-small"><br></span></span></span></span></span></span></p></td></tr><tr><td valign="top" align="center" style="padding-right:10px"><br></td><td valign="top" style="padding:0px 0px 0px 10px"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4yP_T0tZnWYAbKHbRi0Pt8l8koPJBmOijhmBRMYVotNrmftxEnTmN93Ac-sC2XTKbHwXR-SV97SisS9"><br></td></tr></tbody></table></div></div></div>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div>