Re: Displaying a v4l2 webcam output on memory buffer (rgb24) with GTK!
- From: jcupitt gmail com
- To: Guilherme Raymo Longo <grlongo ireland gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Displaying a v4l2 webcam output on memory buffer (rgb24) with GTK!
- Date: Fri, 2 Apr 2010 13:41:26 +0100
On 2 April 2010 07:48, Guilherme Raymo Longo <grlongo ireland gmail com> wrote:
> I am struggling on how to output the content of a v4l2 webcam software which
> I have already working on a GtkWidget.
You can use gdk_draw_rgb_image() to draw a memory buffer to the screen.
http://library.gnome.org/devel/gdk/stable/gdk-GdkRGB.html#gdk-draw-rgb-image
Make a GtkDrawingArea and call that in expose.
You can also use cairo, though it'd probably be a little slower. If
you need more speed than gdk_draw_rgb_image() (though you should be
able to do 640 x 480 x 60 fps on most machines) you'll need to use
opengl or similar.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]