Hi,

attached patch do some optimization of blending then source alpha is 0.

--
Maksym Veremeyenko


From 1c65a7f50f247af3682fbb781e220b35b161a966 Mon Sep 17 00:00:00 2001
From: Maksym Veremeyenko <ve...@m1.tv>
Date: Thu, 4 Feb 2016 20:13:47 +0200
Subject: [PATCH] do not any blending/compositing for case #2 if source alpha
 is 0

---
 src/modules/core/composite_line_yuv_sse2_simple.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/modules/core/composite_line_yuv_sse2_simple.c 
b/src/modules/core/composite_line_yuv_sse2_simple.c
index a68a788..2685d04 100644
--- a/src/modules/core/composite_line_yuv_sse2_simple.c
+++ b/src/modules/core/composite_line_yuv_sse2_simple.c
@@ -155,7 +155,10 @@ static void blend_case2(uint8_t *dest, uint8_t *src, int 
width, uint8_t *src_a)
         LOAD_CONSTS
         "loop_start2:                           \n\t"
         LOAD_SRC_A
+        "ptest          %%xmm0,%%xmm0           \n\t"
+        "jz             skip_calc2              \n\t"
         DST_PIX_CALC
+        "skip_calc2:                            \n\t"
         "add            $0x08, %[src_a]         \n\t"
         PIX_POINTER_INC
         "jnz            loop_start2             \n\t"
-- 
1.7.7.6

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to