[x264-devel] [PATCH 1/1] arm64: skip deblocking completely in 264_deblock_h_chroma_422_neon

Janne Grunau janne-x264 at jannau.net
Thu Aug 20 13:55:54 CEST 2015


If the parameters (alpha, beta, tc0[]) indicated that the deblocking
should have been skipped, every 2nd chrome line would have deblocked
anyway.

deblock_h_chroma_422_neon: 2259 (before)
deblock_h_chroma_422_neon: 2192 (after)
---
 common/aarch64/deblock-a.S | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/common/aarch64/deblock-a.S b/common/aarch64/deblock-a.S
index e051a6a..dafd829 100644
--- a/common/aarch64/deblock-a.S
+++ b/common/aarch64/deblock-a.S
@@ -31,9 +31,9 @@
     ldr             w6,  [x4]
     ccmp            w3,  #0, #0, ne
     mov             v24.s[0], w6
-    and             w6,  w6,  w6,  lsl #16
+    and             w8,  w6,  w6,  lsl #16
     b.eq            1f
-    ands            w6,  w6,  w6,  lsl #8
+    ands            w8,  w8,  w8,  lsl #8
     b.ge            2f
 1:
     ret
@@ -474,10 +474,11 @@ endfunc
 
 function x264_deblock_h_chroma_422_neon, export=1
     add             x5,  x0,  x1
+    sub             x0,  x0,  #4
     add             x1,  x1,  x1
+    h264_loop_filter_start
     mov             x7,  x30
-    bl              X(x264_deblock_h_chroma_neon)
-    ldr             w6,  [x4]
+    bl              deblock_h_chroma
     mov             x30, x7
     sub             x0,  x5,  #4
     mov             v24.s[0], w6
-- 
2.5.0



More information about the x264-devel mailing list