Hi summer.
You can get the DirectFB interface below,
{
GdkWindow *gdkwindow;
GdkWindowObject *gdkwinObj;
GdkDrawalbeImplDirectFB *pDrawable;
gdkwinObj = GDK_WINDOW_OBJECT(gdkwindow);
pDrawable = GDK_DRAWABLE_IMPL_DIRECTFB(gdkwinObj->impl);
pDrawable->surface->Lock(pDrawable->surface, ..., ..., ...);
}
-----Original Message-----
From: summer xia [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 27, 2007 10:33 AM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [directfb-dev] directfb-dev Digest, Vol 32, Issue 24
Hi Mantiger
Thanks your kind help.
After digging the source codes of Gdk, I find that Gdk based on
DirectFB provides a function that we can get the IDirectFBSurface from
a GdkWindow. But it seems that there is lack of the function how to
get the IDirectFB, I have added a function that the user can get the
this interface. It seems that the DirectFB SDK doesn't provide the
method how to get the IDirectFB interface from IDirectFBSurface
either. I am wondering to know whether there is some a function to do
that. If so, it would not be added a new method on Gdk based on
DirectFB. Thanks.
Regards
XiaGuangTai
2007-9-27
On 9/27/07, 강인표 <[EMAIL PROTECTED]> wrote:
> For drawing the image, you can use gdk_pixbuf_xxx() function.
> But gdk_pixbuf is slower than drawing by DirectFB's blit function.
> If you want to access the DirectFB->surface, you can use gdk->drawable and
> surface->Lock() and this case faster than gdk_pixbuf.
>
> For Window Manger,
> How about using the default wm not unique wm?
> In DirectFB 1.0, default wm works well.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:directfb-dev-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Saturday, September 22, 2007 7:00 PM
> To: [email protected]
> Subject: directfb-dev Digest, Vol 32, Issue 24
>
> Send directfb-dev mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of directfb-dev digest..."
>
>
> Today's Topics:
>
> 1. DirectFB based GUI for Mplayer. (mohan soumya)
> 2. which level (directfb or gtk++)shoud I use to draw image?
> (summer xia)
> 3. what window manager should i use except unique (Binary Chen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 21 Sep 2007 14:30:41 +0100 (BST)
> From: mohan soumya <[EMAIL PROTECTED]>
> Subject: [directfb-dev] DirectFB based GUI for Mplayer.
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Can anyone let me know if there is any DirectFB based frontend available
> for Mplayer which does not use any X11 components.
>
> Also,do I require DBUS package to port DirectFB calls to Mplayer instead
> of X11 to build Mplayer with GUI.
>
> Thanks,
> Soumya.
>
>
> ---------------------------------
> Bollywood, fun, friendship, sports and more. You name it, we have it.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.directfb.org/pipermail/directfb-
> dev/attachments/20070921/61504e20/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Sat, 22 Sep 2007 09:14:21 +0800
> From: "summer xia" <[EMAIL PROTECTED]>
> Subject: [directfb-dev] which level (directfb or gtk++)shoud I use to
> draw image?
> To: [email protected]
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hello all
>
> I am developing a media player on Linux. We choose the Gtk+ based on
> DirectFB is our GUI library. But I wonder to know which level API
> should be choosed when draw image on LCD, use Gtk+ object such as
> GdkPixbuf, GdkImage and so on, or use IDirectFB,IDirectFBSurface and
> so on? If I want to use the IDirectFB and IDirectFBSurface to draw
> image on LCD, how can I get these interface from the GDK or Gtk+
> object?
>
> Thanks for any kind help.
>
> Regards
>
> XiaGuangTai
>
> 2007-9-21
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 22 Sep 2007 14:26:07 +0800
> From: Binary Chen <[EMAIL PROTECTED]>
> Subject: [directfb-dev] what window manager should i use except unique
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain
>
> Hi,
>
> I want to know except the unique wm, which one i can use else? I tested
> with unique wm, but the result is not good, i don't know the reason. The
> decoration is appearing when i click a menu, not so good...
>
> thanks.
> Bin
>
>
>
>
> ------------------------------
>
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>
>
> End of directfb-dev Digest, Vol 32, Issue 24
> ********************************************
>
>
>
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev