[x265] [PATCH] TestBench-check_quant_primitive: fix transform size

Deepthi Nandakumar deepthi at multicorewareinc.com
Mon Feb 16 11:27:41 CET 2015


Hi, pushed an equivalent patch. The quant testbench fails on the tip as of
now.

On Mon, Feb 16, 2015 at 3:53 PM, <praveen at multicorewareinc.com> wrote:

> # HG changeset patch
> # User Praveen Tiwari <praveen at multicorewareinc.com>
> # Date 1424082194 -19800
> # Node ID 692c83c5c4bf4304cae6b4f98f1bcc127679806e
> # Parent  c08da6a1cf1196c17b4c61e16c363ea2e4e098a5
> TestBench-check_quant_primitive: fix transform size
>
> diff -r c08da6a1cf11 -r 692c83c5c4bf source/test/mbdstharness.cpp
> --- a/source/test/mbdstharness.cpp      Mon Feb 16 11:54:15 2015 +0530
> +++ b/source/test/mbdstharness.cpp      Mon Feb 16 15:53:14 2015 +0530
> @@ -209,17 +209,16 @@
>
>      for (int i = 0; i < ITERS; i++)
>      {
> -        int width = (rand() % 4 + 1) * 4;
> -        int height = width;
> +        int trSize[4] = {4 * 4, 8 * 8, 16 * 16, 32 * 32};
> +        int numCoeff = trSize[rand() % 4];
>
>          uint32_t optReturnValue = 0;
>          uint32_t refReturnValue = 0;
>
>          int bits = (rand() % 24) + 8;
>          int valueToAdd = rand() % (1 << bits);
> -        int cmp_size = sizeof(int) * height * width;
> -        int cmp_size1 = sizeof(short) * height * width;
> -        int numCoeff = height * width;
> +        int cmp_size = sizeof(int) * numCoeff;
> +        int cmp_size1 = sizeof(short) * numCoeff;
>
>          int index1 = rand() % TEST_CASES;
>          int index2 = rand() % TEST_CASES;
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20150216/e4884120/attachment-0001.html>


More information about the x265-devel mailing list