<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 1, 2013 at 2:51 AM, <span dir="ltr"><<a href="mailto:shazeb@multicorewareinc.com" target="_blank">shazeb@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 Shazeb Nawaz Khan <<a href="mailto:shazeb@multicorewareinc.com">shazeb@multicorewareinc.com</a>><br>
# Date 1380607714 -19800<br>
# Tue Oct 01 11:38:34 2013 +0530<br>
# Node ID 0da50ad39b4137976e4e2b295c32e1a710843b60<br>
# Parent 07d712e6265cb6f052a55fe7a1448d48b5339acc<br>
Adding support for pixel instance of templated weightUnidir primitive<br></blockquote><div><br></div><div>it would be better to combine this with the previous patch which introduces the primitive</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff -r 07d712e6265c -r 0da50ad39b41 source/test/pixelharness.cpp<br>
--- a/source/test/pixelharness.cpp Tue Oct 01 11:36:00 2013 +0530<br>
+++ b/source/test/pixelharness.cpp Tue Oct 01 11:38:34 2013 +0530<br>
@@ -604,6 +604,15 @@<br>
}<br>
}<br>
<br>
+ if (opt.weightpUniPixel)<br>
+ {<br>
+ if (!check_weightpUni(ref.weightpUniPixel, opt.weightpUniPixel))<br>
+ {<br>
+ printf("Weighted Prediction for Unidir failed!\n");<br>
+ return false;<br>
+ }<br>
+ }<br>
+<br>
if (opt.weightpUni)<br>
{<br>
if (!check_weightpUni(ref.weightpUni, opt.weightpUni))<br>
@@ -751,6 +760,12 @@<br>
REPORT_SPEEDUP(opt.blockcpy_sc, ref.blockcpy_sc, 64, 64, (short*)pbuf1, FENC_STRIDE, (uint8_t*)pbuf2, STRIDE);<br>
}<br>
<br>
+ if (opt.weightpUniPixel)<br>
+ {<br>
+ printf("WeightpUni");<br>
+ REPORT_SPEEDUP(opt.weightpUniPixel, ref.weightpUniPixel, sbuf1, pbuf1, 64, 64, 32, 32, 128, 1 << 9, 10, 100);<br>
+ }<br>
+<br>
if (opt.weightpUni)<br>
{<br>
printf("WeightpUni");<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>