[x265] [PATCH] added genration of random stride in chroma unit test code
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Thu Oct 17 10:44:50 CEST 2013
# HG changeset patch
# User Praveen Tiwari
# Date 1381999480 -19800
# Node ID fc9dbd798ac37ec1acc0596aa179f0deb586c092
# Parent b3852d6908a59f79498052862780083587678960
added genration of random stride in chroma unit test code
diff -r b3852d6908a5 -r fc9dbd798ac3 source/test/ipfilterharness.cpp
--- a/source/test/ipfilterharness.cpp Thu Oct 17 14:11:44 2013 +0530
+++ b/source/test/ipfilterharness.cpp Thu Oct 17 14:14:40 2013 +0530
@@ -270,23 +270,26 @@
bool IPFilterHarness::check_IPFilterChroma_primitive(filter_pp_t ref, filter_pp_t opt)
{
+ int rand_srcStride, rand_dstStride, rand_coeffIdx;
+
for (int i = 0; i <= 100; i++)
{
- int rand_coeffIdx = rand() % 8; // Random coeffIdex in the filter
- int srcStride = 2;
- int dstStride = 2;
+ rand_coeffIdx = rand() % 8; // Random coeffIdex in the filter
- opt(pixel_buff + 3 * srcStride,
- srcStride,
+ rand_srcStride = rand() % 100; // Randomly generated srcStride
+ rand_dstStride = rand() % 100; // Randomly generated dstStride
+
+ opt(pixel_buff + 3 * rand_srcStride,
+ rand_srcStride,
IPF_vec_output_p,
- dstStride,
+ rand_dstStride,
rand_coeffIdx
);
- ref(pixel_buff + 3 * srcStride,
- srcStride,
+ ref(pixel_buff + 3 * rand_srcStride,
+ rand_srcStride,
IPF_C_output_p,
- dstStride,
- rand_coeffIdx
+ rand_dstStride,
+ rand_coeffIdx
);
if (memcmp(IPF_vec_output_p, IPF_C_output_p, ipf_t_size))
More information about the x265-devel
mailing list