[x265] [PATCH] testbench: stress test support for all pixelharness functions

chen chenm003 at 163.com
Mon Feb 3 13:39:52 CET 2014


At 2014-02-03 20:29:37,murugan at multicorewareinc.com wrote:
># HG changeset patch
># User Murugan Vairavel <murugan at multicorewareinc.com>
># Date 1391430556 -19800
>#      Mon Feb 03 17:59:16 2014 +0530
># Node ID f8884c624aef2d904b91605e95912eb5b52caf79
># Parent  aab88ed133647b779b0a1ca33a1e20584103ef7d
>testbench: stress test support for all pixelharness functions
>
>diff -r aab88ed13364 -r f8884c624aef source/test/pixelharness.cpp
>--- a/source/test/pixelharness.cpp Sun Feb 02 13:09:26 2014 -0600
>+++ b/source/test/pixelharness.cpp Mon Feb 03 17:59:16 2014 +0530
>@@ -33,12 +33,31 @@
> #define INCR   32
> #define STRIDE 64
> #define ITERS  100
>+#define MAX_HEIGHT 64
>+#define PAD_ROWS   64
>+#define BUFFSIZE STRIDE * (MAX_HEIGHT + PAD_ROWS) + INCR * ITERS
>+#define TEST_CASES 3
>+#define SMAX (1 << 12)
>+#define SMIN (-1 << 12)
> 
> PixelHarness::PixelHarness()
> {
>-    int maxheight = 64;
>-    int padrows = 64;
>-    int bufsize = STRIDE * (maxheight + padrows) + INCR * ITERS;
>+    int bufsize = STRIDE * (MAX_HEIGHT + PAD_ROWS) + INCR * ITERS;
>+
>+    /* Array for test case selection */
>+    test_case_selection = (int*)X265_MALLOC(int, TEST_CASES * TEST_CASES * 2);
>+    int k=0, j=0;
>+    for(int i = 0; i<TEST_CASES*TEST_CASES*2; i+=2)
>+    {
>+        test_case_selection[i] = k;
>+        test_case_selection[i + 1] = j;
>+        j++;
>+        if(j == TEST_CASES)
>+        {
>+            k++;
>+            j=0;
>+        }
>+    }
we need not this template
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140203/a91d96e7/attachment.html>


More information about the x265-devel mailing list