[x265] [PATCH] asm: intra_pred_ang16_34
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Tue Mar 10 15:03:11 CET 2015
# HG changeset patch
# User Praveen Tiwari <praveen at multicorewareinc.com>
# Date 1425996090 -19800
# Node ID b5cc1a011beb7eb1baf6d22d2c0e45730f8bfe9e
# Parent c5215ffa12fee77b89c98888edf9faa369bacd41
asm: intra_pred_ang16_34
diff -r c5215ffa12fe -r b5cc1a011beb source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Tue Mar 10 17:57:51 2015 +0530
+++ b/source/common/x86/asm-primitives.cpp Tue Mar 10 19:31:30 2015 +0530
@@ -1501,6 +1501,7 @@
p.cu[BLOCK_8x8].intra_pred[24] = x265_intra_pred_ang8_24_avx2;
p.cu[BLOCK_8x8].intra_pred[22] = x265_intra_pred_ang8_22_avx2;
p.cu[BLOCK_8x8].intra_pred[14] = x265_intra_pred_ang8_14_avx2;
+ p.cu[BLOCK_16x16].intra_pred[34] = x265_intra_pred_ang16_34_avx2;
// copy_sp primitives
p.cu[BLOCK_16x16].copy_sp = x265_blockcopy_sp_16x16_avx2;
diff -r c5215ffa12fe -r b5cc1a011beb source/common/x86/intrapred.h
--- a/source/common/x86/intrapred.h Tue Mar 10 17:57:51 2015 +0530
+++ b/source/common/x86/intrapred.h Tue Mar 10 19:31:30 2015 +0530
@@ -184,6 +184,7 @@
void x265_intra_pred_ang8_24_avx2(pixel* dst, intptr_t dstStride, const pixel* srcPix, int dirMode, int bFilter);
void x265_intra_pred_ang8_22_avx2(pixel* dst, intptr_t dstStride, const pixel* srcPix, int dirMode, int bFilter);
void x265_intra_pred_ang8_14_avx2(pixel* dst, intptr_t dstStride, const pixel* srcPix, int dirMode, int bFilter);
+void x265_intra_pred_ang16_34_avx2(pixel* dst, intptr_t dstStride, const pixel* srcPix, int dirMode, int bFilter);
void x265_all_angs_pred_4x4_sse4(pixel *dest, pixel *refPix, pixel *filtPix, int bLuma);
void x265_all_angs_pred_8x8_sse4(pixel *dest, pixel *refPix, pixel *filtPix, int bLuma);
void x265_all_angs_pred_16x16_sse4(pixel *dest, pixel *refPix, pixel *filtPix, int bLuma);
diff -r c5215ffa12fe -r b5cc1a011beb source/common/x86/intrapred8.asm
--- a/source/common/x86/intrapred8.asm Tue Mar 10 17:57:51 2015 +0530
+++ b/source/common/x86/intrapred8.asm Tue Mar 10 19:31:30 2015 +0530
@@ -10578,3 +10578,44 @@
movq [r0 + 2 * r1], xm2
movhps [r0 + r3], xm2
RET
+
+INIT_YMM avx2
+cglobal intra_pred_ang16_34, 3, 4, 3
+ lea r3, [3 * r1]
+ movu m0, [r2 + 2]
+ movu [r0], xm0
+ vextracti128 xm1, m0, 1
+ palignr xm2, xm1, xm0, 1
+ movu [r0 + r1], xm2
+ palignr xm2, xm1, xm0, 2
+ movu [r0 + 2 * r1], xm2
+ palignr xm2, xm1, xm0, 3
+ movu [r0 + r3], xm2
+ lea r0, [r0 + 4 * r1]
+ palignr xm2, xm1, xm0, 4
+ movu [r0], xm2
+ palignr xm2, xm1, xm0, 5
+ movu [r0 + r1], xm2
+ palignr xm2, xm1, xm0, 6
+ movu [r0 + 2 * r1], xm2
+ palignr xm2, xm1, xm0, 7
+ movu [r0 + r3], xm2
+ lea r0, [r0 + 4 * r1]
+ palignr xm2, xm1, xm0, 8
+ movu [r0], xm2
+ palignr xm2, xm1, xm0, 9
+ movu [r0 + r1], xm2
+ palignr xm2, xm1, xm0, 10
+ movu [r0 + 2 * r1], xm2
+ palignr xm2, xm1, xm0, 11
+ movu [r0 + r3], xm2
+ lea r0, [r0 + 4 * r1]
+ palignr xm2, xm1, xm0, 12
+ movu [r0], xm2
+ palignr xm2, xm1, xm0, 13
+ movu [r0 + r1], xm2
+ palignr xm2, xm1, xm0, 14
+ movu [r0 + 2 * r1], xm2
+ palignr xm2, xm1, xm0, 15
+ movu [r0 + r3], xm2
+ RET
More information about the x265-devel
mailing list