[FFmpeg-cvslog] vp9/x86: clarify mixed splatb.

Clément Bœsch git at videolan.org
Sat Apr 19 17:02:45 CEST 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Apr 19 17:00:51 2014 +0200| [b8d002dc95010236ea35d857e09261a8df488f92] | committer: Clément Bœsch

vp9/x86: clarify mixed splatb.

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

 libavcodec/x86/vp9lpf.asm |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/libavcodec/x86/vp9lpf.asm b/libavcodec/x86/vp9lpf.asm
index e41dd2c..1309ee4 100644
--- a/libavcodec/x86/vp9lpf.asm
+++ b/libavcodec/x86/vp9lpf.asm
@@ -305,7 +305,8 @@ SECTION .text
 %define Q7 dst2q +  strideq    + %1
 %endmacro
 
-%macro SPLATB_MASK 2
+; ..............AB -> AAAAAAAABBBBBBBB
+%macro SPLATB_MIX 1-2 [mask_mix]
 %if cpuflag(ssse3)
     pshufb     %1, %2
 %else
@@ -411,8 +412,8 @@ SECTION .text
 %endif
     movd                m2, Id
     movd                m3, Ed
-    SPLATB_MASK         m2, m0
-    SPLATB_MASK         m3, m0
+    SPLATB_MIX          m2, m0
+    SPLATB_MIX          m3, m0
 %endif
     mova                m0, [pb_80]
     pxor                m2, m0
@@ -471,7 +472,7 @@ SECTION .text
     SPLATB_REG          m7, H, m0                       ; H H H H ...
 %else
     movd                m7, Hd
-    SPLATB_MASK         m7, [mask_mix]
+    SPLATB_MIX          m7
 %endif
     pxor                m7, m8
     pxor                m4, m8
@@ -494,7 +495,7 @@ SECTION .text
 %else
     mova                m6, [pb_80]
     movd                m7, Hd
-    SPLATB_MASK         m7, [mask_mix]
+    SPLATB_MIX          m7
     pxor                m7, m6
     ABSSUB              m4, m10, m11, m1                ; abs(p1 - p0)
     pxor                m4, m6



More information about the ffmpeg-cvslog mailing list