<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>At 2014-02-03 20:29:37,murugan@multicorewareinc.com wrote:<BR>># HG changeset patch<BR>># User Murugan Vairavel <murugan@multicorewareinc.com><BR>># Date 1391430556 -19800<BR>>#      Mon Feb 03 17:59:16 2014 +0530<BR>># Node ID f8884c624aef2d904b91605e95912eb5b52caf79<BR>># Parent  aab88ed133647b779b0a1ca33a1e20584103ef7d<BR>>testbench: stress test support for all pixelharness functions<BR>><BR>>diff -r aab88ed13364 -r f8884c624aef source/test/pixelharness.cpp<BR>>--- a/source/test/pixelharness.cpp   Sun Feb 02 13:09:26 2014 -0600<BR>>+++ b/source/test/pixelharness.cpp    Mon Feb 03 17:59:16 2014 +0530<BR>>@@ -33,12 +33,31 @@<BR>> #define INCR   32<BR>> #define STRIDE 64<BR>> #define ITERS  100<BR>>+#define MAX_HEIGHT 64<BR>>+#define PAD_ROWS   64<BR>>+#define BUFFSIZE STRIDE * (MAX_HEIGHT + PAD_ROWS) + INCR * ITERS<BR>>+#define TEST_CASES 3<BR>>+#define SMAX (1 << 12)<BR>>+#define SMIN (-1 << 12)<BR>> <BR>> PixelHarness::PixelHarness()<BR>> {<BR>>-    int maxheight = 64;<BR>>-    int padrows = 64;<BR>>-    int bufsize = STRIDE * (maxheight + padrows) + INCR * ITERS;<BR>>+    int bufsize = STRIDE * (MAX_HEIGHT + PAD_ROWS) + INCR * ITERS;<BR>>+<BR>>+    /* Array for test case selection */<BR>>+    test_case_selection = (int*)X265_MALLOC(int, TEST_CASES * TEST_CASES * 2);<BR>>+    int k=0, j=0;<BR>>+    for(int i = 0; i<TEST_CASES*TEST_CASES*2; i+=2)<BR>>+    {<BR>>+        test_case_selection[i] = k;<BR>>+        test_case_selection[i + 1] = j;<BR>>+        j++;<BR>>+        if(j == TEST_CASES)<BR>>+        {<BR>>+            k++;<BR>>+            j=0;<BR>>+        }<BR>>+    }<BR>we need not this template</DIV>
<DIV> </DIV></div>