Part Number: tda2x
hi,
I am reading the tidlLink_algPlugin.c file in D:\PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\apps\src\rtos\alg_plugins\tidl directory, in this file there are two functions confusing me,
static Int32 tidlIsInDataBuff(
sTIDL_Network_t *pTIDLNetStructure,
Int32 dataId,
Int32 layersGroupId)
{
Int32 i, j;
for(i = 0 ; i < pTIDLNetStructure->numLayers; i++)
{
for(j = 0; j < pTIDLNetStructure->TIDLLayers[i].numInBufs; j++)
{
if((pTIDLNetStructure->TIDLLayers[i].layersGroupId == layersGroupId) &&
(pTIDLNetStructure->TIDLLayers[i].inData[j].dataId == dataId))
{
return 1;
}
}
}
return 0;
}
static Int32 tidlIsOutDataBuff(
sTIDL_Network_t *pTIDLNetStructure,
Int32 dataId,
Int32 layersGroupId)
{
Int32 i,j;
for(i = 0 ; i < pTIDLNetStructure->numLayers; i++)
{
for(j = 0; j < pTIDLNetStructure->TIDLLayers[i].numInBufs; j++)
{
if((pTIDLNetStructure->TIDLLayers[i].layersGroupId != layersGroupId) &&
(pTIDLNetStructure->TIDLLayers[i].inData[j].dataId == dataId))
{
return 1;
}
}
}
return 0;
}
In those two funcions I don't kwnow the roles TIDLLayers[i].layersGroupId and layersGroupId played in finding
the input and output buffers, and in tidlIsOutDataBuff() function why TIDLLayers[i].inData[j].dataId is used
instead of TIDLLayers[i].outData[j].dataId ?
Could you explain it in detail?
Thanks