LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-12-2008, 05:00 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
Directfb question - help needed badly


Hi, I apologise for posting this question here but I have tried other forums and have got not reply. I really hope someone can help me.

I am working on a project that needs to overlay an OSD onto video. The platform is TI Davinci and there are 3 display layers:
fb0 – used for The OSD
fb1 – Used for video
fb2 – alphaplane used to blend fb0 and fb1 together

The only way to make graphics in the OSD layer visible is to set the corresponding pixel values on the aplhaplane to a certain value > 0.

Currently I create a primary 'main' surface which accesses fb0 using:

Code:
    DirectFBInit (&argc, &argv);  
    DirectFBCreate (&dfb);  
    dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));  
    dsc.flags = DSDESC_CAPS;  
    dsc.caps  = (DFBSurfaceCapabilities)(DSCAPS_PRIMARY | DSCAPS_FLIPPING);  
    dfb->CreateSurface( dfb, &dsc, &primary );
I also need to create another surface which accesss fb2. Does anyone know how I can do this?

If you need more information just ask.

I am really grateful for any help I can get here.

thanks
 
Old 09-13-2008, 02:01 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
This should have been posted in programming, not here. You may want to contact a moderator to have it moved to its proper place.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directfb question - help needed badly HarryBoy Programming 4 08-23-2008 03:46 AM
Sound help badly needed LinuxBlackBox Linux - Software 3 10-24-2007 04:55 AM
badly needed your help kasmot Linux - Software 3 02-02-2006 10:02 PM
bpbatch help badly needed? m1anh Linux - General 2 02-07-2003 05:55 PM
Email server question..badly needed.... tomtacks Linux - General 3 11-23-2001 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration