CVD::V4L2BufferT< T > Class Template Reference

Inheritance diagram for CVD::V4L2BufferT< T >:

CVD::VideoBuffer< T > CVD::V4L2Buffer_Base

List of all members.


Detailed Description

template<class T>
class CVD::V4L2BufferT< T >

Definition at line 147 of file v4l2buffer.h.


Public Member Functions

 V4L2BufferT (const char *devname, bool fields, V4L2BufferBlockMethod block, int input=1, int numbufs=V4L2BUFFERS)
virtual ImageRef size ()
virtual VideoFrame< T > * get_frame ()
virtual void put_frame (VideoFrame< T > *f)
virtual bool frame_pending ()
virtual double frame_rate ()

Member Function Documentation

template<class T>
virtual ImageRef CVD::V4L2BufferT< T >::size (  )  [inline, virtual]

The size of the VideoFrames returned by this buffer.

Implements CVD::VideoBuffer< T >.

Definition at line 155 of file v4l2buffer.h.

References CVD::V4L2Buffer_Base::size().

template<class T>
virtual VideoFrame<T>* CVD::V4L2BufferT< 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 160 of file v4l2buffer.h.

template<class T>
virtual void CVD::V4L2BufferT< T >::put_frame ( VideoFrame< T > *  f  )  [inline, virtual]

Tell the buffer that you are finished with this frame. Overloaded version of VideoBuffer<T>::put_frame().

Implements CVD::VideoBuffer< T >.

Definition at line 163 of file v4l2buffer.h.

References CVD::V4L2Buffer_Base::put_frame().

template<class T>
virtual bool CVD::V4L2BufferT< 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::VideoBuffer< T >.

Definition at line 165 of file v4l2buffer.h.

template<class T>
virtual double CVD::V4L2BufferT< T >::frame_rate (  )  [inline, virtual]

What is the (expected) frame rate of this video buffer, in frames per second?

Implements CVD::VideoBuffer< T >.

Definition at line 166 of file v4l2buffer.h.

References CVD::V4L2Buffer_Base::frame_rate().


The documentation for this class was generated from the following file:
Generated on Wed Feb 18 10:23:10 2009 for CVD by  doxygen 1.5.3