CVD::RawVideoBuffer Class Reference

#include <videobuffer.h>

Inheritance diagram for CVD::RawVideoBuffer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void flush ()=0
virtual bool frame_pending ()=0
virtual double frame_rate ()=0
 What is the (expected) frame rate of this video buffer, in frames per second?
RawVideoBufferroot_buffer ()
virtual void seek_to (double)
virtual ImageRef size ()=0
 The size of the VideoFrames returned by this buffer.
virtual RawVideoBuffersource_buffer ()
virtual ~RawVideoBuffer ()

Detailed Description

Base class which provides untyped access to video grabber objects. This provides all of the functionality for which the type does not need to be known (eg size, etc).

This allows one to follow chains of video buffers which change types (for instance code>ColourspaceBuffer<Rgb<byte>, byte>) and get to the underlying video grabber. This provides access to the grabber specific controls.

See progs/video_play_source.cc for a very basic example.

Definition at line 58 of file videobuffer.h.


Constructor & Destructor Documentation

virtual CVD::RawVideoBuffer::~RawVideoBuffer (  )  [inline, virtual]

Definition at line 80 of file videobuffer.h.


Member Function Documentation

virtual void CVD::RawVideoBuffer::flush (  )  [pure virtual]

Flush all old frames out of the video buffer, on a flushable buffer, causing the next get_frame() to sleep until a frame arrives. On a non-flushable buffer, this does nothing.

Implemented in CVD::VideoBuffer< T >, CVD::VideoBufferWithData< T, D >, CVD::VideoBuffer< C >, CVD::VideoBuffer< From >, CVD::VideoBuffer< pixel_T >, and CVD::VideoBuffer< Rgb8 >.

virtual bool CVD::RawVideoBuffer::frame_pending (  )  [pure virtual]
virtual double CVD::RawVideoBuffer::frame_rate (  )  [pure virtual]
RawVideoBuffer* CVD::RawVideoBuffer::root_buffer (  )  [inline]

Follow the chain of video grabbers back as far as at will go. This will usually yield the video grabber dealing with the hardware.

Definition at line 71 of file videobuffer.h.

virtual void CVD::RawVideoBuffer::seek_to ( double   )  [inline, virtual]

Go to a particular point in the video buffer (only implemented in buffers of recorded video)

Parameters:
t The frame time in seconds

Reimplemented in CVD::ColourspaceBuffer< T, From >, CVD::DeinterlaceBuffer< T >, CVD::DiskBuffer2< T >, CVD::DVBuffer2< T >, CVD::DVBuffer3< pixel_T >, CVD::LocalVideoBuffer< T >, CVD::ReadAheadVideoBuffer< T >, CVD::ServerPushJpegBuffer< C >, CVD::VideoFileBuffer< T >, and CVD::LocalVideoBuffer< C >.

Definition at line 93 of file videobuffer.h.

virtual ImageRef CVD::RawVideoBuffer::size (  )  [pure virtual]
virtual RawVideoBuffer* CVD::RawVideoBuffer::source_buffer (  )  [inline, virtual]

Which video grabber provides the source images for this video grabber.

Reimplemented in CVD::ColourspaceBuffer< T, From >, and CVD::VideoBufferWithData< T, D >.

Definition at line 64 of file videobuffer.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:52 2013