From 738a66268a5d4ad948714dc095711cb4a21997f3 Mon Sep 17 00:00:00 2001 From: Rajneesh Chowdury Date: Thu, 22 Sep 2011 10:51:02 -0700 Subject: [PATCH] Fix for 5274212 Transition clip contains more video frames from 1 video clip than the other Set the alpha blending value correctly. Change-Id: I6aaed47144d09d182afb1c70d5bb72b7360fb51e --- libvideoeditor/vss/src/M4xVSS_internal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libvideoeditor/vss/src/M4xVSS_internal.c b/libvideoeditor/vss/src/M4xVSS_internal.c index a322caaba9..5844115cf8 100755 --- a/libvideoeditor/vss/src/M4xVSS_internal.c +++ b/libvideoeditor/vss/src/M4xVSS_internal.c @@ -4240,11 +4240,11 @@ M4OSA_ERR M4xVSS_AlphaMagic( M4OSA_Void *userData, M4VIFI_ImagePlane PlaneIn1[3] alphaContext = (M4xVSS_internal_AlphaMagicSettings*)userData; - alphaProgressLevel = (pProgress->uiProgress * 255)/1000; + alphaProgressLevel = (pProgress->uiProgress * 128)/1000; if( alphaContext->isreverse != M4OSA_FALSE) { - alphaProgressLevel = 255 - alphaProgressLevel; + alphaProgressLevel = 128 - alphaProgressLevel; planeswap = PlaneIn1; PlaneIn1 = PlaneIn2; PlaneIn2 = planeswap; @@ -4356,11 +4356,11 @@ M4OSA_ERR M4xVSS_AlphaMagicBlending( M4OSA_Void *userData, M4VIFI_ImagePlane Pla alphaContext = (M4xVSS_internal_AlphaMagicSettings*)userData; - alphaProgressLevel = (pProgress->uiProgress * 255)/1000; + alphaProgressLevel = (pProgress->uiProgress * 128)/1000; if( alphaContext->isreverse != M4OSA_FALSE) { - alphaProgressLevel = 255 - alphaProgressLevel; + alphaProgressLevel = 128 - alphaProgressLevel; planeswap = PlaneIn1; PlaneIn1 = PlaneIn2; PlaneIn2 = planeswap; -- 2.11.0