CVD::V4LBuffer< T > Class Template Reference
[Video buffers]

#include <v4lbuffer.h>

Inheritance diagram for CVD::V4LBuffer< T >:
Inheritance graph
[legend]

List of all members.

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 &copyof)
 V4LBuffer (V4LBuffer &copyof)

Detailed Description

template<class T>
class CVD::V4LBuffer< T >

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.


Constructor & Destructor Documentation

template<class T >
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.

template<class T >
CVD::V4LBuffer< T >::V4LBuffer ( V4LBuffer< T > &  copyof  )  [inline, private]

Definition at line 228 of file v4lbuffer.h.


Member Function Documentation

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
int CVD::V4LBuffer< T >::num_buffers (  )  [inline]

Reimplemented from CVD::V4L::RawV4LBuffer.

Definition at line 211 of file v4lbuffer.h.

template<class T >
void CVD::V4LBuffer< T >::operator= ( V4LBuffer< T > &  copyof  )  [inline, private]

Definition at line 229 of file v4lbuffer.h.

template<class T >
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.

Parameters:
f The frame that you are finished with.

Implements CVD::VideoBuffer< T >.

Definition at line 191 of file v4lbuffer.h.

template<class T >
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:53 2013