[Gambas-devel] gb.v4l update

Benoit Minisini gambas at ...1...
Sun Jul 3 19:32:38 CEST 2005


On Sunday 03 July 2005 17:12, Daniel Campos wrote:
> OK:
>
> http://gambas.gnulinex.org/v4l
>
> All changes proposed by Benoît where added to the gb.v4l component.
>
> Now the "VideoDevice" class inherits stream, so you can access to the
> current
> frame using the common stream methods. The VideoDev object keeps a buffer
> of one frame (in ppm format), you can:
>
> -> Know the length of the frame  (in bytes) with Lof(),
> -> Move your position in the frame with SEEK, and know the current
> position with Seek(),
> -> Know if you're at the end of the stream with Eof()
> -> Read data with READ
> -> Discard current frame and read next frame with FLUSH
>
> You can get a frame reading the Data property as a Byte array, too.
>
> The "MyWebCam" example has been updated too, so you can understand the
> changes in the interface.
>
>
> Regards,
>
> D. Campos
>
>

Thanks Daniel!

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list