#include <video.h>

Public Member Functions | |
| bool | GrabNewest (unsigned char *image, bool wait=true) |
| bool | GrabNext (unsigned char *image, bool wait=true) |
| unsigned | Height () const |
| void | Open (std::string uri) |
| std::string | PixFormat () const |
| void | Reset () |
| size_t | SizeBytes () const |
| void | Start () |
| void | Stop () |
| VideoInput () | |
| VideoInput (std::string uri) | |
| unsigned | Width () const |
| ~VideoInput () | |
Protected Attributes | |
| std::string | uri |
| VideoInterface * | video |
| pangolin::VideoInput::VideoInput | ( | std::string | uri | ) |
| bool pangolin::VideoInput::GrabNewest | ( | unsigned char * | image, |
| bool | wait = true |
||
| ) | [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
Implements pangolin::VideoInterface.
| bool pangolin::VideoInput::GrabNext | ( | unsigned char * | image, |
| bool | wait = true |
||
| ) | [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
Implements pangolin::VideoInterface.
| unsigned pangolin::VideoInput::Height | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
| void pangolin::VideoInput::Open | ( | std::string | uri | ) |
| std::string pangolin::VideoInput::PixFormat | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
| void pangolin::VideoInput::Reset | ( | ) |
| size_t pangolin::VideoInput::SizeBytes | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
| void pangolin::VideoInput::Start | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
| void pangolin::VideoInput::Stop | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
| unsigned pangolin::VideoInput::Width | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
std::string pangolin::VideoInput::uri [protected] |
VideoInterface* pangolin::VideoInput::video [protected] |