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.

DM388: Sw Mosaic configuration in Dm388 and Merger buffer arrangement

Part Number: DM388

Hi ,

I have two frames coming in to Sw mosaic is there any way to scale one of the  input by configuring sw mosaic parameters?

I have two inputs to Merger , How the two inputs are arranged as single output?

My sw mosaic is going to configure  2 layouts in this case, How the mosaic link knows which of the buffer from the combined buffer output of merger should go to win0 and which one to win1?

1------>

                   merger   ---------------------------------------------------------------------->  swmosaic(w0 and w1) -----------------------------------------------------------------------------------> display

                  (how they are arranged)                                                           (which one is linked with win0 and which one with win1)

2------->

thanks

Kailash

  • Hi Kailash,

    I hope you are using IPNC v3.8 or v3.9 as your software release, so answering them according to these release.

    I have two frames coming in to Sw mosaic is there any way to scale one of the  input by configuring sw mosaic parameters?

    Yes you can configure the window size for different stream by changing the SwMsLink_LayoutWinInfo of swMsLink.

    I have two inputs to Merger , How the two inputs are arranged as single output?

    Each Link (except sink links) have their output queue(one or many),each output queue contain channels(one or many) and each channels can contain different streams.

    Here the merge link has multiple input queue and single output queue, it will receive different stream from its different input queue and merge them all into a single output queue as different channels.

    For more infomation about this framework you can refer to this guide.

    For V3.8

    Collaterals/IPNC_RDK_McFW_UserGuide.pdf

    For V3.9

    Source/ipnc_rdk/collaterals/IPNC_RDK_McFW_UserGuide.pdf

    Regards,

    Anuj

    Pathpartner Technology Pvt Ltd.

  • Hi Anuj,

    Thanks for replying.

    I have one more question on SwMs ,I want to achieve scaling in SwMs ,Can it be achieved by setting SwMsLink_LayoutWinInfo -> bypass = TRUE. If so how is it going to take output height and width.?

    Thanks
    Kailash
  • Hi Kailash,

    You can achieve scaling by configuring the params of SwMsLink_LayoutWinInfo structure.
    Suppose you have 2 stream 1 1080p and other 720p and you want to display it on screen with same size then you can use.

    swMsPrm.layoutPrm.winInfo[0].channelNum = 0;
    swMsPrm.layoutPrm.winInfo[0].startX = 0;
    swMsPrm.layoutPrm.winInfo[0].startY = 0;
    swMsPrm.layoutPrm.winInfo[0].width = 1920;
    swMsPrm.layoutPrm.winInfo[0].height = 1080/2;
    swMsPrm.layoutPrm.winInfo[0].bypass = FALSE;
    swMsPrm.layoutPrm.winInfo[1].channelNum = 1;
    swMsPrm.layoutPrm.winInfo[1].startX = 0;
    swMsPrm.layoutPrm.winInfo[1].startY = 1080/2;
    swMsPrm.layoutPrm.winInfo[1].width = 1920;
    swMsPrm.layoutPrm.winInfo[1].height = 1080/2;
    swMsPrm.layoutPrm.winInfo[1].bypass = FALSE;

    Here i am dividing 2 stream of different size horizontally and displaying them with same size.
    Hope this will help.

    Regards,
    Anuj
  • Hi Anuj,

    In this example The win 0 will be scaled down to 1920 x 1080/2 and win 1 will scaled up to 1920 x 1080/2 . even if we are setting bypass as false.
    In the definition Ti had described "UInt32 bypass; /* TRUE/FALSE - Low Cost Scaling/DEI enable disable */" , So if we are making it false then how we will achieve scaling or this flag is doing something else.

    Thanks
    Kailash
  • Hi Kailash,

    If you check the implementation of swMLink inbelow path
    Source/ipnc_rdk/ipnc_mcfw/mcfw/src_bios6/links_m3vpss/swMs

    You will able to know the use of each params.

    This params basically bypass the odd lines of progressive frames but the quality will get affected. So the output height will be half.(It is called as low cost scaling).

    Depending on the Layout Params swMs Link generate the final output frame containing all the streams in its mention region.

    Regards,
    Anuj