[x265] [PATCH] asm: code for pixel_sse_sp_48x64

murugan at multicorewareinc.com murugan at multicorewareinc.com
Wed Nov 27 11:51:21 CET 2013


# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1385549468 -19800
#      Wed Nov 27 16:21:08 2013 +0530
# Branch stable
# Node ID 82d78c197e42614e4c580841c81bfc23aa47ccc8
# Parent  b4e6a04b9d2dc6386013bfc3cfd6b89569e6ad65
asm: code for pixel_sse_sp_48x64

diff -r b4e6a04b9d2d -r 82d78c197e42 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp	Wed Nov 27 15:59:23 2013 +0530
+++ b/source/common/x86/asm-primitives.cpp	Wed Nov 27 16:21:08 2013 +0530
@@ -652,6 +652,7 @@
         p.sse_sp[LUMA_32x24] = x265_pixel_ssd_sp_32x24_sse4;
         p.sse_sp[LUMA_32x32] = x265_pixel_ssd_sp_32x32_sse4;
         p.sse_sp[LUMA_32x64] = x265_pixel_ssd_sp_32x64_sse4;
+        p.sse_sp[LUMA_48x64] = x265_pixel_ssd_sp_48x64_sse4;
 
         CHROMA_PIXELSUB_PS(_sse4);
 
diff -r b4e6a04b9d2d -r 82d78c197e42 source/common/x86/pixel-a.asm
--- a/source/common/x86/pixel-a.asm	Wed Nov 27 15:59:23 2013 +0530
+++ b/source/common/x86/pixel-a.asm	Wed Nov 27 16:21:08 2013 +0530
@@ -1555,6 +1555,56 @@
     RET
 
 ;-----------------------------------------------------------------------------
+; int pixel_ssd_48x64( uint8_t *, intptr_t, uint8_t *, intptr_t )
+;-----------------------------------------------------------------------------
+INIT_XMM sse4
+cglobal pixel_ssd_sp_48x64, 4, 7, 8, src1, stride1, src2, stride2
+
+    pxor     m7,     m7
+    pxor     m6,     m6
+    mov      r5,     r0
+    mov      r6,     r2
+    add      r1,     r1
+    lea      r4,     [r1 * 2]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r5 + 32]
+    lea      r2,     [r6 + 16]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r5 + 64]
+    lea      r2,     [r6 + 32]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    lea      r0,     [r0 + r4]
+    lea      r2,     [r2 + 2 * r3]
+    call     pixel_ssd_sp_16x16_internal
+    HADDD    m7,     m1
+    movd     eax,    m7
+    RET
+
+;-----------------------------------------------------------------------------
 ; void pixel_ssd_nv12_core( uint16_t *pixuv1, intptr_t stride1, uint16_t *pixuv2, intptr_t stride2,
 ;                           int width, int height, uint64_t *ssd_u, uint64_t *ssd_v )
 ;
diff -r b4e6a04b9d2d -r 82d78c197e42 source/common/x86/pixel.h
--- a/source/common/x86/pixel.h	Wed Nov 27 15:59:23 2013 +0530
+++ b/source/common/x86/pixel.h	Wed Nov 27 16:21:08 2013 +0530
@@ -412,4 +412,5 @@
 int x265_pixel_ssd_sp_32x24_sse4(int16_t *, intptr_t, pixel *, intptr_t);
 int x265_pixel_ssd_sp_32x32_sse4(int16_t *, intptr_t, pixel *, intptr_t);
 int x265_pixel_ssd_sp_32x64_sse4(int16_t *, intptr_t, pixel *, intptr_t);
+int x265_pixel_ssd_sp_48x64_sse4(int16_t *, intptr_t, pixel *, intptr_t);
 #endif // ifndef X265_I386_PIXEL_H


More information about the x265-devel mailing list