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: Adding Changes in captureIss application for adding a decoder for Surround View

Part Number: TDA2PXEVM


Tool/software: TI-RTOS

Hi

I am currently using Vision SDK 3.05 . I have ported the Vision SDK 3.06 changes for capturing with CSI2_PHY2 on VSDK 3.05.I am working on captureIss PDK Demo application. I have added the decoder in capture options as shown below:

{"ISL79987 on 2 Lanes capture on PHY 1",
0U, TRUE,
FVID2_VIFM_SCH_CSI2,
FVID2_VIFW_2LANES, 4U, 0U, VPS_ISS_CAL_CSI2_YUV422_8B, FVID2_BPP_BITS16,
CAPT_APP_RUN_COUNT, 640U, 480U, (640U * 2U),
FVID2_VID_DECODER_ISL79987_DRV,
FVID2_STD_1080P_30, FVID2_DF_YUV422I_UYVY, FVID2_BPP_BITS16,
BSP_BOARD_MODE_DEFAULT, CAPT_APP_PHY_1},

4 CVBS cameras are used to  capture and  its output is decoded by the ISL79987 decoder and it sends the YUV422 data onto the 2 lanes of CSI2_PHY2.

Will the number of streams will be 4 as highlighted above.

I have two queries.

1) I am actually stuck at a function appCaptSetDrvCfg(). In this function each stream is assigned a csi2VirtualChannelNo. 

Is the number of streams is related to virtualChannel.

2) I have a query  regarding adding submodules of CAL inside the function appCaptDeriveCfg(). As seen from the code that sensors in the Surround view systems have been allocated 4 sub modules as shown below

if ((FVID2_VID_SENSOR_TIDA00262_APT_AR0140_DRV == pCfg->sensorDrvId) ||
(FVID2_VID_SENSOR_MULDES_OV1063X_DRV == pCfg->sensorDrvId) ||
(FVID2_VID_SENSOR_IMI_OV10640_DRV == pCfg->sensorDrvId))
{
appObj->issOpenPrms.subModules[1U] =
(
VPS_ISS_CAPT_CAL_SUB_PPI_ID_0 |
VPS_ISS_CAPT_CAL_SUB_CSI2_ID |
VPS_ISS_CAPT_CAL_SUB_CPORT_ID |
VPS_ISS_CAPT_CAL_SUB_DMA_WR_ID |
VPS_ISS_CAPT_CAL_SUB_PIX_EXTRACT_ID |
VPS_ISS_CAPT_CAL_SUB_DPCM_DEC_ID |
VPS_ISS_CAPT_CAL_SUB_DPCM_ENC_ID |
VPS_ISS_CAPT_CAL_SUB_PIX_PACK_ID);


appObj->issOpenPrms.subModules[2U] =
(
VPS_ISS_CAPT_CAL_SUB_PPI_ID_0 |
VPS_ISS_CAPT_CAL_SUB_CSI2_ID |
VPS_ISS_CAPT_CAL_SUB_CPORT_ID |
VPS_ISS_CAPT_CAL_SUB_DMA_WR_ID |
VPS_ISS_CAPT_CAL_SUB_PIX_EXTRACT_ID |
VPS_ISS_CAPT_CAL_SUB_DPCM_DEC_ID |
VPS_ISS_CAPT_CAL_SUB_DPCM_ENC_ID |
VPS_ISS_CAPT_CAL_SUB_PIX_PACK_ID);


appObj->issOpenPrms.subModules[3U] =
(
VPS_ISS_CAPT_CAL_SUB_PPI_ID_0 |
VPS_ISS_CAPT_CAL_SUB_CSI2_ID |
VPS_ISS_CAPT_CAL_SUB_CPORT_ID |
VPS_ISS_CAPT_CAL_SUB_DMA_WR_ID |
VPS_ISS_CAPT_CAL_SUB_PIX_EXTRACT_ID |
VPS_ISS_CAPT_CAL_SUB_DPCM_DEC_ID |
VPS_ISS_CAPT_CAL_SUB_DPCM_ENC_ID |
VPS_ISS_CAPT_CAL_SUB_PIX_PACK_ID);
}

Do I need to  do the same for the decoder?

Currently I do not have the decoder EVM to test. I am preparing the code for the same.

Regards,

Deepika

  • Hi Deepika,

    Please find answers to your questions below.

    1, yes, number of virtual channels is actually related to number of streams.. or the other way, the number of camera.
    2, Yes, you will require add some thing similar to what is being used for OV10640, except PPI_ID, all other module should be used. I think you are connected your camera to PHY_2, so this requires change.

    Rgds,
    Brijesh
  • Hi Brijesh,

    Thanks for the reply. Regarding PPI_ID i will make it to 1 as it is connected to PHY2.

    Will come back to you for further queries.

    Thanks a lot for your help.

    Deepika