List Info

Thread: Developing a GUI with GTK-DirectFB and video streaming




Developing a GUI with GTK-DirectFB and video streaming
user name
2006-06-28 12:27:29
Hi,

After cross-compiling GTK on DirectFB for the PNX8550 MIPS
processor,
I'm developing a GUI that needs to do basically a couple of
things:

- Display normal GTK menus: buttons, images and the like.
- Display video streams.

I already have the video streaming part that uses the
DirectFB API
(IDirectFBVideoProvider, ImageProvider, ...) and I'm trying
to add to
this app a nice GTK GUI.

When starting the app I display the GTK menu normally, but
when I want
to display the video streaming I'm having problems because
I'm using the
DirectFB's video/image providers that need an IDirectFB *,
an
IDirectFSurface *, ..., but since GTK/GDK hide the low level
graphics
details (they're not accessible by their APIs), I cannot
get any pointer
to the IDirectFB or to the surface that GTK is using,
therefore I'm
doing the following:

When I want to display a video stream I call gtk_main_quit()
to free all
the resources that GTK was using, then I display the video
stream using
the DirectFB API. Until here everything goes smoothly, but
when I want
to display again the menu, I release all the DirectFB
resources and call
again the GTK init funcs (gtk_init(), gtk_main (), ...), but
I don't see
anything (the app doesn't crash).
Calling again the GTK init funcs after a gtk_main_quit() is
not an
issue, I tested it.

The problem could be that after releasing the DirectFB
resources,
something remains 'dirty' causing the GTK GUI not to be
visible.

Do you have any idea or hint for solving this issue?
Could it be a problem with the surfaces? (I'm using
DSCAPS_PRIMARY)
Is there any other way for doing it?

Thanks a lot!

Pedro Aguilar


_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
Developing a GUI with GTK-DirectFB and video streaming
user name
2006-06-28 14:27:00
On 6/28/06, Pedro Aguilar <pedro.aguilarvisionee.com> wrote:
> Hi,
>
> After cross-compiling GTK on DirectFB for the PNX8550
MIPS processor,
> I'm developing a GUI that needs to do basically a
couple of things:
>
> - Display normal GTK menus: buttons, images and the
like.
> - Display video streams.
>
> I already have the video streaming part that uses the
DirectFB API
> (IDirectFBVideoProvider, ImageProvider, ...) and I'm
trying to add to
> this app a nice GTK GUI.
>
> When starting the app I display the GTK menu normally,
but when I want
> to display the video streaming I'm having problems
because I'm using the
> DirectFB's video/image providers that need an
IDirectFB *, an
> IDirectFSurface *, ..., but since GTK/GDK hide the low
level graphics
> details (they're not accessible by their APIs), I
cannot get any pointer
> to the IDirectFB or to the surface that GTK is using,
therefore I'm
> doing the following:
>

The are accesible you can create obtain a DirectFB surface
from
the GdkWindow

see the header gdkdirectfb.h its  public.


> When I want to display a video stream I call
gtk_main_quit() to free all
> the resources that GTK was using, then I display the
video stream using
> the DirectFB API. Until here everything goes smoothly,
but when I want
> to display again the menu, I release all the DirectFB
resources and call
> again the GTK init funcs (gtk_init(), gtk_main (),
...), but I don't see
> anything (the app doesn't crash).
> Calling again the GTK init funcs after a
gtk_main_quit() is not an
> issue, I tested it.
>
> The problem could be that after releasing the DirectFB
resources,
> something remains 'dirty' causing the GTK GUI not to
be visible.
>
I'm not surprised we leak a bit still this is a good test
case.

Report a bug.

http://deve
loper.gnome.org/tools/bug.html

> Do you have any idea or hint for solving this issue?
> Could it be a problem with the surfaces? (I'm using
DSCAPS_PRIMARY)
> Is there any other way for doing it?
>
You can used a window surface as I mentioned.

Mike

> Thanks a lot!
>
> Pedro Aguilar
>
>
> _______________________________________________
> directfb-dev mailing list
> directfb-devdirectfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
>

_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )