<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 6:56 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 Praveen Tiwari<br>
# Date 1383828996 -19800<br>
# Node ID f2af7af43dfcb08135a08e755f654314a89efae7<br>
# Parent  d71f86b1c58b4fc9f8a3ffeaaef45c60f8bcc468<br>
asm code for blockfil_s, 4x4<br>
<br></blockquote><div><br></div><div>blockfill has two l</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
diff -r d71f86b1c58b -r f2af7af43dfc source/common/x86/asm-primitives.cpp<br>
--- a/source/common/x86/asm-primitives.cpp      Thu Nov 07 18:16:22 2013 +0530<br>
+++ b/source/common/x86/asm-primitives.cpp      Thu Nov 07 18:26:36 2013 +0530<br>
@@ -361,6 +361,8 @@<br>
         p.luma_copy_sp[LUMA_64x32] = x265_blockcopy_sp_64x32_sse2;<br>
         p.luma_copy_sp[LUMA_64x48] = x265_blockcopy_sp_64x48_sse2;<br>
         p.luma_copy_sp[LUMA_64x64] = x265_blockcopy_sp_64x64_sse2;<br>
+<br>
+        p.blockfill_s[BLOCK_4x4] = x265_blockfil_s_4x4_sse2;<br>
 #if X86_64<br>
         p.satd[LUMA_8x32] = x265_pixel_satd_8x32_sse2;<br>
         p.satd[LUMA_16x4] = x265_pixel_satd_16x4_sse2;<br>
diff -r d71f86b1c58b -r f2af7af43dfc source/common/x86/blockcopy8.asm<br>
--- a/source/common/x86/blockcopy8.asm  Thu Nov 07 18:16:22 2013 +0530<br>
+++ b/source/common/x86/blockcopy8.asm  Thu Nov 07 18:26:36 2013 +0530<br>
@@ -1646,3 +1646,22 @@<br>
 BLOCKCOPY_SP_W64_H1 64, 32<br>
 BLOCKCOPY_SP_W64_H1 64, 48<br>
 BLOCKCOPY_SP_W64_H1 64, 64<br>
+<br>
+;-----------------------------------------------------------------------------<br>
+; void blockfil_s_4x4(int16_t *dest, intptr_t destride, int16_t val)<br>
+;-----------------------------------------------------------------------------<br>
+INIT_XMM sse2<br>
+cglobal blockfil_s_4x4, 3, 3, 1, dest, destStride, val<br>
+<br>
+add        r1,            r1<br>
+<br>
+movd       m0,            r2d<br>
+pshuflw    m0,            m0,         0<br>
+<br>
+movh       [r0],          m0<br>
+movh       [r0 + r1],     m0<br>
+movh       [r0 + 2 * r1], m0<br>
+lea        r0,            [r0 + 2 * r1]<br>
+movh       [r0 + r1],     m0<br>
+<br>
+RET<br>
diff -r d71f86b1c58b -r f2af7af43dfc source/common/x86/pixel.h<br>
--- a/source/common/x86/pixel.h Thu Nov 07 18:16:22 2013 +0530<br>
+++ b/source/common/x86/pixel.h Thu Nov 07 18:26:36 2013 +0530<br>
@@ -266,6 +266,8 @@<br>
 DECL_ADS(2, avx2)<br>
 DECL_ADS(1, avx2)<br>
<br>
+void x265_blockfil_s_4x4_sse2(int16_t *dst, intptr_t dstride, int16_t val);<br>
+<br></blockquote><div><br></div><div>this belongs in blockcopy8.h<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 #undef DECL_PIXELS<br>
 #undef DECL_SUF<br>
 #undef DECL_HEVC_SSD<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>