![]() |
PosturePerfection
|
Class to maintain access to the cv::VideoCapture used as the input video stream. This class makes use of the CppTimer wrapper created here to regularly capture input frames at the set frame rate.
More...
#include <pipeline.h>


Public Member Functions | |
| FrameGenerator (void) | |
| Construct a new Frame Generator object. More... | |
| ~FrameGenerator () | |
| Destroy the Frame Generator object. More... | |
| void | updated_framerate (size_t new_frame_delay) |
Notify the FrameGenerator that the frame rate has changed. More... | |
| RawFrame | next_frame (void) |
| Get the newest frame. More... | |
Class to maintain access to the cv::VideoCapture used as the input video stream. This class makes use of the CppTimer wrapper created here to regularly capture input frames at the set frame rate.
| Pipeline::FrameGenerator::FrameGenerator | ( | void | ) |
Construct a new Frame Generator object.
| <tt>std::runtime_error</tt> | if the camera cannot be accessed |
| Pipeline::FrameGenerator::~FrameGenerator | ( | ) |
Destroy the Frame Generator object.
Blocks until the thread that generates the frames is joined
| RawFrame Pipeline::FrameGenerator::next_frame | ( | void | ) |
Get the newest frame.
RawFrame The most up-to-date frame from the camera | void Pipeline::FrameGenerator::updated_framerate | ( | size_t | new_frame_delay | ) |
Notify the FrameGenerator that the frame rate has changed.
The underlying timer is stopped and restarted with the new frame delay
| new_frame_delay | New delay from one frame to the next in ms |