TI E2E Community
Digital Signal Processors (DSP)
DaVinci™ Video Processors
DM816x, C6A816x and AM389x Processors Forum
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 MainBufferPoolOMX_AllocateBuffer 0x148ac0 (0x43cbc090) successful for port 0OMX_AllocateBuffer 0x148b20 (0x44121290) successful for port 0OMX_AllocateBuffer 0x148b80 (0x44586490) successful for port 0OMX_AllocateBuffer 0x148be0 (0x449eb690) successful for port 0OMX_AllocateBuffer 0x148c40 (0x44e50890) successful for port 0OMX_AllocateBuffer 0x148ca0 (0x452b5a90) successful for port 0OMX_AllocateBuffer 0x148d00 (0x4571ac90) successful for port 0OMX_AllocateBuffer 0x148d60 (0x45b7fe90) successful for port 0mosaic.inputPort1 using buffers from MainBufferPoolOMX_UseBuffer 0x148e08 (0x43cbc090) successful for port 1...OMX_UseBuffer 0x1490a8 (0x45b7fe90) successful for port 1mosaic.inputPort2 using buffers from MainBufferPoolOMX_UseBuffer 0x149150 (0x43cbc090) successful for port 2...OMX_UseBuffer 0x1493f0 (0x45b7fe90) successful for port 2mosaic.inputPort3 using buffers from MainBufferPoolOMX_UseBuffer 0x149498 (0x43cbc090) successful for port 3...OMX_UseBuffer 0x149738 (0x45b7fe90) successful for port 3mosaic.outputPort0 using buffers from MainBufferPoolOmxProxy.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.
You could change that number to suit your requirement. It was meant for checking the # of buffers for allocation and during free only.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.