#include <video_record_repeat.h>
Public Member Functions | |
int | FrameId () |
bool | GrabNewest (unsigned char *image, bool wait=true) |
bool | GrabNext (unsigned char *image, bool wait=true) |
unsigned | Height () const |
bool | IsPlaying () const |
bool | IsRecording () const |
std::string | PixFormat () const |
void | Play (bool realtime=true) |
void | Record () |
size_t | SizeBytes () const |
void | Source () |
void | Start () |
void | Stop () |
VideoRecordRepeat (std::string uri, std::string save_filename, int buffer_size_bytes) | |
unsigned | Width () const |
~VideoRecordRepeat () | |
Protected Attributes | |
int | buffer_size_bytes |
std::string | filename |
int | frame_num |
VideoInterface * | video_file |
VideoRecorder * | video_recorder |
VideoInterface * | video_src |
Definition at line 39 of file video_record_repeat.h.
pangolin::VideoRecordRepeat::VideoRecordRepeat | ( | std::string | uri, |
std::string | save_filename, | ||
int | buffer_size_bytes | ||
) |
Definition at line 8 of file video_record_repeat.cpp.
Definition at line 16 of file video_record_repeat.cpp.
Definition at line 175 of file video_record_repeat.cpp.
bool pangolin::VideoRecordRepeat::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 152 of file video_record_repeat.cpp.
bool pangolin::VideoRecordRepeat::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 129 of file video_record_repeat.cpp.
unsigned pangolin::VideoRecordRepeat::Height | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 95 of file video_record_repeat.cpp.
bool pangolin::VideoRecordRepeat::IsPlaying | ( | ) | const |
Definition at line 185 of file video_record_repeat.cpp.
bool pangolin::VideoRecordRepeat::IsRecording | ( | ) | const |
Definition at line 180 of file video_record_repeat.cpp.
std::string pangolin::VideoRecordRepeat::PixFormat | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 107 of file video_record_repeat.cpp.
void pangolin::VideoRecordRepeat::Play | ( | bool | realtime = true | ) |
Definition at line 50 of file video_record_repeat.cpp.
void pangolin::VideoRecordRepeat::Record | ( | ) |
Definition at line 26 of file video_record_repeat.cpp.
size_t pangolin::VideoRecordRepeat::SizeBytes | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 101 of file video_record_repeat.cpp.
void pangolin::VideoRecordRepeat::Source | ( | ) |
Definition at line 70 of file video_record_repeat.cpp.
void pangolin::VideoRecordRepeat::Start | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 113 of file video_record_repeat.cpp.
void pangolin::VideoRecordRepeat::Stop | ( | ) | [virtual] |
Implements pangolin::VideoInterface.
Definition at line 119 of file video_record_repeat.cpp.
unsigned pangolin::VideoRecordRepeat::Width | ( | ) | const [virtual] |
Implements pangolin::VideoInterface.
Definition at line 88 of file video_record_repeat.cpp.
int pangolin::VideoRecordRepeat::buffer_size_bytes [protected] |
Definition at line 71 of file video_record_repeat.h.
std::string pangolin::VideoRecordRepeat::filename [protected] |
Definition at line 70 of file video_record_repeat.h.
int pangolin::VideoRecordRepeat::frame_num [protected] |
Definition at line 73 of file video_record_repeat.h.
VideoInterface* pangolin::VideoRecordRepeat::video_file [protected] |
Definition at line 67 of file video_record_repeat.h.
VideoRecorder* pangolin::VideoRecordRepeat::video_recorder [protected] |
Definition at line 68 of file video_record_repeat.h.
VideoInterface* pangolin::VideoRecordRepeat::video_src [protected] |
Definition at line 66 of file video_record_repeat.h.