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

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


ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at stupeflix.com> | Thu Mar 31 13:51:21 2016 +0200| [b3ea901945c8ba8720f4eb5b6627444f4e7e193e] | committer: Matthieu Bouron

swscale/arm/yuv2rgb: factorize lsl in load_args_yuv422p

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

 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 6e6143a..aac0773 100644
--- a/libswscale/arm/yuv2rgb_neon.S
+++ b/libswscale/arm/yuv2rgb_neon.S
@@ -172,8 +172,7 @@
     vdup.16             d0, r10                                        @ d0  = y_coeff
     vld1.16             {d1}, [r8]                                     @ d1  = *table
     add                 r11, r2, r3                                    @ r11 = dst + linesize (dst2)
-    lsl                 r8, r0, #2
-    sub                 r3, r3, r8                                     @ r3  = linesize  - width * 4 (padding)
+    sub                 r3, r3, r0, lsl #2                             @ r3  = linesize  - width * 4 (padding)
     sub                 r5, r5, r0                                     @ r5  = linesizeY - width     (paddingY)
     sub                 r7, r7, r0, lsr #1                             @ r7  = linesizeU - width / 2 (paddingU)
     sub                 r12,r12,r0, lsr #1                             @ r12 = linesizeV - width / 2 (paddingV)



More information about the ffmpeg-cvslog mailing list