[x264-devel] [PATCH 15/23] aarch64: x264_deblock_h_chroma_422_neon
Janne Grunau
janne-x264 at jannau.net
Thu Nov 27 08:56:43 CET 2014
deblock_h_chroma_422 2.5 times faster
---
common/aarch64/deblock-a.S | 13 +++++++++++++
common/deblock.c | 2 ++
2 files changed, 15 insertions(+)
diff --git a/common/aarch64/deblock-a.S b/common/aarch64/deblock-a.S
index eb276c4..79db5b4 100644
--- a/common/aarch64/deblock-a.S
+++ b/common/aarch64/deblock-a.S
@@ -247,6 +247,7 @@ function x264_deblock_h_chroma_neon, export=1
h264_loop_filter_start
sub x0, x0, #4
+deblock_h_chroma:
ld1 {v18.d}[0], [x0], x1
ld1 {v16.d}[0], [x0], x1
ld1 {v0.d}[0], [x0], x1
@@ -275,6 +276,18 @@ function x264_deblock_h_chroma_neon, export=1
ret
endfunc
+ function x264_deblock_h_chroma_422_neon, export=1
+ add x5, x0, x1
+ add x1, x1, x1
+ mov x7, x30
+ bl X(x264_deblock_h_chroma_neon)
+ ldr w6, [x4]
+ mov x30, x7
+ sub x0, x5, #4
+ mov v24.s[0], w6
+ b deblock_h_chroma
+endfunc
+
.macro h264_loop_filter_chroma8
dup v22.8b, w2 // alpha
uxtl v24.8h, v24.8b
diff --git a/common/deblock.c b/common/deblock.c
index 6078e4a..fc56ee6 100644
--- a/common/deblock.c
+++ b/common/deblock.c
@@ -738,6 +738,7 @@ void x264_deblock_strength_neon( uint8_t nnz[X264_SCAN8_SIZE], int8_t ref[2][X26
int16_t mv[2][X264_SCAN8_LUMA_SIZE][2], uint8_t bs[2][8][4],
int mvy_limit, int bframe );
#if ARCH_AARCH64
+void x264_deblock_h_chroma_422_neon( uint8_t *pix, intptr_t stride, int alpha, int beta, int8_t *tc0 );
void x264_deblock_h_chroma_mbaff_neon( uint8_t *pix, intptr_t stride, int alpha, int beta, int8_t *tc0 );
void x264_deblock_h_chroma_intra_mbaff_neon( uint8_t *pix, intptr_t stride, int alpha, int beta);
void x264_deblock_h_chroma_intra_neon( uint8_t *pix, intptr_t stride, int alpha, int beta);
@@ -856,6 +857,7 @@ void x264_deblock_init( int cpu, x264_deblock_function_t *pf, int b_mbaff )
pf->deblock_chroma_420_mbaff = x264_deblock_h_chroma_mbaff_neon;
pf->deblock_chroma_420_intra_mbaff = x264_deblock_h_chroma_intra_mbaff_neon;
pf->deblock_h_chroma_420_intra = x264_deblock_h_chroma_intra_neon;
+ pf->deblock_h_chroma_422 = x264_deblock_h_chroma_422_neon;
pf->deblock_h_chroma_422_intra = x264_deblock_h_chroma_422_intra_neon;
pf->deblock_chroma_intra[1] = x264_deblock_v_chroma_intra_neon;
#endif
--
2.1.3
More information about the x264-devel
mailing list