Mike Durham
11/11/2006 6:15:00 AM
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 <kou@cozmixng.org> 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