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.

RTOS/TDA2PXEVM: Dataformat mismatch in Alg_VpeSwMs plugin

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

Hi,

I'm working on TDA2PX EVM and VisionSDK 3.05 version. I'm giving 4 videos as input using network_rx, then I'm using VPE to convert datafromat to SYSTEM_DF_RGB24_888 and on display side I want Mosaic view of all 4 videos.I referred lvds_vip_multi_cam_view usecase and created a following use-case.

NetworkRx (A15) -> Decode -> VPE -> Dup -> Sync -> Alg_VpeSwMs -> Merge

Dup -> Merge

Merge -> Display_video

GrpxSrc -> Display_Grpx

In AlgorithmLink_VpeSwMsInitQueueInfo API of  Alg_VpeSwMsLink_algPlugin.c I added support for RGB format RGB support was not there.

if(pVpeSwMsObj->dataFormat==SYSTEM_DF_RGB24_888
    )
    {
        pVpeSwMsObj->outPitch[0] = maxWidth*3;
        pVpeSwMsObj->outPitch[1] = 0;
    }

But I get following assertions:

[IPU1-0]     26.971786 s: ** numLvdsCh = 4
[IPU1-0]     26.971847 s:
[IPU1-0] Display type : 9
[IPU1-0]     26.971908 s:
[IPU1-0] DisplayWidth and DisplayHeight : 640  480
[IPU1-0]     26.972000 s: Chains: Using TCP/IP
[IPU1-0]     26.972061 s:
[IPU1-0]  **** After SetSyncPrm displayWidth and DisplayHeight : 640 480
[IPU1-0]     26.972152 s: ***Number of channels are 4 ***
[IPU1-0]     26.972213 s:
[IPU1-0]  **** After SetAlgVpeSwMsPrm displayWidth and DisplayHeight : 640 480
[IPU1-0]     26.980509 s:  IPC_IN_0   : Create in progress !!!
[IPU1-0]     26.981577 s:  IPC_IN_0   : Create Done !!!
[IPU1-0]     26.981760 s:  DECODE: Create in progress ... !!!
[IPU1-0]     27.020679 s:  DECODE: Creating CH0 of 640 x 480 [1] [0],target bitrate = 10000 Kbps ...
[IPU1-0]     27.057189 s:  DECODE: Creating CH1 of 640 x 480 [1] [0],target bitrate = 10000 Kbps ...
[IPU1-0]     27.093790 s:  DECODE: Creating CH2 of 640 x 480 [1] [0],target bitrate = 10000 Kbps ...
[IPU1-0]     27.130543 s:  DECODE: Creating CH3 of 640 x 480 [1] [0],target bitrate = 10000 Kbps ...
[IPU1-0]     27.131367 s:  DECODE: All CH Create ... DONE !!!
[IPU1-0]     27.133380 s:  DECODE: Create ... DONE !!!
[IPU1-0]     27.133685 s:  VPE: Create in progress !!!
[IPU1-0]     27.403861 s:  VPE: Loading Down-scaling Co-effs
[IPU1-0]     27.404105 s:  VPE: Co-effs Loading ... DONE !!!
[IPU1-0]     27.404349 s:  VPE: Create Done !!!
[IPU1-0]     27.405813 s:  ALGORITHM: Create in progress (algId = 12) !!!
[IPU1-0]     27.620844 s: CH0: IN:640 x 480 (1920, 1920), OUT:320 x 240 (640, 640)
[IPU1-0]     27.621027 s: CH1: IN:640 x 480 (1920, 1920), OUT:320 x 240 (640, 640)
[IPU1-0]     27.621149 s: CH2: IN:640 x 480 (1920, 1920), OUT:320 x 240 (640, 640)
[IPU1-0]     27.621332 s: CH3: IN:640 x 480 (1920, 1920), OUT:320 x 240 (640, 640)
[IPU1-0]     27.622369 s: vpecore/src/vpscore_vpeCommon.c @ Line 408:
[IPU1-0]     27.622460 s: Data format (20) not supported!!
[IPU1-0]     27.622552 s: vpecore/src/vpscore_vpeApi.c @ Line 453:
[IPU1-0]     27.622613 s: Invalid Parameters!!
[IPU1-0]     27.622704 s: vpedrv/src/vpsdrv_m2mVpeCore.c @ Line 917:
[IPU1-0]     27.622765 s: Set params for VPE core failed!
[IPU1-0]     27.622857 s: vpecore/src/vpscore_vpeApi.c @ Line 642:
[IPU1-0]     27.622948 s: Set the parameter before getting the descriptor info!!
[IPU1-0]     27.623040 s: vpedrv/src/vpsdrv_m2mVpeCore.c @ Line 927:
[IPU1-0]     27.623101 s: Could not get context info for VPE core!
[IPU1-0]     27.623192 s: vpedrv/src/vpsdrv_m2mVpeCore.c @ Line 245:
[IPU1-0]     27.623314 s: Config of core 0 for channel 0 failed.
[IPU1-0]     27.623406 s: vpedrv/src/vpsdrv_m2mVpeApi.c @ Line 908:
[IPU1-0]     27.623467 s: Configuring of cores failed
[IPU1-0]     27.623528 s:  Assertion @ Line: 906 in vpeSwMs/vpeSwMsLink_algPlugin.c: retVal == SYSTEM_LINK_STATUS_SOK : failed !!!
[IPU1-0]     27.624046 s:  Assertion @ Line: 906 in vpeSwMs/vpeSwMsLink_algPlugin.c: retVal == SYSTEM_LINK_STATUS_SOK : failed !!!
[HOST  ]     26.980235 s:  NETWORK_RX: NETWORK_RX: Server listening (port=29171) !!!
[HOST  ]     26.980387 s:  IPC_OUT_0   : Create in progress !!!
[HOST  ]     26.980418 s:  IPC_OUT_0   : Create Done !!!

How do I add support for RGB format ? How should I proceed with this?

Regards,

Megha .