[x265] [PATCH] pixel_add_ps_8x2, asm code
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Wed Nov 20 14:50:27 CET 2013
# HG changeset patch
# User Praveen Tiwari
# Date 1384955418 -19800
# Node ID 0cb3981d40388411fa29a971447f7978ecd0cae8
# Parent 7eb930dac6dc7d9df9bde995cdb5231abfb246f2
pixel_add_ps_8x2, asm code
diff -r 7eb930dac6dc -r 0cb3981d4038 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Wed Nov 20 19:17:20 2013 +0530
+++ b/source/common/x86/asm-primitives.cpp Wed Nov 20 19:20:18 2013 +0530
@@ -643,6 +643,7 @@
p.chroma_add_ps[X265_CSP_I420][CHROMA_4x4] = x265_pixel_add_ps_4x4_sse4;
p.chroma_add_ps[X265_CSP_I420][CHROMA_4x8] = x265_pixel_add_ps_4x8_sse4;
p.chroma_add_ps[X265_CSP_I420][CHROMA_4x16] = x265_pixel_add_ps_4x16_sse4;
+ p.chroma_add_ps[X265_CSP_I420][CHROMA_8x2] = x265_pixel_add_ps_8x2_sse4;
}
if (cpuMask & X265_CPU_AVX)
{
diff -r 7eb930dac6dc -r 0cb3981d4038 source/common/x86/pixeladd8.asm
--- a/source/common/x86/pixeladd8.asm Wed Nov 20 19:17:20 2013 +0530
+++ b/source/common/x86/pixeladd8.asm Wed Nov 20 19:20:18 2013 +0530
@@ -161,3 +161,29 @@
PIXEL_ADD_PS_W4_H4 4, 8
PIXEL_ADD_PS_W4_H4 4, 16
+
+;-----------------------------------------------------------------------------
+; void pixel_add_ps_8x2(pixel *dest, intptr_t destride, pixel *src0, int16_t *scr1, intptr_t srcStride0, intptr_t srcStride1)
+;-----------------------------------------------------------------------------
+INIT_XMM sse4
+cglobal pixel_add_ps_8x2, 6, 6, 2, dest, destride, src0, scr1, srcStride0, srcStride1
+
+add r5, r5
+
+pmovzxbw m0, [r2]
+movu m1, [r3]
+
+paddw m0, m1
+packuswb m0, m0
+
+movh [r0], m0
+
+pmovzxbw m0, [r2 + r4]
+movu m1, [r3 + r5]
+
+paddw m0, m1
+packuswb m0, m0
+
+movh [r0 + r1], m0
+
+RET
More information about the x265-devel
mailing list