[x265] [PATCH 14 of 18] asm: intra_pred_ang4_14_sse2 16-bit
dtyx265 at gmail.com
dtyx265 at gmail.com
Fri Apr 3 18:24:45 CEST 2015
# HG changeset patch
# User David T Yuen <dtyx265 at gmail.com>
# Date 1428076958 25200
# Node ID 8dbdcc01c0afd466b7c7ef1a5b9b67e246c0c77a
# Parent 57f635c8bd62590c95d6d0ad1a20ce5270639038
asm: intra_pred_ang4_14_sse2 16-bit
This is backported from sse4 code and replaces c code.
./test/TestBench --testbench intrapred | grep "intra_ang_4x4\[14\]"
intra_ang_4x4[14] 4.25x 504.99 2147.57
transposed mode
./test/TestBench --testbench intrapred | grep "intra_ang_4x4\[22\]"
intra_ang_4x4[22] 3.79x 442.58 1675.51
diff -r 57f635c8bd62 -r 8dbdcc01c0af source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Fri Apr 03 09:00:07 2015 -0700
+++ b/source/common/x86/asm-primitives.cpp Fri Apr 03 09:02:38 2015 -0700
@@ -894,6 +894,8 @@
p.cu[BLOCK_4x4].intra_pred[11] = x265_intra_pred_ang4_11_sse2;
p.cu[BLOCK_4x4].intra_pred[12] = x265_intra_pred_ang4_12_sse2;
p.cu[BLOCK_4x4].intra_pred[13] = x265_intra_pred_ang4_13_sse2;
+ p.cu[BLOCK_4x4].intra_pred[14] = x265_intra_pred_ang4_14_sse2;
+ p.cu[BLOCK_4x4].intra_pred[22] = x265_intra_pred_ang4_14_sse2;
p.cu[BLOCK_4x4].intra_pred[23] = x265_intra_pred_ang4_13_sse2;
p.cu[BLOCK_4x4].intra_pred[24] = x265_intra_pred_ang4_12_sse2;
p.cu[BLOCK_4x4].intra_pred[25] = x265_intra_pred_ang4_11_sse2;
diff -r 57f635c8bd62 -r 8dbdcc01c0af source/common/x86/intrapred16.asm
--- a/source/common/x86/intrapred16.asm Fri Apr 03 09:00:07 2015 -0700
+++ b/source/common/x86/intrapred16.asm Fri Apr 03 09:02:38 2015 -0700
@@ -1053,6 +1053,33 @@
mova m7, [r3 + 7 * 16] ; [28]
jmp mangle(private_prefix %+ _ %+ intra_pred_ang4_3 %+ SUFFIX %+ .do_filter4x4)
+cglobal intra_pred_ang4_14, 3,5,8
+ xor r4d, r4d
+ cmp r3m, byte 22
+ mov r3d, 16
+ jz .next
+ xchg r3d, r4d
+.next:
+ movd m5, [r2 + r3 + 2]
+ movd m2, [r2 - 2]
+ movh m0, [r2 + r4 + 2]
+ punpcklwd m5, m2
+ punpcklqdq m5, m0
+ psrldq m5, 4
+ mova m2, m5
+ psrldq m2, 2
+ punpcklwd m5, m2 ; [3 2 2 1 1 0 0 x]
+ punpcklwd m2, m0 ; [4 3 3 2 2 1 1 0]
+ mova m3, m2
+ mova m4, m5
+
+ lea r3, [ang_table + 19 * 16]
+ mova m0, [r3 + 0 * 16] ; [19]
+ mova m1, [r3 - 13 * 16] ; [ 6]
+ mova m6, [r3 + 6 * 16] ; [25]
+ mova m7, [r3 - 7 * 16] ; [12]
+ jmp mangle(private_prefix %+ _ %+ intra_pred_ang4_3 %+ SUFFIX %+ .do_filter4x4)
+
;-----------------------------------------------------------------------------------
; void intra_pred_dc(pixel* dst, intptr_t dstStride, pixel* above, int, int filter)
;-----------------------------------------------------------------------------------
More information about the x265-devel
mailing list