<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 6:59 AM, <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User praveentiwari<br>
# Date 1372161278 -19800<br>
# Node ID 2d4eb5e859db3ef478ac6483128a8445c5498283<br>
# Parent 63eff39161505256d3473e9c3a76e509f42111dc<br>
uncrustified mbdstharness.cpp file<br></blockquote><div><br></div><div style>Thanks for submitting this in its own patch. Queued in my local repo, will be pushed later today</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
diff -r 63eff3916150 -r 2d4eb5e859db source/test/mbdstharness.cpp<br>
--- a/source/test/mbdstharness.cpp Tue Jun 25 17:17:36 2013 +0530<br>
+++ b/source/test/mbdstharness.cpp Tue Jun 25 17:24:38 2013 +0530<br>
@@ -30,33 +30,35 @@<br>
<br>
using namespace x265;<br>
<br>
-struct DctConf_t {<br>
+struct DctConf_t<br>
+{<br>
const char *name;<br>
int width;<br>
};<br>
+<br>
const DctConf_t DctConf_infos[] =<br>
{<br>
- { "Dst4x4\t", 4},<br>
- { "Dct4x4\t", 4},<br>
- { "Dct8x8\t", 8},<br>
- { "Dct16x16", 16},<br>
- { "Dct32x32", 32},<br>
+ { "Dst4x4\t", 4 },<br>
+ { "Dct4x4\t", 4 },<br>
+ { "Dct8x8\t", 8 },<br>
+ { "Dct16x16", 16 },<br>
+ { "Dct32x32", 32 },<br>
};<br>
<br>
const DctConf_t IDctConf_infos[] =<br>
{<br>
- {"IDst4x4\t", 4},<br>
- {"IDct4x4\t", 4},<br>
- {"IDct8x8\t", 8},<br>
- {"IDct16x16", 16},<br>
- {"IDct32x32", 32},<br>
+ { "IDst4x4\t", 4 },<br>
+ { "IDct4x4\t", 4 },<br>
+ { "IDct8x8\t", 8 },<br>
+ { "IDct16x16", 16 },<br>
+ { "IDct32x32", 32 },<br>
};<br>
<br>
MBDstHarness::MBDstHarness()<br>
{<br>
mbuf1 = (short*)TestHarness::alignedMalloc(sizeof(short), mb_t_size, 32);<br>
mbufdct = (short*)TestHarness::alignedMalloc(sizeof(short), mb_t_size, 32);<br>
- mbufidct= (int *)TestHarness::alignedMalloc(sizeof(int), mb_t_size, 32);<br>
+ mbufidct = (int*)TestHarness::alignedMalloc(sizeof(int), mb_t_size, 32);<br>
<br>
mbuf2 = (short*)TestHarness::alignedMalloc(sizeof(short), mem_cmp_size, 32);<br>
mbuf3 = (short*)TestHarness::alignedMalloc(sizeof(short), mem_cmp_size, 32);<br>
@@ -79,12 +81,12 @@<br>
exit(1);<br>
}<br>
<br>
- const int idct_max = (1 << (BIT_DEPTH+4)) - 1;<br>
+ const int idct_max = (1 << (BIT_DEPTH + 4)) - 1;<br>
for (int i = 0; i < mb_t_size; i++)<br>
{<br>
mbuf1[i] = rand() & PIXEL_MAX;<br>
mbufdct[i] = (rand() & PIXEL_MAX) - (rand() & PIXEL_MAX);<br>
- mbufidct[i]= (rand() & idct_max);<br>
+ mbufidct[i] = (rand() & idct_max);<br>
}<br>
<br>
for (int i = 0; i < mb_t_size; i++)<br>
@@ -219,7 +221,7 @@<br>
<br>
bool MBDstHarness::testCorrectness(const EncoderPrimitives& ref, const EncoderPrimitives& opt)<br>
{<br>
- for( int i=0; i<NUM_DCTS; i++ )<br>
+ for (int i = 0; i < NUM_DCTS; i++)<br>
{<br>
if (opt.dct[i])<br>
{<br>
@@ -231,7 +233,7 @@<br>
}<br>
}<br>
<br>
- for( int i=0; i<NUM_IDCTS; i++ )<br>
+ for (int i = 0; i < NUM_IDCTS; i++)<br>
{<br>
if (opt.idct[i])<br>
{<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x265-devel" target="_blank">http://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>