Hi, I'm using SDK 5.03.01.15 to develop an application on the TI DM8148 (using the DM8148 EVM).
I've implemented a design where multiple OMX component share buffers from common set or pool.
The first component calls OMX_AllocateBuffers N times. Then all other component call OMX_UseBuffer with the allocated buffers.
This makes it possible to send the output of any component to the input of any other component.
Obviously as the number of component in the system increases, I need to make N larger.
In one example I have set my buffer pool to contain 8 buffers (N=8). I then attempt to create a Mosaic component (OMX.TI.VPSSM3.VSWMOSAIC) and allocate/use buffers on all its ports, but get the following error when attempting to allocate/use buffers on the output port (after allocating/using on all input ports)
OmxProxy.c:1297: omxproxy_use_buffer: Assertion `(currentBuffer < pComponentPrivate->maxNumBuffers)' failed.
Here is a more complete output of what I am doing:
mosaic.inputPort0 using buffers from MainBufferPool
OMX_AllocateBuffer 0x148ac0 (0x43cbc090) successful for port 0
OMX_AllocateBuffer 0x148b20 (0x44121290) successful for port 0
OMX_AllocateBuffer 0x148b80 (0x44586490) successful for port 0
OMX_AllocateBuffer 0x148be0 (0x449eb690) successful for port 0
OMX_AllocateBuffer 0x148c40 (0x44e50890) successful for port 0
OMX_AllocateBuffer 0x148ca0 (0x452b5a90) successful for port 0
OMX_AllocateBuffer 0x148d00 (0x4571ac90) successful for port 0
OMX_AllocateBuffer 0x148d60 (0x45b7fe90) successful for port 0
mosaic.inputPort1 using buffers from MainBufferPool
OMX_UseBuffer 0x148e08 (0x43cbc090) successful for port 1
...
OMX_UseBuffer 0x1490a8 (0x45b7fe90) successful for port 1
mosaic.inputPort2 using buffers from MainBufferPool
OMX_UseBuffer 0x149150 (0x43cbc090) successful for port 2
...
OMX_UseBuffer 0x1493f0 (0x45b7fe90) successful for port 2
mosaic.inputPort3 using buffers from MainBufferPool
OMX_UseBuffer 0x149498 (0x43cbc090) successful for port 3
...
OMX_UseBuffer 0x149738 (0x45b7fe90) successful for port 3
mosaic.outputPort0 using buffers from MainBufferPool
OmxProxy.c:1297: omxproxy_use_buffer: Assertion `(currentBuffer < pComponentPrivate->maxNumBuffers)' failed.
I looked into maxNumBuffers and found that this parameter is ultimately set in the DomxCore_componentCoreInfoTblEntries table in domx_cfg.c.
For the mosaic component, the value used is DOMX_CORE_COMPINFOTBL_MAXNUMBUFFS_GENERIC which is 32. Can I simply change that #define to be much larger (e.g. 400)?
Are there other implication to doing so? Because I'm not sure I fully understand all the logic behind that parameter.
Bernard