Interface to video capture sources. More...
#include <video.h>
Public Member Functions | |
virtual bool | GrabNewest (unsigned char *image, bool wait=true)=0 |
virtual bool | GrabNext (unsigned char *image, bool wait=true)=0 |
virtual unsigned | Height () const =0 |
virtual std::string | PixFormat () const =0 |
virtual size_t | SizeBytes () const =0 |
virtual void | Start ()=0 |
virtual void | Stop ()=0 |
virtual unsigned | Width () const =0 |
virtual | ~VideoInterface () |
virtual pangolin::VideoInterface::~VideoInterface | ( | ) | [inline, virtual] |
virtual bool pangolin::VideoInterface::GrabNewest | ( | unsigned char * | image, |
bool | wait = true |
||
) | [pure virtual] |
Copy the newest frame from the camera to image discarding all older frames. Optionally wait for a frame if one isn't ready Returns true iff image was copied
Implemented in pangolin::FirewireVideo, pangolin::VideoInput, pangolin::FfmpegConverter, pangolin::V4lVideo, pangolin::FfmpegVideo, pangolin::PvnVideo, pangolin::VideoRecordRepeat, and pangolin::OpenNiVideo.
virtual bool pangolin::VideoInterface::GrabNext | ( | unsigned char * | image, |
bool | wait = true |
||
) | [pure virtual] |
Copy the next frame from the camera to image. Optionally wait for a frame if one isn't ready Returns true iff image was copied
Implemented in pangolin::FirewireVideo, pangolin::VideoInput, pangolin::FfmpegConverter, pangolin::V4lVideo, pangolin::FfmpegVideo, pangolin::PvnVideo, pangolin::VideoRecordRepeat, and pangolin::OpenNiVideo.
virtual unsigned pangolin::VideoInterface::Height | ( | ) | const [pure virtual] |
virtual std::string pangolin::VideoInterface::PixFormat | ( | ) | const [pure virtual] |
virtual size_t pangolin::VideoInterface::SizeBytes | ( | ) | const [pure virtual] |
virtual void pangolin::VideoInterface::Start | ( | ) | [pure virtual] |
virtual void pangolin::VideoInterface::Stop | ( | ) | [pure virtual] |
virtual unsigned pangolin::VideoInterface::Width | ( | ) | const [pure virtual] |