Go to the documentation of this file.
31 #include <opencv2/highgui/highgui.hpp>
42 class VideoPlaybackStrategy;
57 std::filesystem::path filePath;
62 cv::VideoCapture videoCapture;
72 unsigned int currentFrame;
77 unsigned int frameHeight;
82 unsigned int frameWidth;
87 unsigned int frameCount;
117 virtual unsigned int getFps()
const override;
159 virtual void startPlayback(
const std::filesystem::path& filePath)
override;
173 virtual bool getNextFrame(::CByteImage& buffer)
override;
virtual bool getNextFrame(void *buffer) override
Writes the next frame into a buffer of any form (RGB)
virtual void startPlayback(const std::filesystem::path &filePath) override
Starts the playback.
virtual bool hasNextFrame() const override
Indicates whether the recording has a consecutive frame.
VideoPlaybackStrategy()
Default constructor to manually setup later.
virtual void stopPlayback() override
Stops the playback.
virtual bool isPlayingBack() const override
Indicates whether the instance is configured to be able to play back.
virtual unsigned int getFps() const override
Gets the amount of frames per second of the recording.
virtual unsigned int getFrameWidth() const override
Gets the width of a frame in pixel.
virtual unsigned int getCurrentFrame() const override
Gets the current frame index of the playback.
virtual unsigned int getFrameHeight() const override
Gets the height of a frame in pixel.
virtual void setCurrentFrame(unsigned int frame) override
Sets the frame from there the playback should resume afterwards (seek)
virtual unsigned int getFrameCount() const override
Gets the total amout of frames in the recording.
virtual ~VideoPlaybackStrategy() override
Destructor.