CVD 0.8
Public Types | Public Member Functions
CVD::DeinterlaceBuffer< T > Class Template Reference
Inheritance diagram for CVD::DeinterlaceBuffer< T >:
CVD::VideoBuffer< T > CVD::RawVideoBuffer

List of all members.

Public Types

typedef DeinterlaceBufferFields Fields

Public Member Functions

 DeinterlaceBuffer (CVD::VideoBuffer< T > &buf, Fields::Fields fields=Fields::OddEven, bool line_double=false)
ImageRef size ()
CVD::VideoFrame< T > * get_frame ()
void put_frame (CVD::VideoFrame< T > *f)
virtual bool frame_pending ()
virtual void seek_to (double t)
virtual double frame_rate ()

Detailed Description

template<typename T>
class CVD::DeinterlaceBuffer< T >

Definition at line 88 of file deinterlacebuffer.h.


Constructor & Destructor Documentation

template<typename T >
CVD::DeinterlaceBuffer< T >::DeinterlaceBuffer ( CVD::VideoBuffer< T > &  buf,
Fields::Fields  fields = Fields::OddEven,
bool  line_double = false 
)

Construct a DeinterlaceBuffer by wrapping it around another VideoBuffer.

Parameters:
bufThe buffer that will provide the raw frames
fieldsThe fields to

Definition at line 136 of file deinterlacebuffer.h.

References CVD::ImageRef::x.


Member Function Documentation

template<typename T >
ImageRef CVD::DeinterlaceBuffer< T >::size ( ) [virtual]

The size of the VideoFrames returns by this buffer.

This will be half the height of the original frames.

Implements CVD::RawVideoBuffer.

Definition at line 250 of file deinterlacebuffer.h.

template<typename T >
void CVD::DeinterlaceBuffer< T >::put_frame ( CVD::VideoFrame< T > *  f) [virtual]

Tell the buffer that you are finished with this frame.

Typically the VideoBuffer then destroys the frame.

Parameters:
fThe frame that you are finished with.

Implements CVD::VideoBuffer< T >.

Definition at line 259 of file deinterlacebuffer.h.

template<typename T >
virtual bool CVD::DeinterlaceBuffer< 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 105 of file deinterlacebuffer.h.

template<typename T >
virtual void CVD::DeinterlaceBuffer< T >::seek_to ( double  ) [inline, virtual]

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

Parameters:
tThe frame time in seconds

Reimplemented from CVD::RawVideoBuffer.

Definition at line 108 of file deinterlacebuffer.h.

template<typename T >
virtual double CVD::DeinterlaceBuffer< T >::frame_rate ( ) [inline, virtual]

What is the (expected) frame rate of this video buffer, in frames per second? If OddEven or EvenOdd are selected, this will be reported as twice the original buffer's rate.

Implements CVD::RawVideoBuffer.

Definition at line 114 of file deinterlacebuffer.h.

References CVD::DeinterlaceBufferFields::EvenOnly, and CVD::DeinterlaceBufferFields::OddOnly.


The documentation for this class was generated from the following file: