 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
dennisWonders Familiar Face
Joined: 20 Feb 2007 Posts: 12 Location: hyd
|
Posted: Fri Mar 16, 2007 10:07 am Post subject: How to place the live video images in GTK frames |
|
|
hai all,
can any body give idea how to place the live video (using web cam) GTK frames.
bye
Dennis |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 426 Location: Portland, OR USA
|
Posted: Fri Mar 16, 2007 5:36 pm Post subject: |
|
|
You'll be using the "video for linux" (v4l2) library and probably displaying it in a GtkImage or the like. Find a GTK-based webcam application and take a look at the source code.
The v4l API documentation gives you a pretty good demo on getting the image data from you webcam (it's easiest if you use a RAW or bitmap format) and then it's easily stored into an array and loaded into a GdkImage as data. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|