#include <pvn_video.h>
Public Member Functions | |
bool | GrabNewest (unsigned char *image, bool wait=true) |
bool | GrabNext (unsigned char *image, bool wait=true) |
unsigned | Height () const |
std::string | PixFormat () const |
PvnVideo (const char *filename, bool realtime=false) | |
size_t | SizeBytes () const |
void | Start () |
void | Stop () |
unsigned | Width () const |
~PvnVideo () | |
Protected Member Functions | |
void | ReadFileHeader () |
Protected Attributes | |
std::ifstream | file |
pangolin::basetime | frame_interval |
int | frames |
pangolin::basetime | last_frame |
bool | realtime |
std::vector< VideoStream > | stream_info |
Definition at line 47 of file pvn_video.h.
pangolin::PvnVideo::PvnVideo | ( | const char * | filename, |
bool | realtime = false |
||
) |
Definition at line 37 of file pvn_video.cpp.
Definition at line 48 of file pvn_video.cpp.
bool pangolin::PvnVideo::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.
Definition at line 119 of file pvn_video.cpp.
bool pangolin::PvnVideo::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.
Definition at line 104 of file pvn_video.cpp.
unsigned pangolin::PvnVideo::Height | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 89 of file pvn_video.cpp.
std::string pangolin::PvnVideo::PixFormat | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 99 of file pvn_video.cpp.
void pangolin::PvnVideo::ReadFileHeader | ( | ) | [protected] |
Definition at line 53 of file pvn_video.cpp.
size_t pangolin::PvnVideo::SizeBytes | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 94 of file pvn_video.cpp.
void pangolin::PvnVideo::Start | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 76 of file pvn_video.cpp.
void pangolin::PvnVideo::Stop | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 80 of file pvn_video.cpp.
unsigned pangolin::PvnVideo::Width | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 84 of file pvn_video.cpp.
std::ifstream pangolin::PvnVideo::file [protected] |
Definition at line 65 of file pvn_video.h.
pangolin::basetime pangolin::PvnVideo::frame_interval [protected] |
Definition at line 70 of file pvn_video.h.
int pangolin::PvnVideo::frames [protected] |
Definition at line 64 of file pvn_video.h.
pangolin::basetime pangolin::PvnVideo::last_frame [protected] |
Definition at line 71 of file pvn_video.h.
bool pangolin::PvnVideo::realtime [protected] |
Definition at line 69 of file pvn_video.h.
std::vector<VideoStream> pangolin::PvnVideo::stream_info [protected] |
Definition at line 66 of file pvn_video.h.