[x265] [PATCH] uncrustified mbdstharness.cpp file
Steve Borho
steve at borho.org
Tue Jun 25 19:10:05 CEST 2013
On Tue, Jun 25, 2013 at 6:59 AM, <praveen at multicorewareinc.com> wrote:
> # HG changeset patch
> # User praveentiwari
> # Date 1372161278 -19800
> # Node ID 2d4eb5e859db3ef478ac6483128a8445c5498283
> # Parent 63eff39161505256d3473e9c3a76e509f42111dc
> uncrustified mbdstharness.cpp file
>
Thanks for submitting this in its own patch. Queued in my local repo, will
be pushed later today
> diff -r 63eff3916150 -r 2d4eb5e859db source/test/mbdstharness.cpp
> --- a/source/test/mbdstharness.cpp Tue Jun 25 17:17:36 2013 +0530
> +++ b/source/test/mbdstharness.cpp Tue Jun 25 17:24:38 2013 +0530
> @@ -30,33 +30,35 @@
>
> using namespace x265;
>
> -struct DctConf_t {
> +struct DctConf_t
> +{
> const char *name;
> int width;
> };
> +
> const DctConf_t DctConf_infos[] =
> {
> - { "Dst4x4\t", 4},
> - { "Dct4x4\t", 4},
> - { "Dct8x8\t", 8},
> - { "Dct16x16", 16},
> - { "Dct32x32", 32},
> + { "Dst4x4\t", 4 },
> + { "Dct4x4\t", 4 },
> + { "Dct8x8\t", 8 },
> + { "Dct16x16", 16 },
> + { "Dct32x32", 32 },
> };
>
> const DctConf_t IDctConf_infos[] =
> {
> - {"IDst4x4\t", 4},
> - {"IDct4x4\t", 4},
> - {"IDct8x8\t", 8},
> - {"IDct16x16", 16},
> - {"IDct32x32", 32},
> + { "IDst4x4\t", 4 },
> + { "IDct4x4\t", 4 },
> + { "IDct8x8\t", 8 },
> + { "IDct16x16", 16 },
> + { "IDct32x32", 32 },
> };
>
> MBDstHarness::MBDstHarness()
> {
> mbuf1 = (short*)TestHarness::alignedMalloc(sizeof(short), mb_t_size,
> 32);
> mbufdct = (short*)TestHarness::alignedMalloc(sizeof(short),
> mb_t_size, 32);
> - mbufidct= (int *)TestHarness::alignedMalloc(sizeof(int),
> mb_t_size, 32);
> + mbufidct = (int*)TestHarness::alignedMalloc(sizeof(int), mb_t_size,
> 32);
>
> mbuf2 = (short*)TestHarness::alignedMalloc(sizeof(short),
> mem_cmp_size, 32);
> mbuf3 = (short*)TestHarness::alignedMalloc(sizeof(short),
> mem_cmp_size, 32);
> @@ -79,12 +81,12 @@
> exit(1);
> }
>
> - const int idct_max = (1 << (BIT_DEPTH+4)) - 1;
> + const int idct_max = (1 << (BIT_DEPTH + 4)) - 1;
> for (int i = 0; i < mb_t_size; i++)
> {
> mbuf1[i] = rand() & PIXEL_MAX;
> mbufdct[i] = (rand() & PIXEL_MAX) - (rand() & PIXEL_MAX);
> - mbufidct[i]= (rand() & idct_max);
> + mbufidct[i] = (rand() & idct_max);
> }
>
> for (int i = 0; i < mb_t_size; i++)
> @@ -219,7 +221,7 @@
>
> bool MBDstHarness::testCorrectness(const EncoderPrimitives& ref, const
> EncoderPrimitives& opt)
> {
> - for( int i=0; i<NUM_DCTS; i++ )
> + for (int i = 0; i < NUM_DCTS; i++)
> {
> if (opt.dct[i])
> {
> @@ -231,7 +233,7 @@
> }
> }
>
> - for( int i=0; i<NUM_IDCTS; i++ )
> + for (int i = 0; i < NUM_IDCTS; i++)
> {
> if (opt.idct[i])
> {
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> http://mailman.videolan.org/listinfo/x265-devel
>
--
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130625/4f5ead41/attachment.html>
More information about the x265-devel
mailing list