• 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 » Embedded Software » Multimedia Software Codecs » Multimedia Software Codecs forum » how to get extended error codes of h264 decoder when using dmai?
Share
Multimedia Software Codecs
  • Forum
Options
  • Subscribe via RSS

Forums

how to get extended error codes of h264 decoder when using dmai?

This question is answered
MW51194
Posted by MW51194
on Mar 07 2012 05:52 AM
Intellectual855 points

Hello,

I need the extended error codes of the H264 decoder 2.00.00.13. In my application, I use the Vdec2_process() call to decode encoded buffers. But I can't evaluate the extended errors, which are displayed when I call the application with DMAI_DEBUG=2. After the process call, I use Vdec2_getVisaHandle() and then VIDDEC2_control() with XDM_GETSTATUS but the output of the VIDDEC2_Status.extendedError structure is always 0 and not the value which is printed with DMAI_DEBUG=2.

Regards,

Matthias

H264 Decoder DM365 DMAI
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Veeranna Hanchinal
    Posted by Veeranna Hanchinal
    on Mar 07 2012 06:43 AM
    Expert5265 points

    Hi,

    Hope you are refering to  DM36x H264 decoder. extended Error with DMAI debug and extended error with GETSTATUS control call should be same. Same extended parameter ie getting populated in both cases. Is VIDDEC2_control() is returning success?

    Please check parameter passing to control call.

    Thanks,

    Veeranna

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MW51194
    Posted by MW51194
    on Mar 07 2012 07:11 AM
    Intellectual855 points

    Hi,

    yes it is the DM36x H264 decoder. It seems that VIDDEC2_control() returns -1. My source code is:

    VIDDEC2_Status    statViddec2;

    Int32                           retControl;

    VIDDEC2_Handle   hViddec2 = NULL;

    ...........................................

    ret = Vdec2_process(hVd2, hInBuf, hDstBuf);

    hViddec2 = Vdec2_getVisaHandle(hVd2);

    retControl = VIDDEC2_control(hViddec2, XDM_GETSTATUS, NULL, &statViddec2);   /* VIDDEC2_control returns always -1 */

    printf("Error code: 0x%x\n", (unsigned int) statViddec2.extendedError);                           /* extendedError is always 0x0 */

    Hopefully this would help.

    Regards,

    Matthias

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Veeranna Hanchinal
    Posted by Veeranna Hanchinal
    on Mar 07 2012 08:02 AM
    Expert5265 points

    Hi,

    Control call is getting failed it should return '0' or success, thats why extended error is wrong. Please check params passing to control are fine, specially Handle

    Thanks,

    Veeranna

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MW51194
    Posted by MW51194
    on Mar 07 2012 08:41 AM
    Intellectual855 points

    Hi,

    it seems that the values of my Vdec2_Handle and my VIDDEC2_Handle are different. But the Vdec2_Handle consists of a VIDDEC2_Handle in first place so it should be the same or not? Is it possible that I have to use the VIDDEC2_Handle OR the Vdec2_Handle for all decoder related functions (i.e. always use the Vdec2_Handle with DMAI functions OR always use the VIDDEC2_Handle with VISA functions)?

    Regards,

    Matthias

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Veeranna Hanchinal
    Posted by Veeranna Hanchinal
    on Mar 07 2012 09:03 AM
    Verified Answer
    Verified by MW51194
    Expert5265 points

    Hi,

    You are right about usage of handle.

    i.e. always use the Vdec2_Handle with DMAI functions AND always use the VIDDEC2_Handle with VISA functions. VIDDEC2_Handle is part of Vdec2_Handle. DMAI package will have source code release you can have look for more information.

    Looks you are passing correct visa handle to visa control call. And seen you are not setting status size. Please set it to default or extended status size.

    Thanks,

    Veeranna

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • MW51194
    Posted by MW51194
    on Mar 07 2012 09:14 AM
    Intellectual855 points

    Yes, it seems that I forgot to set the size value of VIDDEC2_Status structure. Now it works fine. Thank you!

    Regards,

    Matthias

    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