<div dir="ltr">Pushed to default.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 26, 2019 at 11:18 AM Pooja Venkatesan <<a href="mailto:pooja@multicorewareinc.com">pooja@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"># HG changeset patch<br>
# User Pooja Venkatesan <<a href="mailto:pooja@multicorewareinc.com" target="_blank">pooja@multicorewareinc.com</a>><br>
# Date 1564118589 -19800<br>
#      Fri Jul 26 10:53:09 2019 +0530<br>
# Node ID 661effca62e3904bf3577ac4b60670e2f17f643e<br>
# Parent  21db162c8622677c41a4fc77a14a59eb7326b46a<br>
motion: Enable star search for HME Level-0<br>
<br>
diff -r 21db162c8622 -r 661effca62e3 source/encoder/motion.cpp<br>
--- a/source/encoder/motion.cpp Fri Jul 12 16:22:24 2019 +0530<br>
+++ b/source/encoder/motion.cpp Fri Jul 26 10:53:09 2019 +0530<br>
@@ -367,12 +367,13 @@<br>
                                        int &            bPointNr,<br>
                                        int &            bDistance,<br>
                                        int              earlyExitIters,<br>
-                                       int              merange)<br>
+                                       int              merange,<br>
+                                       int              hme)<br>
 {<br>
     ALIGN_VAR_16(int, costs[16]);<br>
     pixel* fenc = fencPUYuv.m_buf[0];<br>
-    pixel* fref = ref->fpelPlane[0] + blockOffset;<br>
-    intptr_t stride = ref->lumaStride;<br>
+    pixel* fref = (hme? ref->fpelLowerResPlane[0] : ref->fpelPlane[0]) + blockOffset;<br>
+    intptr_t stride = hme? ref->lumaStride / 2 : ref->lumaStride;<br>
<br>
     MV omv = bmv;<br>
     int saved = bcost;<br>
@@ -1134,7 +1135,7 @@<br>
         int bDistance = 0;<br>
<br>
         const int EarlyExitIters = 3;<br>
-        StarPatternSearch(ref, mvmin, mvmax, bmv, bcost, bPointNr, bDistance, EarlyExitIters, merange);<br>
+        StarPatternSearch(ref, mvmin, mvmax, bmv, bcost, bPointNr, bDistance, EarlyExitIters, merange, hme);<br>
         if (bDistance == 1)<br>
         {<br>
             // if best distance was only 1, check two missing points.  If no new point is found, stop<br>
@@ -1207,7 +1208,7 @@<br>
             bDistance = 0;<br>
             bPointNr = 0;<br>
             const int MaxIters = 32;<br>
-            StarPatternSearch(ref, mvmin, mvmax, bmv, bcost, bPointNr, bDistance, MaxIters, merange);<br>
+            StarPatternSearch(ref, mvmin, mvmax, bmv, bcost, bPointNr, bDistance, MaxIters, merange, hme);<br>
<br>
             if (bDistance == 1)<br>
             {<br>
diff -r 21db162c8622 -r 661effca62e3 source/encoder/motion.h<br>
--- a/source/encoder/motion.h   Fri Jul 12 16:22:24 2019 +0530<br>
+++ b/source/encoder/motion.h   Fri Jul 26 10:53:09 2019 +0530<br>
@@ -109,7 +109,8 @@<br>
                                   int &            bPointNr,<br>
                                   int &            bDistance,<br>
                                   int              earlyExitIters,<br>
-                                  int              merange);<br>
+                                  int              merange,<br>
+                                  int              hme);<br>
 };<br>
 }<br>
<br>
_______________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font face="georgia, serif">Regards,</font><div><font face="georgia, serif">Aruna</font></div></div></div>