[FFmpeg-cvslog] swscale/arm/yuv2rgb: factorize lsl in load_args_yuv420p

Matthieu Bouron git at videolan.org
Fri Apr 1 17:29:13 CEST 2016


ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at stupeflix.com> | Wed Mar 23 13:00:33 2016 +0000| [0649fe0fae96790b0862528dde0cfac629b2103f] | committer: Matthieu Bouron

swscale/arm/yuv2rgb: factorize lsl in load_args_yuv420p

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0649fe0fae96790b0862528dde0cfac629b2103f
---

 libswscale/arm/yuv2rgb_neon.S |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S
index 22864ec..4601a79 100644
--- a/libswscale/arm/yuv2rgb_neon.S
+++ b/libswscale/arm/yuv2rgb_neon.S
@@ -152,8 +152,7 @@
     add                 r12, r4, r5                                    @ r12 = srcY + linesizeY (srcY2)
     lsl                 r3, r3, #1
     lsl                 r5, r5, #1
-    lsl                 r8, r0, #2
-    sub                 r3, r3, r8                                     @ r3 = linesize  * 2 - width * 4 (padding)
+    sub                 r3, r3, r0, lsl #2                             @ r3 = linesize  * 2 - width * 4 (padding)
     sub                 r5, r5, r0                                     @ r5 = linesizeY * 2 - width     (paddingY)
     ldr                 r10,[sp, #120]                                 @ r10 = srcV
 .endm



More information about the ffmpeg-cvslog mailing list