Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 738a6626 authored by Rajneesh Chowdury's avatar Rajneesh Chowdury
Browse files

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
parent 6bf2671a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;