[x265] [PATCH] asm: 16bpp asm code for intra_pred_ang4_6
yuvaraj at multicorewareinc.com
yuvaraj at multicorewareinc.com
Mon Dec 9 12:10:37 CET 2013
# HG changeset patch
# User Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
# Date 1386587423 -19800
# Mon Dec 09 16:40:23 2013 +0530
# Node ID 5acffa8a6fe00074bd0d53d29c6fce30dff50743
# Parent 9fb6af500fb708b1272da679625e75212fb2ca67
asm: 16bpp asm code for intra_pred_ang4_6
diff -r 9fb6af500fb7 -r 5acffa8a6fe0 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Mon Dec 09 16:23:09 2013 +0530
+++ b/source/common/x86/asm-primitives.cpp Mon Dec 09 16:40:23 2013 +0530
@@ -689,6 +689,8 @@
SETUP_INTRA_ANG4(3, 3, sse4);
SETUP_INTRA_ANG4(4, 4, sse4);
SETUP_INTRA_ANG4(5, 5, sse4);
+ SETUP_INTRA_ANG4(6, 6, sse4);
+ SETUP_INTRA_ANG4(30, 6, sse4);
SETUP_INTRA_ANG4(31, 5, sse4);
SETUP_INTRA_ANG4(32, 4, sse4);
SETUP_INTRA_ANG4(33, 3, sse4);
diff -r 9fb6af500fb7 -r 5acffa8a6fe0 source/common/x86/intrapred16.asm
--- a/source/common/x86/intrapred16.asm Mon Dec 09 16:23:09 2013 +0530
+++ b/source/common/x86/intrapred16.asm Mon Dec 09 16:40:23 2013 +0530
@@ -521,3 +521,21 @@
mova m6, [r3 + 9 * 16] ; [19]
mova m7, [r3 - 6 * 16] ; [ 4]
jmp mangle(private_prefix %+ _ %+ intra_pred_ang4_3 %+ SUFFIX %+ .do_filter4x4)
+
+cglobal intra_pred_ang4_6, 3,4,8
+ cmp r4m, byte 30
+ cmove r2, r3mp
+ lea r3, [ang_table + 19 * 16]
+ movu m0, [r2 + 2] ; [8 7 6 5 4 3 2 1]
+ palignr m1, m0, 2 ; [x 8 7 6 5 4 3 2]
+ punpcklwd m2, m0, m1 ; [5 4 4 3 3 2 2 1]
+ mova m3, m2
+ palignr m6, m0, 4 ; [x x 8 7 6 5 4 3]
+ punpcklwd m4, m1, m6 ; [6 5 5 4 4 3 3 2]
+ mova m5, m4
+
+ mova m0, [r3 - 6 * 16] ; [13]
+ mova m1, [r3 + 7 * 16] ; [26]
+ mova m6, [r3 - 12 * 16] ; [ 7]
+ mova m7, [r3 + 1 * 16] ; [20]
+ jmp mangle(private_prefix %+ _ %+ intra_pred_ang4_3 %+ SUFFIX %+ .do_filter4x4)
More information about the x265-devel
mailing list