<div dir="ltr">ignore this patch. Needs modification.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 10, 2013 at 12:03 PM, <span dir="ltr"><<a href="mailto:murugan@multicorewareinc.com" target="_blank">murugan@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 Murugan Vairavel <<a href="mailto:murugan@multicorewareinc.com">murugan@multicorewareinc.com</a>><br>
# Date 1386657211 -19800<br>
# Tue Dec 10 12:03:31 2013 +0530<br>
# Node ID cbeac6eb3e8a26e6fcf35da5a65ff3e2157e46a9<br>
# Parent d6bb400f0733701f02f65e0f060284df3d77d9b0<br>
asm: 10bpp code for bolckcopy_ps_12x16<br>
<br>
diff -r d6bb400f0733 -r cbeac6eb3e8a source/common/x86/asm-primitives.cpp<br>
--- a/source/common/x86/asm-primitives.cpp Tue Dec 10 11:50:44 2013 +0530<br>
+++ b/source/common/x86/asm-primitives.cpp Tue Dec 10 12:03:31 2013 +0530<br>
@@ -677,6 +677,7 @@<br>
p.chroma[X265_CSP_I420].copy_pp[LUMA_16x16] = x265_blockcopy_pp_8x8_sse2;<br>
p.chroma[X265_CSP_I420].copy_pp[LUMA_16x32] = x265_blockcopy_pp_8x16_sse2;<br>
p.chroma[X265_CSP_I420].copy_pp[LUMA_16x64] = x265_blockcopy_pp_8x32_sse2;<br>
+ p.chroma[X265_CSP_I420].copy_pp[LUMA_24x32] = x265_blockcopy_pp_12x16_sse2;<br>
}<br>
if (cpuMask & X265_CPU_SSSE3)<br>
{<br>
diff -r d6bb400f0733 -r cbeac6eb3e8a source/common/x86/blockcopy8.asm<br>
--- a/source/common/x86/blockcopy8.asm Tue Dec 10 11:50:44 2013 +0530<br>
+++ b/source/common/x86/blockcopy8.asm Tue Dec 10 12:03:31 2013 +0530<br>
@@ -578,46 +578,69 @@<br>
;-----------------------------------------------------------------------------<br>
%macro BLOCKCOPY_PP_W12_H4 2<br>
INIT_XMM sse2<br>
-cglobal blockcopy_pp_%1x%2, 4, 7, 8, dest, deststride, src, srcstride<br>
-<br>
-mov r4d, %2<br>
-<br>
+cglobal blockcopy_pp_%1x%2, 4, 5, 4, dest, deststride, src, srcstride<br>
+<br>
+ mov r4d, %2/4<br>
+%if HIGH_BIT_DEPTH<br>
+ add r1, r1<br>
+ add r3, r3<br>
.loop<br>
- movh m0, [r2]<br>
- movd m1, [r2 + 8]<br>
-<br>
- movh m2, [r2 + r3]<br>
- movd m3, [r2 + r3 + 8]<br>
-<br>
- movh m4, [r2 + 2 * r3]<br>
- movd m5, [r2 + 2 * r3 + 8]<br>
-<br>
- lea r5, [r2 + 2 * r3]<br>
-<br>
- movh m6, [r5 + r3]<br>
- movd m7, [r5 + r3 + 8]<br>
-<br>
- movh [r0], m0<br>
- movd [r0 + 8], m1<br>
-<br>
- movh [r0 + r1], m2<br>
- movd [r0 + r1 + 8], m3<br>
-<br>
- movh [r0 + 2 * r1], m4<br>
- movd [r0 + 2 * r1 + 8], m5<br>
-<br>
- lea r6, [r0 + 2 * r1]<br>
-<br>
- movh [r6 + r1], m6<br>
- movd [r6 + r1 + 8], m7<br>
-<br>
- lea r0, [r0 + 4 * r1]<br>
- lea r2, [r2 + 4 * r3]<br>
-<br>
- sub r4d, 4<br>
- jnz .loop<br>
-<br>
-RET<br>
+ movu m0, [r2]<br>
+ movh m1, [r2 + 16]<br>
+ movu m2, [r2 + r3]<br>
+ movh m3, [r2 + r3 + 16]<br>
+ lea r2, [r2 + 2 * r3]<br>
+<br>
+ movu [r0], m0<br>
+ movh [r0 + 16], m1<br>
+ movu [r0 + r1], m2<br>
+ movh [r0 + r1 + 16], m3<br>
+<br>
+ lea r0, [r0 + 2 * r1]<br>
+ movu m0, [r2]<br>
+ movh m1, [r2 + 16]<br>
+ movu m2, [r2 + r3]<br>
+ movh m3, [r2 + r3 + 16]<br>
+<br>
+ movu [r0], m0<br>
+ movh [r0 + 16], m1<br>
+ movu [r0 + r1], m2<br>
+ movh [r0 + r1 + 16], m3<br>
+<br>
+ dec r4d<br>
+ lea r0, [r0 + 2 * r1]<br>
+ lea r2, [r2 + 2 * r3]<br>
+ jnz .loop<br>
+%else<br>
+.loop<br>
+ movh m0, [r2]<br>
+ movd m1, [r2 + 8]<br>
+ movh m2, [r2 + r3]<br>
+ movd m3, [r2 + r3 + 8]<br>
+ lea r2, [r2 + 2 * r3]<br>
+<br>
+ movh [r0], m0<br>
+ movd [r0 + 8], m1<br>
+ movh [r0 + r1], m2<br>
+ movd [r0 + r1 + 8], m3<br>
+ lea r0, [r0 + 2 * r1]<br>
+<br>
+ movh m0, [r2]<br>
+ movd m1, [r2 + 8]<br>
+ movh m2, [r2 + r3]<br>
+ movd m3, [r2 + r3 + 8]<br>
+<br>
+ movh [r0], m0<br>
+ movd [r0 + 8], m1<br>
+ movh [r0 + r1], m2<br>
+ movd [r0 + r1 + 8], m3<br>
+<br>
+ dec r4d<br>
+ lea r0, [r0 + 4 * r1]<br>
+ lea r2, [r2 + 4 * r3]<br>
+ jnz .loop<br>
+%endif<br>
+ RET<br>
%endmacro<br>
<br>
BLOCKCOPY_PP_W12_H4 12, 16<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">With Regards,<div><br></div><div>Murugan. V</div><div>+919659287478</div></div>
</div>