[x265] [PATCH 08 of 18] asm: intra_pred_ang4_9_sse2 16-bit
dtyx265 at gmail.com
dtyx265 at gmail.com
Fri Apr 3 18:24:39 CEST 2015
# HG changeset patch
# User David T Yuen <dtyx265 at gmail.com>
# Date 1428075626 25200
# Node ID 47dcaffb0a2cbf71efa8ca6eabe45c610901513b
# Parent 1873e34b04005449ecf3ec45d1c0de3a7c54ff86
asm: intra_pred_ang4_9_sse2 16-bit
This is backported from sse4 code and replaces c code.
./test/TestBench --testbench intrapred | grep "intra_ang_4x4\[ 9\]"
intra_ang_4x4[ 9] 4.33x 457.50 1982.47
transposed mode
./test/TestBench --testbench intrapred | grep "intra_ang_4x4\[27\]"
intra_ang_4x4[27] 3.61x 402.54 1453.19
diff -r 1873e34b0400 -r 47dcaffb0a2c source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Fri Apr 03 08:37:03 2015 -0700
+++ b/source/common/x86/asm-primitives.cpp Fri Apr 03 08:40:26 2015 -0700
@@ -889,6 +889,8 @@
p.cu[BLOCK_4x4].intra_pred[6] = x265_intra_pred_ang4_6_sse2;
p.cu[BLOCK_4x4].intra_pred[7] = x265_intra_pred_ang4_7_sse2;
p.cu[BLOCK_4x4].intra_pred[8] = x265_intra_pred_ang4_8_sse2;
+ p.cu[BLOCK_4x4].intra_pred[9] = x265_intra_pred_ang4_9_sse2;
+ p.cu[BLOCK_4x4].intra_pred[27] = x265_intra_pred_ang4_9_sse2;
p.cu[BLOCK_4x4].intra_pred[28] = x265_intra_pred_ang4_8_sse2;
p.cu[BLOCK_4x4].intra_pred[29] = x265_intra_pred_ang4_7_sse2;
p.cu[BLOCK_4x4].intra_pred[30] = x265_intra_pred_ang4_6_sse2;
diff -r 1873e34b0400 -r 47dcaffb0a2c source/common/x86/intrapred16.asm
--- a/source/common/x86/intrapred16.asm Fri Apr 03 08:37:03 2015 -0700
+++ b/source/common/x86/intrapred16.asm Fri Apr 03 08:40:26 2015 -0700
@@ -896,6 +896,27 @@
mova m7, [r3 + 7 * 16] ; [20]
jmp mangle(private_prefix %+ _ %+ intra_pred_ang4_3 %+ SUFFIX %+ .do_filter4x4)
+cglobal intra_pred_ang4_9, 3,5,8
+ mov r4d, 2
+ cmp r3m, byte 27
+ mov r3d, 18
+ cmove r3d, r4d
+
+ movu m0, [r2 + r3] ; [8 7 6 5 4 3 2 1]
+ mova m2, m0
+ psrldq m0, 2
+ punpcklwd m2, m0 ; [5 4 4 3 3 2 2 1]
+ mova m3, m2
+ mova m4, m2
+ mova m5, m2
+
+ lea r3, [ang_table + 4 * 16]
+ mova m0, [r3 - 2 * 16] ; [ 2]
+ mova m1, [r3 - 0 * 16] ; [ 4]
+ mova m6, [r3 + 2 * 16] ; [ 6]
+ mova m7, [r3 + 4 * 16] ; [ 8]
+ 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