From: Mike Durham Date: 2006-11-11T16:50:05+09:00 Subject: Re: Linux Cairo, webcam displaying images Kouhei Sutou wrote: > Hi, > > In <45557881_4@news.peopletelecom.com.au> > "Re: Linux Cairo, webcam displaying images" on Sat, 11 Nov 2006 15:20:04 +0900, > Mike Durham wrote: > >> 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? > > Yes, it's a String. But I don't know V4l's data format. So, > I can't promise you that you can use V4l's data directory. > >> what is 'format'? > > One of the cairo_format_t: > http://www.cairographics.org/manual/cairo-Image-Surfaces.html#id2598794 > > In rcairo, those formats are mapped to Cairo::FORMAT_XXX. > > > Thanks, > -- > kou > Thanks a lot kou, you're a star. Cheers, Mike