[x265] [PATCH] asm: code for intra_Pred_Ang16x16 mode 32

chen chenm003 at 163.com
Mon Jan 20 13:41:40 CET 2014


code is right

At 2014-01-20 20:24:27,murugan at multicorewareinc.com wrote:
># HG changeset patch
># User Murugan Vairavel <murugan at multicorewareinc.com>
># Date 1390220641 -19800
>#      Mon Jan 20 17:54:01 2014 +0530
># Node ID de06c00f05738ea768d3ea0cb7e620be94d63016
># Parent  44854a290b18402225676e1a60ef3efd83c644f3
>asm: code for intra_Pred_Ang16x16 mode 32
>
>diff -r 44854a290b18 -r de06c00f0573 source/common/x86/asm-primitives.cpp
>--- a/source/common/x86/asm-primitives.cpp Mon Jan 20 17:45:03 2014 +0530
>+++ b/source/common/x86/asm-primitives.cpp Mon Jan 20 17:54:01 2014 +0530
>@@ -1016,6 +1016,7 @@
>         SETUP_INTRA_ANG16(3, 3, sse4);
>         SETUP_INTRA_ANG16(4, 4, sse4);
>         SETUP_INTRA_ANG16(33, 33, sse4);
>+        SETUP_INTRA_ANG16(32, 32, sse4);
> 
>         SETUP_INTRA_ANG32(17, 17, sse4);
> 
>diff -r 44854a290b18 -r de06c00f0573 source/common/x86/intrapred.h
>--- a/source/common/x86/intrapred.h Mon Jan 20 17:45:03 2014 +0530
>+++ b/source/common/x86/intrapred.h Mon Jan 20 17:54:01 2014 +0530
>@@ -95,6 +95,7 @@
> DECL_ANG(16, 18, sse4);
> DECL_ANG(16, 26, sse4);
> DECL_ANG(16, 33, sse4);
>+DECL_ANG(16, 32, sse4);
> 
> DECL_ANG(32, 2, ssse3);
> DECL_ANG(32, 3, sse4);
>diff -r 44854a290b18 -r de06c00f0573 source/common/x86/intrapred8.asm
>--- a/source/common/x86/intrapred8.asm Mon Jan 20 17:45:03 2014 +0530
>+++ b/source/common/x86/intrapred8.asm Mon Jan 20 17:54:01 2014 +0530
>@@ -1608,6 +1608,134 @@
> 
>     RET
> 
>+INIT_XMM sse4
>+cglobal intra_pred_ang16_32, 3,7,8
>+    mov         r2,        r3mp
>+    lea         r3,        [ang_table + 16 * 16]
>+    mov         r4d,       2
>+    lea         r5,        [r1 * 3]            ; r5 -> 3 * stride
>+    mov         r6,        r0
>+    mova        m7,        [pw_1024]
>+
>+.loop:
>+    movu        m0,        [r2 + 1]
>+    palignr     m1,        m0, 1
>+
>+    punpckhbw   m2,        m0, m1
>+    punpcklbw   m0,        m1
>+    palignr     m1,        m2, m0, 2
>+    mova        m5,        m1
>+
>+    movu        m3,        [r3 + 5 * 16]             ; [21]
>+    movu        m6,        [r3 - 6 * 16]             ; [10]
>+
>+    pmaddubsw   m4,        m0, m3
>+    pmulhrsw    m4,        m7
>+    pmaddubsw   m1,        m6
>+    pmulhrsw    m1,        m7
>+    packuswb    m4,        m1
>+
>+    movu        m3,        [r3 + 15 * 16]             ; [31]
>+    pmaddubsw   m5,        m3
>+    pmulhrsw    m5,        m7
>+
>+    palignr     m6,        m2, m0, 4
>+
>+    movu        m3,        [r3 + 4 * 16]              ; [ 20]
>+    pmaddubsw   m6,        m3
>+    pmulhrsw    m6,        m7
>+    packuswb    m5,        m6
>+
>+    palignr     m1,        m2, m0, 6
>+
>+    movu        m3,        [r3 - 7 * 16]              ; [ 9]
>+    pmaddubsw   m6,        m1, m3
>+    pmulhrsw    m6,        m7
>+
>+    movu        m3,        [r3 + 14 * 16]             ; [30]
>+    pmaddubsw   m1,        m3
>+    pmulhrsw    m1,        m7
>+    packuswb    m6,        m1
>+
>+    palignr     m1,        m2, m0, 8
>+
>+    movu        m3,        [r3 + 3 * 16]              ; [19]
>+    pmaddubsw   m1,        m3
>+    pmulhrsw    m1,        m7
>+
>+    palignr     m2,        m0, 10
>+    mova        m3,        m2
>+
>+    movu        m0,        [r3 - 8 * 16]              ; [8]
>+    pmaddubsw   m2,        m0
>+    pmulhrsw    m2,        m7
>+    packuswb    m1,        m2
>+
>+    STORE_8x8 m4, m5, m6, m1
>+
>+    movu        m0,        [r3 + 13 * 16]             ; [29]
>+    pmaddubsw   m4,        m3, m0
>+    pmulhrsw    m4,        m7
>+
>+    movu        m0,        [r2 + 6]
>+    palignr     m1,        m0, 1
>+
>+    punpckhbw   m2,        m0, m1
>+    punpcklbw   m0,        m1
>+    palignr     m1,        m2, m0, 2
>+
>+    movu        m6,        [r3 +  2 * 16]            ; [18]
>+
>+    pmaddubsw   m1,        m6
>+    pmulhrsw    m1,        m7
>+    packuswb    m4,        m1
>+
>+    palignr     m5,        m2, m0, 4
>+    movu        m6,        m5
>+
>+    movu        m3,        [r3 - 9 * 16]             ; [07]
>+    pmaddubsw   m5,        m3
>+    pmulhrsw    m5,        m7
>+
>+    movu        m3,        [r3 + 12 * 16]             ; [28]
>+    pmaddubsw   m6,        m3
>+    pmulhrsw    m6,        m7
>+    packuswb    m5,        m6
>+
>+    palignr     m6,        m2, m0, 6
>+
>+    movu        m3,        [r3 +      16]             ; [17]
>+    pmaddubsw   m6,        m3
>+    pmulhrsw    m6,        m7
>+
>+    palignr     m1,        m2, m0, 8
>+
>+
>+    pmaddubsw   m3,        m1, [r3 - 10 * 16]         ; [06]
>+    pmulhrsw    m3,        m7
>+    packuswb    m6,        m3
>+
>+    movu        m3,        [r3 + 11 * 16]             ; [27]
>+    pmaddubsw   m1,        m3
>+    pmulhrsw    m1,        m7
>+
>+    palignr     m2,        m0, 10
>+
>+    movu        m3,        [r3]                       ; [16]
>+    pmaddubsw   m2,        m3
>+    pmulhrsw    m2,        m7
>+    packuswb    m1,        m2
>+
>+    lea         r0,        [r0 + r1 * 4]
>+    STORE_8x8 m4, m5, m6, m1
>+
>+    lea         r0,        [r6 + 8]
>+    add         r2,        8
>+    dec         r4
>+    jnz        .loop
>+
>+    RET
>+
> ;---------------------------------------------------------------------------------------------------------------
> ; void intraPredAng32(pixel* dst, intptr_t dstStride, pixel *refLeft, pixel *refAbove, int dirMode, int bFilter)
> ;---------------------------------------------------------------------------------------------------------------
>_______________________________________________
>x265-devel mailing list
>x265-devel at videolan.org
>https://mailman.videolan.org/listinfo/x265-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140120/f3d47c61/attachment-0001.html>


More information about the x265-devel mailing list