[x265] [PATCH] Corrected test bench function for luma_ss
nabajit at multicorewareinc.com
nabajit at multicorewareinc.com
Wed Jan 29 08:37:21 CET 2014
# HG changeset patch
# User Nabajit Deka
# Date 1390980992 -19800
# Wed Jan 29 13:06:32 2014 +0530
# Node ID 4c1296020b6d0dcb83fe24eec2f82e155eb95e7c
# Parent ba8c31037a655ae55e53cee753677f78d56df397
Corrected test bench function for luma_ss.
diff -r ba8c31037a65 -r 4c1296020b6d source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp Wed Jan 29 12:57:47 2014 +0530
+++ b/source/test/ipfilterharness.cpp Wed Jan 29 13:06:32 2014 +0530
@@ -394,17 +394,9 @@
{
int rand_srcStride, rand_dstStride, rand_coeffIdx;
- // NOTE: refill data to avoid overflow
- const int max_filter_val = 64 * (1 << 8);
-
- for (int i = 0; i < ipf_t_size; i++)
- {
- short_buff[i] = rand() % (2 * max_filter_val) - max_filter_val;
- }
-
for (int i = 0; i <= 100; i++)
{
- rand_coeffIdx = rand() % 3; // Random coeffIdex in the filter
+ rand_coeffIdx = rand() % 4; // Random coeffIdex in the filter
rand_srcStride = rand() % 100; // Randomly generated srcStride
rand_dstStride = rand() % 100 + 64; // Randomly generated dstStride
More information about the x265-devel
mailing list