• 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 » OMAP™ Applications Processors » OMAP 4 Forum » OMX_ErrorHardware which is 0x80001009 is returned from OMX_GetHandle
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

Forums

OMX_ErrorHardware which is 0x80001009 is returned from OMX_GetHandle

This question is answered
guang xu
Posted by guang xu
on Mar 28 2012 04:02 AM
Prodigy40 points

Hi all,

On tablet with OMAP4 processor, when try to use hardware Codec by calling TI component, we found OMX_ErrorHardware which is 0x80001009 is returned from OMX_GetHandle.

We use following steps in native code:

1) dlopen /system/lib/libOMX_Core.so

2) dlsym OMX_Init, OMX_GetHandle from 1)

3) call OMX_Init and OMX_GetHandle ..

Components we tried are OMX.TI.DUCATI1.VIDEO.DECODER and OMX.TI.DUCATI1.VIDEO.H264E. Os version is Android 4.0.1

But returned value from OMX_GetHandle is OMX_ErrorHardware which is 0x80001009.

Why calling OMX component is failed on TI component? Does anyone have suggestions about how to call TI component in native code? Thx.

regards,

guangx

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Magdalena Iovescu
    Posted by Magdalena Iovescu
    on Apr 19 2012 09:41 AM
    Intellectual2480 points

    Hello Girish,

    This is a forum for OMAP4 discussions only, not OMAP3. Also, for panda related questions use the appropriate google group.

    Regards,

    Magdalena

     

    Please click the Verify Answer button on this post if it answers your question

    _____________________________________________

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Girish H T
    Posted by Girish H T
    on Apr 19 2012 10:23 AM
    Prodigy85 points

    Hi Magdalena,

    The question is also w.r.t OMAP4 (Panda). This is very much specific to DUCATI and OpenMax. Hope TI can provide support

    Kindly help.

    Regards,

    Girish


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Apr 19 2012 12:14 PM
    Expert8505 points

    Magdalena;

    I was my mistake, i introduced OMAP3 comments in this forum, it was in order to provide code that handles buffer movement, just has reference;

    Girish;

    this error is returned from next file if you look at the line 658,

    ./mydroid/hardware/ti/domx/domx/omx_proxy_common/src/omx_proxy_common.c

    Can you share your original code? not the one that was base in OMAP3 that is already shared.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Apr 19 2012 12:26 PM
    Expert8505 points

    Girish;

    No problem about code, let me check this using the one already shared. thanks.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Apr 23 2012 12:02 PM
    Expert8505 points

    I got over this code point using next configuration in Android.mk

    ////////////////////////////
    include $(CLEAR_VARS)

    LOCAL_MODULE    := hello-native
    LOCAL_SRC_FILES := hello-jni.c
    LOCAL_LDLIBS := -ldl  -llog
    LOCAL_MODULE_TAGS := optional
    LOCAL_CFLAGS := -DANDROID_NDK -DOMAP_ENHANCEMENT  -DTARGET_OMAP4 -DENHANCED_DOMX

    include $(BUILD_EXECUTABLE)

    ////////////////////////////////////////

    like i am using NDK and not building it from inside $MYDROID build.mk flags are not being called. the ones from

    ./mydroid/device/ti/blaze/BoardConfig.mk

    ***********
    OMAP_ENHANCEMENT := true

    ***********
    ifdef OMAP_ENHANCEMENT
    COMMON_GLOBAL_CFLAGS += -DOMAP_ENHANCEMENT -DTARGET_OMAP4
    endif

    ***********

    other flags that could affect are; but it doesn't discard other configurations used from this file,

    BOARD_USES_GENERIC_AUDIO := false
    USE_CAMERA_STUB := true
    OMAP_ENHANCEMENT := true
    ENHANCED_DOMX := true

    ////////////////////////////////////////

    the part of -DENHANCED_DOMX makes reference to use

    /mydroid/hardware/ti/domx/omx_core/inc

    like OpenMax IL include directory,

    then try to build it by adding your code inside hardware/ti to get actual flags in use.

    /////////////////////////////////////////

    try to use

    ./mydroid/frameworks/base/media/libstagefright/OMXCodec.cpp

    for configuration settings and buffer allocation, i referred to OMAP3 code to note about buffer handling that was requested, this is the use of OMX_EmptyThisBuffer-OMX_EmptyBufferDone/OMX_FillThisBuffer-OMX_FillBufferDone and EventHandler code, that is handled by Stagefright.

     

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    OMAP4 OpenMax IL configuration code
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Apr 23 2012 17:26 PM
    Expert8505 points

    Girish;

    You can find Android.mk file here Android.mk(right click+save file)

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Girish H T
    Posted by Girish H T
    on Apr 24 2012 23:50 PM
    Prodigy85 points

    Hi Manuel,

    Thanks, But little confused about the reply. Did you try to run the code i had shared with your changes ? Did it work ? 

    1.In your case are you using NDK to make openmax calls or you are using ANDROID source tree to make openmax calls ?

    2.Is it possible to share the sources which works with NDK or Android Source Tree.

    As i said earlier I basically want to make use DUCATI for hardware acceleration. ( taking YUV as input and giving encoded 264 data as output)

    Any pointers or links would be helpful.

    Regards

    Girish

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on May 07 2012 15:45 PM
    Expert8505 points

    Girish;

    I made tests from Android Source Tree not from NDK directory, for my source code I only have first calls as this post is going.

    I working to get full code for OMX calls code, it must take me a week and a half.

    But by what i have read it must reference to Android's source directories for DOMX in order to open all the keys.

    Do you require to do it by using?

    1. NDK folder? or it can be from Android Source Tree?

    2. using dlopen(), dlsym()? like thread goes? right?

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Girish H T
    Posted by Girish H T
    on May 08 2012 02:06 AM
    Prodigy85 points

    Hi Manuel,

    I need the android source tree based approach which you have done.

    Can you kindly share the code of sample video encode and video decode using hardware codecs via omx ?

    Thanks in advance for your help.

    Girish

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on May 15 2012 19:39 PM
    Verified Answer
    Verified by Magdalena Iovescu
    Expert8505 points

    Girish;

    I am still working to get Video Decode code, it is not finished yet but running it is not getting any error and passes by all OMX_Init()-OMX_Deinit() process.

    Can you read it and tell me if it is kind of code you are looking for? code is in next link

    http://review.omapzoom.org/22418

    It must not be difficult to move it to use dlopen() my idea is to get it functional and then move it, but it seems is taking me some more time than I thought.

    It is based it using code from /mydroid/hardware/ti/domx/test/sample_proxy

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Girish H T
    Posted by Girish H T
    on May 15 2012 22:00 PM
    Prodigy85 points

    Hi Manuel,

    Yes exactly.  (http://review.omapzoom.org/22418). I am looking for similar kind of the code for panda.

    Regards

    Girish

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on May 16 2012 10:40 AM
    Expert8505 points

    Girish;

    This code was provided for reference, you will be responsible to port it to panda. This forum is not for panda questions - see guidelines.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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