• 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 » Linux » Linux forum » OMX with DirectFb
Share
Linux
  • Forum
Options
  • Subscribe via RSS

OMX with DirectFb

OMX with DirectFb

This question is not answered
Alla
Posted by Alla
on Aug 01 2012 09:15 AM
Expert1100 points

Hello all,

I work with DM8168 board. I have an OMX appliacation and I want to combine it with DirectFB. My OMX application uses fb0,

when the DirectFB uses fb1. I want to blend the 2 layers. I tried to enable blending on the directFb layer, but without any success.

I called the TestConfiguration function on the layer before I did any SetConfig  and it came back with an error.

dfb->GetDisplayLayer( dfb, 0, &videolayer );
ret = videolayer->SetCooperativeLevel( videolayer, DLSCL_EXCLUSIVE );

 videolayer->TestConfiguration(videolayer, &dlc, &errorFlags);


I saw some posts where it was recommended to use DirectFb, so I concluded that people in this forum use DirectFb.

Can someone help me please? Should I need to configure first my DirectFb?

Thanks.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Alla
    Posted by Alla
    on Aug 02 2012 10:36 AM
    Expert1100 points

    I compiled the directfb with  --with-gfxdrivers=davinci and edited the directfbrc file 5556.directfbrc.txt 


    Why videolayer->TestConfiguration(videolayer, &dlc, &errorFlags); function fails? Am I missing something?

    directFb DM8168
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 08 2012 10:38 AM
    Genius3785 points

    I am also interested in using directfb library with the TI8168, i have no experience working with that library on TI SOCs, are there any use case examples? Did anyone have done it on TI8168?
    Please help.

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _Ralph_
    Posted by _Ralph_
    on Aug 09 2012 05:42 AM
    Mastermind7955 points

    Hi Gabi, I have Buildroot and it has a package for DirectFB. I've had the demos working on my DM8168 custom board and also written my own application for DirectFB.

    When you're building it I wouldn't specify any graphics drivers, especially not Davinci as I have a feeling these refer to the DM6467.

    Ralph

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 09 2012 17:14 PM
    Genius3785 points

    Hi Ralph,

    Thank you very much for your answer.

    _Ralph_

    Hi Gabi, I have Buildroot and it has a package for DirectFB. I've had the demos working on my DM8168 custom board and also written my own application for DirectFB.

    Great it's good to know that someone have done it, Thanks for the tips i will try this myself.

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 12 2012 03:55 AM
    Genius3785 points

    Hi Ralph,

    I am a new Linux user, i am using the menuconfig in EZSDK supplied by TI, i couldn't find directFB support in this menuconfig.
    Sory if my question is silly. Can you please explain what should i do in order to add the directFB library from the Buildroot to this menuconfig.

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _Ralph_
    Posted by _Ralph_
    on Aug 13 2012 04:21 AM
    Mastermind7955 points

    Hi Gabi,


    Buildroot is an entirely different build environment than Angstron/Arago which TI uses. f you're new to Linux I wouldn't recomment using it. Have you tried downloading the DirectFB package and cross compiling it using the Code Sourcery toolchain?

    Ralph

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 14 2012 02:14 AM
    Genius3785 points

    Hi Ralph,

    Thank you very much for your help, actualy what i have done was downloading the DirectFB package and cross compiling it using the Code Sourcery toolchain, i even also run successfuly a few stand alone directFB examples. My problems have begun while i was tyring to combine directFB with OMX, i want to add text on an video image coming out of OMX chain, i am trying to use the transparency in order to see text above the video image, the directFB layer run over the video image coming from OMX and no video is seen only the text.
    I can't tell if the problem is coming from the directFB transparency feature or from something else.
    Have you done something similar with directFB?

    Thanks,
    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _Ralph_
    Posted by _Ralph_
    on Aug 14 2012 02:54 AM
    Mastermind7955 points

    Okay, so your issue is not with DirectFB but with the framebuffer device, assuming you are managing to output a 32 bit (RGBA) image with transparency using DirectDB.

    I've never mixed framebuffers however this is definitely something we'd find useful. As I understand it, you basically need to use the fbset program to set the framebuffer that you are displaying your DirectFB application on (e.g. /dev/fb0) to have 32 bit colour depth.

    Then you should get both OpenMAX and DirectFB outputting video.

    Then I would refer to the VPSS user guide to see how to mix the 2 video outputs as the mixing is not done in Linux; it is a hardware feature of the HDVPSS. "Alpha blending" is the feature you're looking at.

    Hmm, having said that, I looked at the VPSS webpage and it seems that alpha blending is to do with blending software buffers (e.g. mix /dev/fb0 with /dev/fb1) which is no use for OpenMAX.

    I believe the decode_display has some GUI overlay option using the "-g 1" command line switch. Have a look at the source code of that and it might help you in displaying graphics.

    Otherwise I hope someone from TI can help you.

    Ralph

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 14 2012 04:55 AM
    Genius3785 points

    Hi Ralph,

    Thanks for your help, i have checked the decode_display with graphics enabled, this example works with transparency (not with directFB), that is way i have concluded that the /dev/fbo is configured correctly for transparency, if the transparency is done in HW i believe that there might be a problem with DirectFB access to DM8168 drivers.
    How can i check this?
    Can you please check with your platform the directFB functions below, i see that ret_desc.caps doesn't change, can you check if it changes on your platform?

     DFBDisplayLayerDescription ret_desc;
      DFBDisplayLayerConfig      dlc;

      dfb->GetDisplayLayer( dfb, 0, &videolayer );

      dlc.flags = DLCONF_OPTIONS;
      dlc.options = DLOP_OPACITY;
      videolayer->SetConfiguration( videolayer, &dlc );

      videolayer->GetDescription(videolayer, &ret_desc);

      if (ret_desc.caps & DLCAPS_OPACITY)
          printf( "  - Supports blending based on global alpha factor.\n" );

    Thanks,
    Gabi 

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _Ralph_
    Posted by _Ralph_
    on Aug 14 2012 05:11 AM
    Mastermind7955 points

    Hmm, okay well you basically need to cut the transparency stuff out of IL_ClientFbDevAppTask in decode_display, stick it at the start of the DirectFB application, and hopefully all should work fine. DirectFB is fundamentally just a tool for writing data to /dev/fb0 or /dev/fb1 and nothing more.

    The most important thing is to ensure that DirectFB is happy writing data to a ARGB8888 format framebuffer. I'm not sure how you can check this.

    Ralph

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 14 2012 08:17 AM
    Genius3785 points

    Hi Ralph,

    That was it. Thanks a lot you have made my day.

    Gabi 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • _Ralph_
    Posted by _Ralph_
    on Aug 14 2012 08:33 AM
    Mastermind7955 points

    Great. Which bit sorted it? The ARGB business?

    Ralph

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gabi Gvili
    Posted by Gabi Gvili
    on Aug 14 2012 08:38 AM
    Genius3785 points

    Yes it was the ARGB business.

    Gabi

    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