[FFmpeg-cvslog] x86/vf_stereo3d: remove a few unnecessary movas

James Almer git at videolan.org
Sun Jan 3 06:12:54 CET 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Jan  3 02:09:02 2016 -0300| [35b0c7efda525acb7054f40e934cd487c90139c3] | committer: James Almer

x86/vf_stereo3d: remove a few unnecessary movas

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavfilter/x86/vf_stereo3d.asm |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/libavfilter/x86/vf_stereo3d.asm b/libavfilter/x86/vf_stereo3d.asm
index 491579f..a057e49 100644
--- a/libavfilter/x86/vf_stereo3d.asm
+++ b/libavfilter/x86/vf_stereo3d.asm
@@ -132,10 +132,10 @@ cglobal anaglyph, 3, 6, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, o, cnt
     xor                 cntd, cntd
 
     .loop:
-        movu                 m0, [lsrcq+cntq]
-        pshufb               m1, m0, [ex_r]
-        pshufb               m2, m0, [ex_g]
-        pshufb               m3, m0, [ex_b]
+        movu                 m3, [lsrcq+cntq]
+        pshufb               m1, m3, [ex_r]
+        pshufb               m2, m3, [ex_g]
+        pshufb               m3, [ex_b]
         movu                 m0, [rsrcq+cntq]
         pshufb               m4, m0, [ex_r]
         pshufb               m5, m0, [ex_g]
@@ -152,10 +152,10 @@ cglobal anaglyph, 3, 6, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, o, cnt
         paddd                m1, m3
         paddd                m1, m5
 
-        movu                 m0, [lsrcq+cntq]
-        pshufb               m7, m0, [ex_r]
-        pshufb               m2, m0, [ex_g]
-        pshufb               m3, m0, [ex_b]
+        movu                 m3, [lsrcq+cntq]
+        pshufb               m7, m3, [ex_r]
+        pshufb               m2, m3, [ex_g]
+        pshufb               m3, [ex_b]
         movu                 m0, [rsrcq+cntq]
         pshufb               m4, m0, [ex_r]
         pshufb               m5, m0, [ex_g]
@@ -172,10 +172,10 @@ cglobal anaglyph, 3, 6, 8, 2*9*mmsize, dst, lsrc, rsrc, dst_linesize, o, cnt
         paddd                m7, m3
         paddd                m7, m5
 
-        movu                 m0, [lsrcq+cntq]
-        pshufb               m2, m0, [ex_r]
-        pshufb               m3, m0, [ex_g]
-        pshufb               m4, m0, [ex_b]
+        movu                 m4, [lsrcq+cntq]
+        pshufb               m2, m4, [ex_r]
+        pshufb               m3, m4, [ex_g]
+        pshufb               m4, [ex_b]
         movu                 m0, [rsrcq+cntq]
         pshufb               m5, m0, [ex_r]
         pshufb               m6, m0, [ex_g]



More information about the ffmpeg-cvslog mailing list