[x265] [PATCH] TestBench-check_quant_primitive: fix transform size
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Mon Feb 16 11:23:36 CET 2015
# 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;
More information about the x265-devel
mailing list