[Gambas-devel] gb.v4l update
Daniel Campos
danielcampos at ...45...
Sun Jul 3 17:12:44 CEST 2005
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
More information about the Devel
mailing list