GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to place the live video images in GTK frames

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
dennisWonders
Familiar Face


Joined: 20 Feb 2007
Posts: 12
Location: hyd

PostPosted: Fri Mar 16, 2007 10:07 am    Post subject: How to place the live video images in GTK frames Reply with quote

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: 427
Location: Portland, OR USA

PostPosted: Fri Mar 16, 2007 5:36 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP