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.

Compiler/TDA2EVM5777: How to set YUV422SP dataformat

Part Number: TDA2EVM5777

Tool/software: TI C/C++ Compiler

Hi,

I am working on tda2x EVM board and i am using vision sdk 3.0 version. I want output data format as SYSTEM_DF_YUV422SP_UV.

I am referring  frame copy usecase as a example, To set output data format i made following changes,

- Set output data format as SYSTEM_DF_YUV422SP_UV in  ChainsCommon_SingleCam_SetCapturePrms() function (which is present at vision_sdk/apps/src/rtos/usecases/common/chains_common_vision.c) 

- In frameCopyLink_algPlugin.c file , added condition regarding SYSTEM_DF_YUV422SP_UV data format such that it will not return error status.

With this changes i was getting below run time error, 

[IPU1-0] 11.772006 s: CAPTURE: Create in progress !!!

[IPU1-0] 11.772250 s: CAPTURE: VIP1 Slice0 PortA capture mode is [ 8-bit] !!!

[IPU1-0] 11.825962 s: CAPTURE: Create Done !!!

[IPU1-0] 11.826297 s: IPC_OUT_0 : Create in progress !!!

[IPU1-0] 11.826663 s: IPC_OUT_0 : Create Done !!!

[IPU1-0] 11.830262 s: IPC_IN_0 : Create in progress !!!

[IPU1-0] 11.831330 s: IPC_IN_0 : Create Done !!!

[IPU1-0] 11.831696 s: DISPLAY: Create in progress !!!

[IPU1-0] 11.832031 s: hal/src/vpshal_dssDispcVid.c @ Line 982:

[IPU1-0] 11.832092 s: Invalid Data format

[IPU1-0] 11.832245 s: dispdrv/src/vpsdrv_displayCore.c @ Line 298:

[IPU1-0] 11.832306 s: Set DSS parameter failed

[IPU1-0] 11.832367 s: Assertion @ Line: 399 in displayLink_drv.c: status==SYSTEM_LINK_STATUS_SOK : failed !!!

[IPU1-0] 11.832885 s: Assertion @ Line: 399 in displayLink_drv.c: status==SYSTEM_LINK_STATUS_SOK : failed !!!

[HOST ] 11.826846 s: IPC_IN_0 : Create in progress !!! [HOST ] 11.827151 s: IPC_IN_0 : Create Done !!!

[HOST ] 11.827273 s: ALGORITHM: Create in progress (algId = 0) !!!

[HOST ] 11.830079 s: ALGORITHM: Create Done (algId = 0) !!!

[HOST ] 11.830171 s: IPC_OUT_0 : Create in progress !!!

[HOST ] 11.830201 s: IPC_OUT_0 : Create Done !!!

[HOST ] 12.728756 s: NETWORK_CTRL: Starting Server (port=5000) !!! [HOST ] 12.728786 s: NETWORK_CTRL: Starting Server ... DONE (port=5000) !!!

Second approach: 

In CaptureLink_OutParams  structure(vision_sdk/links_fw/include/link_api/captureLink.h) , it is mention that

"If SYSTEM_DF_YUV422SP_UV is used as output format, it must be the first output format (output format at the index 0 in outStreamInfo in

#CaptureLink_VipInstParams)."

I set SYSTEM_DF_YUV422SP_UV and FVID2_DF_YUV422SP_UV as first element in System_VideoDataFormat and Fvid2_DataFormat  enum respectively.

With this changes, i was getting same run time error as it mention in above log.

Thanks & Regards,

Kripal