[x265] [PATCH] Removed hungarian notation and code cleanup for check_xdequant_primitive test code
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Mon Jul 1 12:38:11 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1372675076 -19800
# Node ID 9a7c5a1969edc46a146a80887f330b633a8d8399
# Parent ca318d063ba33f9f65f52c3973ec3b03e2ee7422
Removed hungarian notation and code cleanup for check_xdequant_primitive test code
diff -r ca318d063ba3 -r 9a7c5a1969ed source/test/mbdstharness.cpp
--- a/source/test/mbdstharness.cpp Mon Jul 01 15:38:12 2013 +0530
+++ b/source/test/mbdstharness.cpp Mon Jul 01 16:07:56 2013 +0530
@@ -199,26 +199,26 @@
for (int i = 0; i <= 5; i++)
{
- int iWidth = (rand() % 4 + 1) * 4;
+ int width = (rand() % 4 + 1) * 4;
- if (iWidth == 12)
+ if (width == 12)
{
- iWidth = 32;
+ width = 32;
}
- int iHeight = iWidth;
+ int height = width;
- int tmp = rand() % 58;
- int iPer = tmp / 6;
- int iRem = tmp % 6;
+ int scale = rand() % 58;
+ int per = scale / 6;
+ int rem = scale % 6;
- bool useScalingList = (tmp % 2 == 0) ? false : true;
+ bool useScalingList = (scale % 2 == 0) ? false : true;
- unsigned int uiLog2TrSize = (rand() % 4) + 2;
+ uint32_t log2TrSize = (rand() % 4) + 2;
- int cmp_size = sizeof(int) * iWidth * iWidth;
+ int cmp_size = sizeof(int) * height * width;
- opt(8, mintbuf1 + j, mintbuf3, iWidth, iHeight, iPer, iRem, useScalingList, uiLog2TrSize, mintbuf2 + j); // g_bitDepthY = 8, g_bitDepthC = 8
- ref(8, mintbuf1 + j, mintbuf4, iWidth, iHeight, iPer, iRem, useScalingList, uiLog2TrSize, mintbuf2 + j);
+ opt(8, mintbuf1 + j, mintbuf3, width, height, per, rem, useScalingList, log2TrSize, mintbuf2 + j); // g_bitDepthY = 8, g_bitDepthC = 8
+ ref(8, mintbuf1 + j, mintbuf4, width, height, per, rem, useScalingList, log2TrSize, mintbuf2 + j);
if (memcmp(mintbuf3, mintbuf4, cmp_size))
return false;
More information about the x265-devel
mailing list