[FFmpeg-devel] [PATCH 2/3] x86/vf_blend: use shared constants

Timothy Gu timothygu99 at gmail.com
Mon Feb 8 20:27:52 CET 2016


---
 libavfilter/x86/vf_blend.asm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libavfilter/x86/vf_blend.asm b/libavfilter/x86/vf_blend.asm
index 730be77..8e4251a 100644
--- a/libavfilter/x86/vf_blend.asm
+++ b/libavfilter/x86/vf_blend.asm
@@ -24,11 +24,11 @@
 
 SECTION_RODATA
 
-pw_128: times 8 dw 128
-pw_255: times 8 dw 255
+cextern pw_128
+cextern pw_255
+cextern pw_m1
+cextern pb_80
 pb_127: times 16 db 127
-pb_128: times 16 db 128
-pb_255: times 16 db 255
 
 SECTION .text
 
@@ -139,8 +139,8 @@ BLEND_INIT addition128, 4
 BLEND_END
 
 BLEND_INIT hardmix, 5
-    mova       m2, [pb_255]
-    mova       m3, [pb_128]
+    mova       m2, [pw_m1]
+    mova       m3, [pb_80]
     mova       m4, [pb_127]
 .nextrow:
     mov        xq, widthq
@@ -158,7 +158,7 @@ BLEND_INIT hardmix, 5
 BLEND_END
 
 BLEND_INIT phoenix, 4
-    mova       m3, [pb_255]
+    mova       m3, [pw_m1]
 .nextrow:
     mov        xq, widthq
 
-- 
1.9.1



More information about the ffmpeg-devel mailing list