• 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 » DM814x and AM387x Processors Forum » OMX_BUFFERHEADERTYPE's nFilledLen is twice as large as expected on display buffers
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

OMX_BUFFERHEADERTYPE's nFilledLen is twice as large as expected on display buffers

OMX_BUFFERHEADERTYPE's nFilledLen is twice as large as expected on display buffers

This question is answered
Jon S.
Posted by Jon S.
on Apr 04 2012 10:00 AM
Expert1120 points

Hi there,


I noticed that the nFilledLen field of OMX_BUFFERHEADERTYPE's are always twice as big as what's specified in OMX_[Use|Allocate]Buffer() calls, for the HDMI display buffers (or perhaps I should say the VFPC-DEI output buffers destined for the HDMI display).

For example, in the Capture Encode demo, running at 720p we have:

Frame width = 720

Frame Height = 1280

Frame Stride/Pitch = 2*720 = 1440

As done in the demo code, the HDMI display (422I) buffer size is then calculated as: 2 * 720 (frame stride) * 1280 (frame height)  = 1843200. (See pAppData's nBufferSize for the HDMI display buffers)

However, if you print the pBuffer[In|Out]->nFilledLen value out in IL_ClientProcessPipeCmdETB() or IL_ClientProcessPipeCmdFTB(), you'll see that we have a value twice as big as our allocated buffer (3686400).  I see that the buffer's nOffset field is 0, and the nAllocLen is what we specified in the Allocate/Use calls, plus a bit of what I assume is padding or metadata.

Could someone shed some light on this size discrepancy? I'm concerned that components might actually be clobbering neighboring memory.  Perhaps I'm missing something with respect to the video format?

For reference, the above observations have been made using the Capture-Encode demo included in the EZSDK 5.03.01.15 release.

Thank you,

Jon

DM8148 openmax
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 11 2012 07:51 AM
    Verified Answer
    Verified by Jon S.
    Expert6535 points

    Hi,

    It was an issue with dei component calculation of nFilledLen. It would not overwrite some other place though. We have rectified it already for next release. Thanks for pointing the same.

    Regards

    Vimal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jon S.
    Posted by Jon S.
    on Apr 12 2012 07:58 AM
    Expert1120 points

    Vimal,

    Thank you for verifying this and letting me know about the fix.

    Regards,

    Jon

    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