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.

TDA2SX: drop and change numCh

Part Number: TDA2SX

Hi Expert,

I'm running TI-RTOS Vision SDK v03.05 on TDA2sx.

chains: Capture -> ... -> Alg_FrameCopy (DSP1) -> Sync -> ...

Capture is 4 channels.
The numChannelsUsed of Alg_FrameCopy was changed from 1 to 4.

In Alg_FrameCopy link, 4 channels will be dropped by 2 channels, so Output CH = 2

In Sync link, pObj->numCh is still 4, the result is Input CH: 2, Output CH: 0

How do I make Sync receive the numCh of Alg_FrameCopy as 2?

Could you please give some suggestion here?

Thanks in advance.

  • Hi,

    Can you elaborate on what you are trying to achieve?

    You want to run the use-case with 2 channel or 4 channel?

    Please share the logs with statistics.

    Thanks

    Gaviraju

  • Hi Expert,

    You want to run the use-case with 2 channel or 4 channel?

    Capture is 4 channels.


    The logs with statistics:

    [IPU1-0] 29.245409 s: ### CPU [ DSP1], LinkID [ 12],
    [IPU1-0] 29.245501 s:
    [IPU1-0] 29.245531 s: [ IPC_IN_2 ] Link Statistics,
    [IPU1-0] 29.245592 s: ******************************
    [IPU1-0] 29.245653 s:
    [IPU1-0] 29.245684 s: Elapsed time = 834 msec
    [IPU1-0] 29.245745 s:
    [IPU1-0] 29.245775 s: Get Full Buf Cb = 25.17 fps
    [IPU1-0] 29.245867 s: Put Empty Buf Cb = 28.77 fps
    [IPU1-0] 29.245928 s: Driver/Notify Cb = 61.15 fps
    [IPU1-0] 29.246019 s:
    [IPU1-0] 29.246080 s: Input Statistics,
    [IPU1-0] 29.246141 s:
    [IPU1-0] 29.246172 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 29.246233 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 29.246324 s: --------------------------------------------------
    [IPU1-0] 29.246385 s: 0 | 7.19 0. 0 0. 0 7.19
    [IPU1-0] 29.246507 s: 1 | 7.19 0. 0 0. 0 7.19
    [IPU1-0] 29.246660 s: 2 | 7.19 0. 0 0. 0 7.19
    [IPU1-0] 29.246782 s: 3 | 7.19 0. 0 0. 0 7.19
    [IPU1-0] 29.246904 s:
    [IPU1-0] 29.246934 s: Output Statistics,
    [IPU1-0] 29.246995 s:
    [IPU1-0] 29.247026 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 29.247117 s: | ID | FPS | FPS | FPS
    [IPU1-0] 29.247178 s: ---------------------------------------------
    [IPU1-0] 29.247270 s: 0 | 0 7.19 0. 0 0. 0
    [IPU1-0] 29.247392 s: 1 | 0 7.19 0. 0 0. 0
    [IPU1-0] 29.247483 s: 2 | 0 7.19 0. 0 0. 0
    [IPU1-0] 29.247605 s: 3 | 0 7.19 0. 0 0. 0
    [IPU1-0] 29.247727 s:
    [IPU1-0] 29.247758 s: [ IPC_IN_2 ] LATENCY,
    [IPU1-0] 29.247819 s: ********************
    [IPU1-0] 29.247880 s: Local Link Latency : Avg = 12 us, Min = 0 us, Max = 31 us,
    [IPU1-0] 29.247971 s: Source to Link Latency : Avg = 231155 us, Min = 366 us, Max = 692735 us,
    [IPU1-0] 29.248093 s:
    [IPU1-0] 29.248215 s:
    [IPU1-0] 29.248276 s: ### CPU [ DSP1], LinkID [ 50],
    [IPU1-0] 29.248337 s:
    [IPU1-0] 29.248368 s: [ ALG_FRAME_COPY ] Link Statistics,
    [IPU1-0] 29.248429 s: ******************************
    [IPU1-0] 29.248490 s:
    [IPU1-0] 29.248551 s: Elapsed time = 837 msec
    [IPU1-0] 29.248612 s:
    [IPU1-0] 29.248642 s: In Buf Error Count = 12 frames
    [IPU1-0] 29.248703 s: Out Buf Error Count = 6 frames
    [IPU1-0] 29.248764 s: New data Recv = 25.8 fps
    [IPU1-0] 29.248856 s:
    [IPU1-0] 29.248886 s: Input Statistics,
    [IPU1-0] 29.248917 s:
    [IPU1-0] 29.248978 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 29.249039 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 29.249130 s: --------------------------------------------------
    [IPU1-0] 29.249222 s: 0 | 7.16 3.58 0. 0 3.58
    [IPU1-0] 29.249344 s: 1 | 7.16 3.58 0. 0 3.58
    [IPU1-0] 29.249466 s: 2 | 7.16 0. 0 0. 0 0. 0
    [IPU1-0] 29.249588 s: 3 | 7.16 0. 0 0. 0 0. 0
    [IPU1-0] 29.249710 s:
    [IPU1-0] 29.249771 s: Output Statistics,
    [IPU1-0] 29.249801 s:
    [IPU1-0] 29.249862 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 29.249923 s: | ID | FPS | FPS | FPS
    [IPU1-0] 29.249984 s: ---------------------------------------------
    [IPU1-0] 29.250259 s: 0 | 0 3.58 3.58 0. 0
    [IPU1-0] 29.250381 s: 1 | 0 3.58 3.58 0. 0
    [IPU1-0] 29.250503 s:
    [IPU1-0] 29.250533 s: [ ALG_FRAME_COPY ] LATENCY,
    [IPU1-0] 29.250594 s: ********************
    [IPU1-0] 29.250655 s: Local Link Latency : Avg = 20654 us, Min = 1495 us, Max = 50388 us,
    [IPU1-0] 29.250777 s: Source to Link Latency : Avg = 39961 us, Min = 13939 us, Max = 61338 us,
    [IPU1-0] 29.250899 s:
    [IPU1-0] 29.250991 s:
    [IPU1-0] 29.251021 s: ### CPU [ DSP1], LinkID [ 1],
    [IPU1-0] 29.251448 s:
    [IPU1-0] 29.251509 s: [ IPC_OUT_1 ] Link Statistics,
    [IPU1-0] 29.251570 s: ******************************
    [IPU1-0] 29.251631 s:
    [IPU1-0] 29.251662 s: Elapsed time = 702 msec
    [IPU1-0] 29.251723 s:
    [IPU1-0] 29.251753 s: New data Recv = 5.69 fps
    [IPU1-0] 29.251845 s: Driver/Notify Cb = 32.76 fps
    [IPU1-0] 29.251906 s:
    [IPU1-0] 29.251936 s: Input Statistics,
    [IPU1-0] 29.251997 s:
    [IPU1-0] 29.252028 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 29.252150 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 29.252241 s: --------------------------------------------------
    [IPU1-0] 29.252302 s: 0 | 4.27 0. 0 0. 0 4.27
    [IPU1-0] 29.252424 s: 1 | 4.27 0. 0 0. 0 4.27
    [IPU1-0] 29.252546 s:
    [IPU1-0] 29.252607 s: Output Statistics,
    [IPU1-0] 29.252638 s:
    [IPU1-0] 29.252699 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 29.252760 s: | ID | FPS | FPS | FPS
    [IPU1-0] 29.252821 s: ---------------------------------------------
    [IPU1-0] 29.252912 s: 0 | 0 4.27 0. 0 0. 0
    [IPU1-0] 29.253004 s: 1 | 0 4.27 0. 0 0. 0
    [IPU1-0] 29.253156 s:
    [IPU1-0] 29.253187 s: [ IPC_OUT_1 ] LATENCY,
    [IPU1-0] 29.253248 s: ********************
    [IPU1-0] 29.253309 s: Local Link Latency : Avg = 0 us, Min = 0 us, Max = 0 us,
    [IPU1-0] 29.253400 s: Source to Link Latency : Avg = 47480 us, Min = 14000 us, Max = 81316 us,
    [IPU1-0] 29.753187 s:
    [IPU1-0] 29.753278 s: ### CPU [IPU1-0], LinkID [ 12],
    [IPU1-0] 29.753370 s:
    [IPU1-0] 29.753400 s: [ IPC_IN_2 ] Link Statistics,
    [IPU1-0] 29.753492 s: ******************************
    [IPU1-0] 29.753553 s:
    [IPU1-0] 29.753583 s: Elapsed time = 270 msec
    [IPU1-0] 29.753644 s:
    [IPU1-0] 29.753705 s: Get Full Buf Cb = 44.44 fps
    [IPU1-0] 29.753766 s: Driver/Notify Cb = 44.44 fps
    [IPU1-0] 29.753858 s:
    [IPU1-0] 29.753888 s: Input Statistics,
    [IPU1-0] 29.753949 s:
    [IPU1-0] 29.753980 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 29.754102 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 29.754224 s: --------------------------------------------------
    [IPU1-0] 29.754285 s: 0 | 11.11 0. 0 0. 0 11.11
    [IPU1-0] 29.754437 s: 1 | 11.11 0. 0 0. 0 11.11
    [IPU1-0] 29.754559 s:
    [IPU1-0] 29.754620 s: Output Statistics,
    [IPU1-0] 29.754681 s:
    [IPU1-0] 29.754956 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 29.755108 s: | ID | FPS | FPS | FPS
    [IPU1-0] 29.755200 s: ---------------------------------------------
    [IPU1-0] 29.755291 s: 0 | 0 11.11 0. 0 0. 0
    [IPU1-0] 29.755413 s: 1 | 0 11.11 0. 0 0. 0
    [IPU1-0] 29.755535 s:
    [IPU1-0] 29.755566 s: [ IPC_IN_2 ] LATENCY,
    [IPU1-0] 29.755627 s: ********************
    [IPU1-0] 29.755688 s: Local Link Latency : Avg = 30 us, Min = 0 us, Max = 61 us,
    [IPU1-0] 29.755810 s: Source to Link Latency : Avg = 47866 us, Min = 14335 us, Max = 81437 us,
    [IPU1-0] 29.755932 s:
    [IPU1-0] 29.756328 s:
    [IPU1-0] 29.756389 s: ### CPU [IPU1-0], LinkID [ 35],
    [IPU1-0] 29.756450 s:
    [IPU1-0] 29.756511 s: [ SYNC_1 ] Link Statistics,
    [IPU1-0] 29.756572 s: ******************************
    [IPU1-0] 29.756633 s:
    [IPU1-0] 29.756664 s: Elapsed time = 1000 msec
    [IPU1-0] 29.756755 s:
    [IPU1-0] 29.756786 s: New data Recv = 35.0 fps
    [IPU1-0] 29.756877 s: Driver/Notify Cb = 30.0 fps
    [IPU1-0] 29.756938 s:
    [IPU1-0] 29.756969 s: Input Statistics,
    [IPU1-0] 29.757030 s:
    [IPU1-0] 29.757121 s: CH | In Recv | In Drop | In User Drop | In Process
    [IPU1-0] 29.757243 s: | FPS | FPS | FPS | FPS
    [IPU1-0] 29.757335 s: --------------------------------------------------
    [IPU1-0] 29.757426 s: 0 | 3. 0 3. 0 0. 0 0. 0
    [IPU1-0] 29.757640 s: 1 | 3. 0 3. 0 0. 0 0. 0
    [IPU1-0] 29.757762 s:
    [IPU1-0] 29.757792 s: Output Statistics,
    [IPU1-0] 29.757853 s:
    [IPU1-0] 29.757884 s: CH | Out | Out | Out Drop | Out User Drop
    [IPU1-0] 29.757975 s: | ID | FPS | FPS | FPS
    [IPU1-0] 29.758036 s: ---------------------------------------------
    [IPU1-0] 29.758158 s:
    [IPU1-0] 29.758219 s: [ SYNC_1 ] LATENCY,
    [IPU1-0] 29.758280 s: ********************


    How do I make Sync receive the numCh of Alg_FrameCopy as 2?

    Could you please give some suggestion here?

    Thanks in advance.

  • Hi,

      

    The above image is an example of how the sync link is getting channel info from the previous link.

    Alg_FrameCopy link also will do the same to get channel info from the previous link.

    The previous link of Alg_framecopy is Capture link & we are setting the number of capture channel = 4 in use-case. so the same channel info is passing to all links at create time it self.

    So inorder to process 2 channel at sync link, you should set the number of capture channel = 2 in the use-case.

    If you are seeing frame drop in the Alg_FrameCopy link then we have to root cause the issue.

    Thanks

    Gaviraju

  • Hi Expert,

    Although the capture is 4CH,
    But in the end only 2CH are needed,
    So in Alg_FrameCopy, the other two will be dropped deliberately.

    Is it feasible to make Sync receive the numCh of Alg_FrameCopy as 2?

    Thanks in advance.

  • Hi,

    Please create the use-case as below.

    chains: Capture -> ... Select -> Alg_FrameCopy (DSP1) -> Sync -> ...

    Using the Select link, you can select the required number of output channels to process further.

    Thanks

    Gaviraju