[FFmpeg-cvslog] vp9: split pre-load of 11585x2 out of 1d idct macro.

Ronald S. Bultje git at videolan.org
Sat Dec 7 19:08:34 CET 2013


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Mon Dec  2 08:03:04 2013 -0500| [b2045c44a94db4df97fdd753ea738fcf578d65d8] | committer: Ronald S. Bultje

vp9: split pre-load of 11585x2 out of 1d idct macro.

This allows us to load it only once, instead of twice, in this function.

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

 libavcodec/x86/vp9itxfm.asm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/x86/vp9itxfm.asm b/libavcodec/x86/vp9itxfm.asm
index 1b272dd..c382bdb 100644
--- a/libavcodec/x86/vp9itxfm.asm
+++ b/libavcodec/x86/vp9itxfm.asm
@@ -91,9 +91,8 @@ SECTION .text
 
 %macro VP9_IDCT4_1D 0
     SUMSUB_BA            w, 2, 0, 4                         ; m2=IN(0)+IN(2) m0=IN(0)-IN(2)
-    mova                m4, [pw_11585x2]
-    pmulhrsw            m2, m4                              ; m2=t0
-    pmulhrsw            m0, m4                              ; m0=t1
+    pmulhrsw            m2, m6                              ; m2=t0
+    pmulhrsw            m0, m6                              ; m0=t1
     VP9_UNPACK_MULSUB_2W_4X 1, 3, 15137, 6270, m7, 4, 5     ; m1=t2, m3=t3
     VP9_IDCT4_1D_FINALIZE
 %endmacro
@@ -162,6 +161,7 @@ cglobal vp9_idct_idct_4x4_add, 4,4,0, dst, stride, block, eob
     mova                m1, [blockq+ 8]
     mova                m2, [blockq+16]
     mova                m3, [blockq+24]
+    mova                m6, [pw_11585x2]
     mova                m7, [pd_8192]       ; rounding
     VP9_IDCT4_1D
     TRANSPOSE4x4W  0, 1, 2, 3, 4



More information about the ffmpeg-cvslog mailing list