[x264-devel] aarch64: Skip deblocking in 264_deblock_h_chroma_422_neon

Janne Grunau git at videolan.org
Sun Oct 11 19:01:03 CEST 2015


x264 | branch: master | Janne Grunau <janne-x264 at jannau.net> | Thu Aug 20 13:55:54 2015 +0200| [3d86abab097fa26d116112f188458269c6a0415f] | committer: Henrik Gramner

aarch64: Skip deblocking in 264_deblock_h_chroma_422_neon

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)

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=3d86abab097fa26d116112f188458269c6a0415f
---

 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



More information about the x264-devel mailing list