• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM816x, C6A816x and AM389x Processors Forum » OpenMax maxNumBuffers
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

OpenMax maxNumBuffers

OpenMax maxNumBuffers

This question is not answered
Bernard Vachon
Posted by Bernard Vachon
on Mar 28 2012 18:33 PM
Intellectual425 points

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

openmax dm8148 omx EzSDK 5.03
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Vimal Jain
    Posted by Vimal Jain
    on Apr 18 2012 06:11 AM
    Expert6535 points

    Bernard,

    You could change that number to suit your requirement. It was meant for checking the # of buffers for allocation and during free only.

    Regards

    Vimal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

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.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use