summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajneesh Chowdury <rajneeshc@google.com>2011-09-22 10:51:02 -0700
committerRajneesh Chowdury <rajneeshc@google.com>2011-09-22 10:51:02 -0700
commit79c9d7c2b76fb995dbcc0502699009c8667ef1d9 (patch)
treee3445678b82967c33e62202dadd9db6d57e76f7b
parent85026dc3996259c20277ba473c074de82335b9c5 (diff)
downloadlibvideoeditor-79c9d7c2b76fb995dbcc0502699009c8667ef1d9.tar.gz
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
-rwxr-xr-xvss/src/M4xVSS_internal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vss/src/M4xVSS_internal.c b/vss/src/M4xVSS_internal.c
index a322caa..5844115 100755
--- a/vss/src/M4xVSS_internal.c
+++ b/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;