[FFmpeg-cvslog] x86/hevc_deblock: fix usage of ABS1

James Almer git at videolan.org
Sat May 17 06:13:48 CEST 2014


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri May 16 21:59:04 2014 -0300| [521eaea63af4c43f1c8abcd3e57ce759a6b550eb] | committer: Michael Niedermayer

x86/hevc_deblock: fix usage of ABS1

The second argument is a temp register for non-SSSE3 cases

Signed-off-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/x86/hevc_deblock.asm |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm
index 540b7a7..c74df27 100644
--- a/libavcodec/x86/hevc_deblock.asm
+++ b/libavcodec/x86/hevc_deblock.asm
@@ -349,12 +349,12 @@ ALIGN 16
     psllw            m9, m2, 1; *2
     psubw           m10, m1, m9
     paddw           m10, m3
-    ABS1            m10, m10 ; 0dp0, 0dp3 , 1dp0, 1dp3
+    ABS1            m10, m11 ; 0dp0, 0dp3 , 1dp0, 1dp3
 
     psllw            m9, m5, 1; *2
     psubw           m11, m6, m9
     paddw           m11, m4
-    ABS1            m11, m11 ; 0dq0, 0dq3 , 1dq0, 1dq3
+    ABS1            m11, m13 ; 0dq0, 0dq3 , 1dq0, 1dq3
 
     ;beta calculations
     mov             r11, [betaq];
@@ -450,10 +450,10 @@ ALIGN 16
 
     ;----beta_3 comparison-----
     psubw           m12, m0, m3;      p3 - p0
-    ABS1            m12, m12; abs(p3 - p0)
+    ABS1            m12, m14; abs(p3 - p0)
 
     psubw           m15, m7, m4;      q3 - q0
-    ABS1            m15, m15; abs(q3 - q0)
+    ABS1            m15, m14; abs(q3 - q0)
 
     paddw           m12, m15; abs(p3 - p0) + abs(q3 - q0)
 
@@ -467,7 +467,7 @@ ALIGN 16
     ;----beta_3 comparison end-----
     ;----tc25 comparison---
     psubw           m12, m3, m4;      p0 - q0
-    ABS1            m12, m12; abs(p0 - q0)
+    ABS1            m12, m14; abs(p0 - q0)
 
     pshufhw         m12, m12, 0xf0 ;0b11110000;
     pshuflw         m12, m12, 0xf0 ;0b11110000;



More information about the ffmpeg-cvslog mailing list