libcvd
|
A decorator class which wraps a VideoBuffer to skip frames. More...
#include <skipbuffer.h>
Public Types | |
typedef DeinterlaceBufferFields | Fields |
Public Member Functions | |
SkipBuffer (CVD::VideoBuffer< T > &buf, bool do_seek, double seek, int drop_) | |
Construct a DeinterlaceBuffer by wrapping it around another VideoBuffer. More... | |
ImageRef | size () |
The size of the VideoFrames returns by this buffer. More... | |
CVD::VideoFrame< T > * | get_frame () |
Returns the next frame from the buffer. This function blocks until a frame is ready. | |
virtual RawVideoBuffer * | source_buffer () |
Which video grabber provides the source images for this video grabber. More... | |
void | put_frame (CVD::VideoFrame< T > *f) |
Tell the buffer that you are finished with this frame. More... | |
virtual bool | frame_pending () |
Is there a frame waiting in the buffer? This function does not block. More... | |
virtual void | seek_to (double t) |
Go to a particular point in the video buffer (only implemented in buffers of recorded video) More... | |
virtual double | frame_rate () |
What is the (expected) frame rate of this video buffer, in frames per second? | |
![]() | |
VideoBuffer (VideoBufferType::Type _type) | |
Construct the buffer with the known semantics. | |
virtual void | flush () |
Flush all old frames out of the video buffer, on a flushable buffer, causing the next get_frame() to sleep until a frame arrives. More... | |
VideoBufferType::Type | type () |
Returns the type of the video stream. More... | |
![]() | |
RawVideoBuffer * | root_buffer () |
Follow the chain of video grabbers back as far as at will go. More... | |
A decorator class which wraps a VideoBuffer to skip frames.
T | The pixel type of the original VideoBuffer |
|
inline |
Construct a DeinterlaceBuffer by wrapping it around another VideoBuffer.
buf | The buffer that will provide the raw frames |
fields | The fields to |
|
inlinevirtual |
Is there a frame waiting in the buffer? This function does not block.
See is_live and is_flushable.
Implements CVD::RawVideoBuffer.
|
inlinevirtual |
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 >.
|
inlinevirtual |
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.
|
inlinevirtual |
The size of the VideoFrames returns by this buffer.
This will be half the height of the original frames.
Implements CVD::RawVideoBuffer.
|
inlinevirtual |
Which video grabber provides the source images for this video grabber.
Reimplemented from CVD::RawVideoBuffer.