[x265] Fwd: [PATCH] Added random stride in chroma unit test code
Praveen Tiwari
praveen at multicorewareinc.com
Thu Oct 17 10:27:47 CEST 2013
---------- Forwarded message ----------
From: Steve Borho <steve at borho.org>
Date: Thu, Oct 17, 2013 at 1:54 PM
Subject: Re: [x265] [PATCH] Added random stride in chroma unit test code
To: Development for x265 <x265-devel at videolan.org>
On Thu, Oct 17, 2013 at 2:23 AM, <praveen at multicorewareinc.com> wrote:
> # HG changeset patch
> # User Praveen Tiwari
> # Date 1381994595 -19800
> # Node ID 688c171cc71ad23d7d24e11ae98039473952348d
> # Parent 68f97c7f08392d387046736ae3e86095c653fd05
> Added random stride in chroma unit test code
>
>>this doesn't apply on the tip
Oh sorry, give me few minutes.
> diff -r 68f97c7f0839 -r 688c171cc71a source/test/ipfilterharness.cpp
> --- a/source/test/ipfilterharness.cpp Thu Oct 17 12:52:11 2013 +0530
> +++ b/source/test/ipfilterharness.cpp Thu Oct 17 12:53:15 2013 +0530
> @@ -270,27 +270,26 @@
>
> bool IPFilterHarness::check_IPFilterChroma_primitive(filter_pp_t ref,
> filter_pp_t opt)
> {
> - int srcStride, dstStride, rand_coeffIdx;
> + int rand_srcStride, rand_dstStride, rand_coeffIdx;
>
> for (int i = 0; i <= 100; i++)
> {
> -
> rand_coeffIdx = rand() % 8; // Random coeffIdex in
> the filter
>
> - srcStride = 2;
> - dstStride = 2;
> + rand_srcStride = rand() % 100; // Randomly generated
> srcStride
> + rand_dstStride = rand() % 100; // Randomly generated
> dstStride
>
> - opt(pixel_buff + 3 * srcStride,
> - srcStride,
> + 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))
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
--
Steve Borho
_______________________________________________
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/20131017/ece697ce/attachment.html>
More information about the x265-devel
mailing list