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

Classes

struct  Buffer
 
struct  State
 

Public Member Functions

 RawV4LBuffer (const std::string &dev, unsigned int fmt, ImageRef size, int input, bool fields, int frame_per_second, bool verbose)
 
ImageRef getSize ()
 
Buffer getFrame ()
 
void releaseFrame (int id)
 
double getRate ()
 
bool pendingFrame ()
 
int num_buffers ()
 
const std::string & device_name () const
 
- 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 ImageRef size ()=0
 The size of the VideoFrames returned by this buffer.
 
virtual bool frame_pending ()=0
 Is there a frame waiting in the buffer? This function does not block. More...
 
virtual double frame_rate ()=0
 What is the (expected) frame rate of this video buffer, in frames per second?
 
virtual void seek_to (double)
 Go to a particular point in the video buffer (only implemented in buffers of recorded video) More...
 
virtual void flush ()=0
 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...
 

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