#include <v4lbuffer.h>
Classes | |
struct | V4LFrame |
Public Member Functions | |
virtual bool | frame_pending () |
virtual double | frame_rate () |
What is the (expected) frame rate of this video buffer, in frames per second? | |
virtual VideoFrame< T > * | get_frame () |
Returns the next frame from the buffer. This function blocks until a frame is ready. | |
int | num_buffers () |
virtual void | put_frame (VideoFrame< T > *f) |
virtual ImageRef | size () |
The size of the VideoFrames returned by this buffer. | |
V4LBuffer (const std::string &dev, ImageRef size, int input=-1, bool fields=false, int frames_per_second=0, bool verbose=0) | |
Private Member Functions | |
void | operator= (V4LBuffer ©of) |
V4LBuffer (V4LBuffer ©of) |
A live video buffer which uses the Video for Linux 2 (V4L2) API. A replacement for the (deprecated?) V4L2Buffer
Definition at line 172 of file v4lbuffer.h.
CVD::V4LBuffer< T >::V4LBuffer | ( | const std::string & | dev, | |
ImageRef | size, | |||
int | input = -1 , |
|||
bool | fields = false , |
|||
int | frames_per_second = 0 , |
|||
bool | verbose = 0 | |||
) | [inline] |
Definition at line 175 of file v4lbuffer.h.
CVD::V4LBuffer< T >::V4LBuffer | ( | V4LBuffer< T > & | copyof | ) | [inline, private] |
Definition at line 228 of file v4lbuffer.h.
virtual bool CVD::V4LBuffer< T >::frame_pending | ( | ) | [inline, virtual] |
Is there a frame waiting in the buffer? This function does not block. See is_live and is_flushable.
Implements CVD::RawVideoBuffer.
Definition at line 201 of file v4lbuffer.h.
virtual double CVD::V4LBuffer< T >::frame_rate | ( | ) | [inline, virtual] |
What is the (expected) frame rate of this video buffer, in frames per second?
Implements CVD::RawVideoBuffer.
Definition at line 206 of file v4lbuffer.h.
virtual VideoFrame<T>* CVD::V4LBuffer< T >::get_frame | ( | ) | [inline, virtual] |
Returns the next frame from the buffer. This function blocks until a frame is ready.
Implements CVD::VideoBuffer< T >.
Definition at line 186 of file v4lbuffer.h.
int CVD::V4LBuffer< T >::num_buffers | ( | ) | [inline] |
Reimplemented from CVD::V4L::RawV4LBuffer.
Definition at line 211 of file v4lbuffer.h.
void CVD::V4LBuffer< T >::operator= | ( | V4LBuffer< T > & | copyof | ) | [inline, private] |
Definition at line 229 of file v4lbuffer.h.
virtual void CVD::V4LBuffer< T >::put_frame | ( | VideoFrame< T > * | f | ) | [inline, virtual] |
Tell the buffer that you are finished with this frame. Typically the VideoBuffer then destroys the frame.
f | The frame that you are finished with. |
Implements CVD::VideoBuffer< T >.
Definition at line 191 of file v4lbuffer.h.
virtual ImageRef CVD::V4LBuffer< T >::size | ( | ) | [inline, virtual] |
The size of the VideoFrames returned by this buffer.
Implements CVD::RawVideoBuffer.
Definition at line 180 of file v4lbuffer.h.