From: Mike Durham Date: 2006-11-11T15:20:04+09:00 Subject: Re: Linux Cairo, webcam displaying images Kouhei Sutou wrote: > Hi, > > In <20061111.125758.14759375.kou@cozmixng.org> > "Re: Linux Cairo, webcam displaying images" on Sat, 11 Nov 2006 12:58:41 +0900, > Kouhei Sutou wrote: > >>> Can anyone please advise me on how to constantly display the output from >>> a webcam using Ruby & Cairo? >> Data from webcam (String) -> Gdk::Pixbuf -> >> Cairo::ImageSurface.new(data, format, width, height, stride) -> >> Cairo::Context.new(Cairo::XXXSurface.new) -> >> context.set_source(image_surface) -> context.paint > > I mistook. Gdk::Pixbuf isn't needed. > > Data from webcam (String) -> > Cairo::ImageSurface.new(data, format, width, height, stride) -> > Cairo::Context.new(Cairo::XXXSurface.new) -> > context.set_source(image_surface) -> context.paint > > Thanks, > -- > kou > Thanks for the info kou, Just a couple of questions to clarify things if you wouldn't mind. > Cairo::ImageSurface.new(data, format, width, height, stride) -> is 'data' a Ruby string returned from the V4l? what is 'format'? Thanks for your help kou Mike