<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Steve Borho</b> <span dir="ltr"><<a href="mailto:steve@borho.org">steve@borho.org</a>></span><br>
Date: Thu, Oct 17, 2013 at 1:54 PM<br>Subject: Re: [x265] [PATCH] Added random stride in chroma unit test code<br>To: Development for x265 <<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a>><br><br>
<br><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Thu, Oct 17, 2013 at 2:23 AM,  <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Praveen Tiwari<br>
# Date 1381994595 -19800<br>
# Node ID 688c171cc71ad23d7d24e11ae98039473952348d<br>
# Parent  68f97c7f08392d387046736ae3e86095c653fd05<br>
Added random stride in chroma unit test code<br></blockquote><div><br></div></div><div>>>this doesn't apply on the tip</div><div><br></div><div>Oh sorry, give me few minutes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">

diff -r 68f97c7f0839 -r 688c171cc71a source/test/ipfilterharness.cpp<br>
--- a/source/test/ipfilterharness.cpp   Thu Oct 17 12:52:11 2013 +0530<br>
+++ b/source/test/ipfilterharness.cpp   Thu Oct 17 12:53:15 2013 +0530<br>
@@ -270,27 +270,26 @@<br>
<br>
 bool IPFilterHarness::check_IPFilterChroma_primitive(filter_pp_t ref, filter_pp_t opt)<br>
 {<br>
-    int srcStride, dstStride, rand_coeffIdx;<br>
+    int rand_srcStride, rand_dstStride, rand_coeffIdx;<br>
<br>
     for (int i = 0; i <= 100; i++)<br>
     {<br>
-<br>
         rand_coeffIdx = rand() % 8;                // Random coeffIdex in the filter<br>
<br>
-         srcStride = 2;<br>
-         dstStride = 2;<br>
+        rand_srcStride = rand() % 100;              // Randomly generated srcStride<br>
+        rand_dstStride = rand() % 100;              // Randomly generated dstStride<br>
<br>
-        opt(pixel_buff + 3 * srcStride,<br>
-            srcStride,<br>
+        opt(pixel_buff + 3 * rand_srcStride,<br>
+            rand_srcStride,<br>
             IPF_vec_output_p,<br>
-            dstStride,<br>
+            rand_dstStride,<br>
             rand_coeffIdx<br>
             );<br>
-        ref(pixel_buff + 3 * srcStride,<br>
-            srcStride,<br>
+        ref(pixel_buff + 3 * rand_srcStride,<br>
+            rand_srcStride,<br>
             IPF_C_output_p,<br>
-            dstStride,<br>
-            rand_coeffIdx<br>
+            rand_dstStride,<br>
+           rand_coeffIdx<br>
             );<br>
<br>
         if (memcmp(IPF_vec_output_p, IPF_C_output_p, ipf_t_size))<br></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" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Steve Borho
</font></span></div></div>
<br>_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
<br></div>></div>