libcvd
Public Types | Public Member Functions | List of all members
CVD::VideoReaderFileBuffer Class Reference
Inheritance diagram for CVD::VideoReaderFileBuffer:
Inheritance graph
[legend]
Collaboration diagram for CVD::VideoReaderFileBuffer:
Collaboration graph
[legend]

Public Types

using pixel_t = Rgba< std::uint8_t >
 

Public Member Functions

 VideoReaderFileBuffer (const std::string &filename, int threads=1)
 
ImageRef size () override
 The size of the VideoFrames returned by this buffer.
 
bool frame_pending () override
 Is there a frame waiting in the buffer? This function does not block. More...
 
void seek_to (double t) override
 Go to a particular point in the video buffer (only implemented in buffers of recorded video) More...
 
LocalVideoFrame< pixel_t > * get_frame () override
 Returns the next frame from the buffer. This function blocks until a frame is ready.
 
void put_frame (VideoFrame< pixel_t > *f) override
 
double frame_rate () const
 
std::string file_name () const
 
- Public Member Functions inherited from CVD::LocalVideoBuffer< Rgba< std::uint8_t > >
 LocalVideoBuffer (typename VideoBufferType::Type t)
 
virtual void put_frame (VideoFrame< Rgba< std::uint8_t > > *f)=0
 Tell the buffer that you are finished with this frame. More...
 
- Public Member Functions inherited from CVD::VideoBuffer< Rgba< std::uint8_t > >
 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...
 
- Public Member Functions inherited from CVD::RawVideoBuffer
virtual RawVideoBuffersource_buffer ()
 Which video grabber provides the source images for this video grabber. More...
 
RawVideoBufferroot_buffer ()
 Follow the chain of video grabbers back as far as at will go. More...
 
virtual double frame_rate ()=0
 What is the (expected) frame rate of this video buffer, in frames per second?
 

Member Function Documentation

◆ frame_pending()

bool CVD::VideoReaderFileBuffer::frame_pending ( )
overridevirtual

Is there a frame waiting in the buffer? This function does not block.

See is_live and is_flushable.

Implements CVD::LocalVideoBuffer< Rgba< std::uint8_t > >.

◆ seek_to()

void CVD::VideoReaderFileBuffer::seek_to ( double  )
overridevirtual

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::LocalVideoBuffer< Rgba< std::uint8_t > >.


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