Part Number: TDA2EXEVM
Hello,
I am trying to create a use case that can calculate the integral image of some frame using the BAM framework but i have some
implementation problems. I have code than can work with 3 nodes (source->compute->sink), the compute node has only one input and one output.
I want to alter the code and add a second input buffer to the compute node which will store the results of the integral image so that they can be used with
overlapping to correctly calculate the integral image for the whole image.
The changes i have made to add the second input buffer are :
1)Change the BAM_EdgeParams EDGELIST .
2)Change the defines to support a second block (2 input blocks 2 internal blocks).
3)Initialize internalBlock[BLOCK2_PARAMS_IDX] parameters. (i am not sure what the internalBlock[BLOCK2_PARAMS_IDX].size should be for this block)
for the other block i get it automatically from 2 * vcop_<....>_count().
4)In VisionSdk level i have changed pAlgHandle parameters to support a second buffer (for my use case's structure).
i get an assert error in the function AlgIvision_create which returns NULL.
if i revert the input blocks to 1 and internal blocks to 1 i don't get this error. But my usecase stucks
with the last 2 messages being :
[EVE1 ] 18.266516 s: SYSTEM: Heap = LOCAL_L2 @ 0x40020000, Total size = 24576 B (24 KB), Free size = 22244 B (21 KB)
[EVE1 ] 18.267065 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 235080 B (229 KB)
if i revert the numBufs for ivision to 1 then i get no error at all and the algorithm works (but i need to have 2 buffers so it doesn't do what i want)
Can you explain me how to add a second input buffer to my compute node and avoid this errors?
BR,
Theodore