CVD 0.8
|
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 () |
Definition at line 88 of file deinterlacebuffer.h.
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.
buf | The buffer that will provide the raw frames |
fields | The fields to |
Definition at line 136 of file deinterlacebuffer.h.
References CVD::ImageRef::x.
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.
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.
f | The frame that you are finished with. |
Implements CVD::VideoBuffer< T >.
Definition at line 259 of file deinterlacebuffer.h.
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.
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)
t | The frame time in seconds |
Reimplemented from CVD::RawVideoBuffer.
Definition at line 108 of file deinterlacebuffer.h.
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.