This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: VID1(plane) and BackGround Alpha Blending.

Part Number: AM5728

Tool/software: Linux

Hello.

I am using AM5728 PSDK.

We are trying to "Alpha Blending" VID1(plane) and BackGround using CRTC Set_property.
Currently we are using all planes, so we do not raise another plane on VID1.

We want "Alpha Blending"
1. VID1(plane) is set as Src and BackGround is set as Dest.
: Dest Alpha Blending.

2. Set BackGround as Src and VID1(plane) as Dest.
: Src Alpha Blending.

Is alpha blending possible in this case?

  • We found that Backgroud uses only RGB color (0xFFFFFF).

    Is it possible to update Alpha values ​​in Backgroud?
    I hope that when Alpha of Backgroud is used as plane, it will make good use.
    This is a very important matter for us.
  • Typically, blending happens between top and bottom plane using alpha value of the top plane and typically background color is used as bottom layer. This is why alpha value is available for the top video and graphics layer. 

    Why do you want to set alpha for the back ground color?

    Rgds,

    Brijesh

  • Hello, This question is related to the thread below.

    e2e.ti.com/.../603338
    -------------------------------------------------------------------------------------
    We will try to give an effect to Video now.
    (By combining ARGB, changing video color (sepia effect)
    This is similar to alpha blending.
    (Src plane + Dist plane = Output)

    Currently, we are using all pipeline.

    LCD 1: VID 1 is the subtitle, VID 2 is the video.
    LCD 2: VID 3 is an image.
    LCD 3: GFX is WB of LCD 1 (VID 1 + VID 2)

    We have created the whole H / W resource almost at Full.
    I tried to convert alpha blend to Video on VID 2 using GPU, but the speed slows down.

    So the method I thought was synthesis using BackGround.
    However, BackGround could not be specified with Src, it is impossible to change the order of BackGround and Plane.
    Also, BackGround was able to use only RGB color.

    Are there other solutions that can solve this problem now?
    --------------------------------------------------------------------------------------
    For this reason, we expect to use Backgroud as a Plane to solve the problem.

    Thank you.
  • Hi,

    I am sorry, i could not understand. 

    Could you please check if this is correct?

    1, Vid1 and vid2 are blended on LCD1 and the output of this blending is written back to memory using WB path

    2, LCD2 displays another image

    3, LCD3 uses GFX path to display WB of LCD1.

    so what is your question here? Do you want to blend GFX of LCD3 with background color?  Typically blending is done in RGB format only. Do you want to do it in YUV format? 

    Regards,

    Brijesh