Part Number: TDA2P-ACD
Hi All,
We have a plug-in in which we want to accept multiple(4) consecutive frames sent from previous link i.e VPE for processing. ( VPE -> MultiProcess (DSP1) )
We have added the below for loop changes in our plugin to accept the consecutive frames in the process function:
for(frmCount = 0; frmCount < 3; frmCount++)
{
System_getLinksFullBuffers(pMultiProcessObj->inQueParams.prevLinkId,
pMultiProcessObj->inQueParams.prevLinkQueId,
&inputBufList);
if (inputBufList.numBuf)
{
pSysBufferInput = inputBufList.buffers[bufId];
if (pSysBufferInput->bufType != SYSTEM_BUFFER_TYPE_VIDEO_FRAME)
{
bufDropFlag = TRUE;
}
else
{
bufDropFlag = FALSE;
}
pInputBuffer = (System_VideoFrameBuffer *) pSysBufferInput->payload;
/* taking a copy of input frame into pre-defined system video frame buffer */
}
else
{
bufDropFlag = FALSE;
}
inputQId = 0;
inputBufListReturn.numBuf = 1;
inputBufListReturn.buffers[0] = pSysBufferInput;
AlgorithmLink_releaseInputBuffer(
pObj, inputQId, pMultiProcessObj->inQueParams.prevLinkId,
pMultiProcessObj->inQueParams.prevLinkQueId,
&inputBufListReturn, &bufDropFlag);
}
Vps_printf("After 3 frames !!!");
After this, in the process, the 4th frame is accepted. Then we want to process these frames but We are not getting any output. Below is the performance statistics for VPE and our plugin.
[IPU1-0] 20.021533 s: [ VPE ] Link Statistics,
[IPU1-0] 20.021594 s: ******************************
[IPU1-0] 20.021808 s:
[IPU1-0] 20.021869 s: Elapsed time = 13796 msec
[IPU1-0] 20.021930 s:
[IPU1-0] 20.021991 s: New data Recv = 30.0 fps
[IPU1-0] 20.022052 s: Get Full Buf Cb = 0.21 fps
[IPU1-0] 20.022143 s: Driver/Notify Cb = 120.3 fps
[IPU1-0] 20.022204 s:
[IPU1-0] 20.022235 s: Input Statistics,
[IPU1-0] 20.022296 s:
[IPU1-0] 20.022326 s: CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0] 20.022418 s: | FPS | FPS | FPS | FPS
[IPU1-0] 20.022479 s: --------------------------------------------------
[IPU1-0] 20.022570 s: 0 | 120. 3 0. 0 0. 0 0.28
[IPU1-0] 20.022692 s:
[IPU1-0] 20.022723 s: Output Statistics,
[IPU1-0] 20.022845 s:
[IPU1-0] 20.022875 s: CH | Out | Out | Out Drop | Out User Drop
[IPU1-0] 20.022967 s: | ID | FPS | FPS | FPS
[IPU1-0] 20.023028 s: ---------------------------------------------
[IPU1-0] 20.023119 s: 0 | 0 0.28 119.74 0. 0
[IPU1-0] 20.023211 s:
[IPU1-0] 20.023272 s: [ VPE ] LATENCY,
[IPU1-0] 20.023302 s: ********************
[IPU1-0] 20.023363 s: Local Link Latency : Avg = 960 us, Min = 915 us, Max = 1037 us,
[IPU1-0] 20.023485 s: Source to Link Latency : Avg = 7991 us, Min = 5643 us, Max = 10736 us,
[IPU1-0] 20.023607 s:
[IPU1-0] 20.023699 s:
[IPU1-0] 20.023760 s: ### CPU [IPU1-0], LinkID [ 1],
[IPU1-0] 20.023882 s:
[IPU1-0] 20.023912 s: [ IPC_OUT_1 ] Link Statistics,
[IPU1-0] 20.024004 s: ******************************
[IPU1-0] 20.024065 s:
[IPU1-0] 20.024095 s: Elapsed time = 13797 msec
[IPU1-0] 20.024156 s:
[IPU1-0] 20.024187 s: New data Recv = 0.21 fps
[IPU1-0] 20.024278 s: Release data Recv = 0.7 fps
[IPU1-0] 20.024339 s: Driver/Notify Cb = 33.77 fps
[IPU1-0] 20.024431 s:
[IPU1-0] 20.024461 s: Input Statistics,
[IPU1-0] 20.024522 s:
[IPU1-0] 20.024553 s: CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0] 20.024614 s: | FPS | FPS | FPS | FPS
[IPU1-0] 20.024705 s: --------------------------------------------------
[IPU1-0] 20.024827 s: 0 | 0.21 0. 0 0. 0 0.21
[IPU1-0] 20.024949 s:
[IPU1-0] 20.025010 s: Output Statistics,
[IPU1-0] 20.025041 s:
[IPU1-0] 20.025102 s: CH | Out | Out | Out Drop | Out User Drop
[IPU1-0] 20.025163 s: | ID | FPS | FPS | FPS
[IPU1-0] 20.025254 s: ---------------------------------------------
[IPU1-0] 20.025315 s: 0 | 0 0.21 0. 0 0. 0
[IPU1-0] 20.025437 s:
[IPU1-0] 20.025468 s: [ IPC_OUT_1 ] LATENCY,
[IPU1-0] 20.025529 s: ********************
[IPU1-0] 20.025590 s: Local Link Latency : Avg = 10 us, Min = 0 us, Max = 30 us,
[IPU1-0] 20.025712 s: Source to Link Latency : Avg = 7300 us, Min = 5856 us, Max = 8693 us,
[IPU1-0] 20.026047 s:
[IPU1-0] 20.525895 s:
[IPU1-0] 20.525956 s: ### CPU [ DSP1], LinkID [ 11],
[IPU1-0] 20.526047 s:
[IPU1-0] 20.526169 s: [ IPC_IN_1 ] Link Statistics,
[IPU1-0] 20.526230 s: ******************************
[IPU1-0] 20.526291 s:
[IPU1-0] 20.526352 s: Elapsed time = 14299 msec
[IPU1-0] 20.526413 s:
[IPU1-0] 20.526444 s: Get Full Buf Cb = 0.55 fps
[IPU1-0] 20.526535 s: Put Empty Buf Cb = 0.41 fps
[IPU1-0] 20.526596 s: Driver/Notify Cb = 33.49 fps
[IPU1-0] 20.526688 s:
[IPU1-0] 20.526718 s: Input Statistics,
[IPU1-0] 20.526993 s:
[IPU1-0] 20.527054 s: CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0] 20.527145 s: | FPS | FPS | FPS | FPS
[IPU1-0] 20.527206 s: --------------------------------------------------
[IPU1-0] 20.527298 s: 0 | 0.20 0. 0 0. 0 0.20
[IPU1-0] 20.527420 s:
[IPU1-0] 20.527450 s: Output Statistics,
[IPU1-0] 20.527511 s:
[IPU1-0] 20.527542 s: CH | Out | Out | Out Drop | Out User Drop
[IPU1-0] 20.527633 s: | ID | FPS | FPS | FPS
[IPU1-0] 20.527694 s: ---------------------------------------------
[IPU1-0] 20.527847 s: 0 | 0 0.20 0. 0 0. 0
[IPU1-0] 20.527969 s:
[IPU1-0] 20.527999 s: [ IPC_IN_1 ] LATENCY,
[IPU1-0] 20.528060 s: ********************
[IPU1-0] 20.528121 s: Local Link Latency : Avg = 10 us, Min = 0 us, Max = 30 us,
[IPU1-0] 20.528243 s: Source to Link Latency : Avg = 8560 us, Min = 5948 us, Max = 9882 us,
[IPU1-0] 20.528365 s:
[IPU1-0] 20.528457 s:
[IPU1-0] 20.528518 s: ### CPU [ DSP1], LinkID [ 49],
[IPU1-0] 20.528579 s:
[IPU1-0] 20.528609 s: [ ALG_MULTIPROCESS ] Link Statistics,
[IPU1-0] 20.528701 s: ******************************
[IPU1-0] 20.528762 s:
[IPU1-0] 20.528853 s: Elapsed time = 14462 msec
[IPU1-0] 20.528914 s:
[IPU1-0] 20.528975 s: New data Recv = 0.13 fps
[IPU1-0] 20.529036 s:
[IPU1-0] 20.529067 s: Input Statistics,
[IPU1-0] 20.529128 s:
[IPU1-0] 20.529158 s: CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0] 20.529250 s: | FPS | FPS | FPS | FPS
[IPU1-0] 20.529311 s: --------------------------------------------------
[IPU1-0] 20.529402 s:
[IPU1-0] 20.529433 s: Output Statistics,
[IPU1-0] 20.529494 s:
[IPU1-0] 20.529524 s: CH | Out | Out | Out Drop | Out User Drop
[IPU1-0] 20.529616 s: | ID | FPS | FPS | FPS
[IPU1-0] 20.529677 s: ---------------------------------------------
[IPU1-0] 20.529768 s:
[IPU1-0] 20.529860 s: [ ALG_MULTIPROCESS ] LATENCY,
[IPU1-0] 20.529921 s: ********************
[IPU1-0] 20.529982 s:
[IPU1-0] 20.530073 s:
[IPU1-0] 20.530134 s: ### CPU [ DSP1], LinkID [ 1],
[IPU1-0] 20.530195 s:
[IPU1-0] 20.530226 s: [ IPC_OUT_1 ] Link Statistics,
[IPU1-0] 20.530317 s: ******************************
[IPU1-0] 20.530378 s:
[IPU1-0] 20.530409 s: Elapsed time = 14463 msec
[IPU1-0] 20.530470 s:
[IPU1-0] 20.530500 s: Driver/Notify Cb = 33.11 fps
[IPU1-0] 20.530592 s:
[IPU1-0] 20.530622 s: Input Statistics,
[IPU1-0] 20.530683 s:
[IPU1-0] 20.530714 s: CH | In Recv | In Drop | In User Drop | In Process
[IPU1-0] 20.530836 s: | FPS | FPS | FPS | FPS
[IPU1-0] 20.530927 s: --------------------------------------------------
[IPU1-0] 20.531019 s:
[IPU1-0] 20.531049 s: Output Statistics,
[IPU1-0] 20.531080 s:
[IPU1-0] 20.531141 s: CH | Out | Out | Out Drop | Out User Drop
[IPU1-0] 20.531202 s: | ID | FPS | FPS | FPS
[IPU1-0] 20.531293 s: ---------------------------------------------
[IPU1-0] 20.531354 s:
Could you please let us know if we have correctly accepted the 4 frames ? And what could be the issue for no output to further links ?
Regards,
Amol