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/TDA3XEVM: change Capture channel order

Part Number: TDA3XEVM

Tool/software: TI-RTOS

Hi Expert,

I'm running PROCESSOR SDK VISION v03.04.00 rtos on tda3x custom board.

How do change the camera video order with IssCapture link(YUV, 4CH)?


example below:

CAM_IN1: front
CAM_IN2: left
CAM_IN3: right
CAM_IN4: rear

expect change below:

CAM_IN1: left
CAM_IN2: front
CAM_IN3: rear
CAM_IN4: right

Could you please provide some guide on these questions?
Thanks in advance.

  • Hi Zaku,

    Assuming that you cannot physically change the cameras, you will have to re-order the channel numbers of the captured frames.

    e.g.
    CAM_IN1: front : sent on Virtual channel 0
    CAM_IN2: left : sent on Virtual channel 1
    CAM_IN3: right : sent on Virtual channel 2
    CAM_IN4: rear : : sent on Virtual channel 3

    Reffering vision_sdk\apps\src\rtos\usecases\csi2_cal_sv_standalone\chains_csi2CalSVStandalone.c function csi2CalSVStandalone_SetCaptureParams ()
    line
    pOutPrm->inCsi2VirtualChanNum = idx;

    Required Changes
    CAM_IN1: left : sent on Virtual channel 1
    CAM_IN2: front : sent on Virtual channel 0
    CAM_IN3: rear : sent on Virtual channel 3
    CAM_IN4: right : sent on Virtual channel 2

    In the above referred usecase, update
    if (0 == idx)
    {
    pOutPrm->inCsi2VirtualChanNum = 1U;
    }
    else if (1 == idx )
    {
    pOutPrm->inCsi2VirtualChanNum = 0U;
    }
    else if (2 == idx)
    {
    pOutPrm->inCsi2VirtualChanNum = 3U;
    }
    else
    {
    pOutPrm->inCsi2VirtualChanNum = 2U;
    }

    Regards,
    Sujith