Go to the documentation of this file.
32 #include <opencv2/core/core.hpp>
35 #include <Image/ByteImage.h>
43 class AbstractPlaybackStrategy;
48 using Playback = std::shared_ptr<visionx::imrec::AbstractPlaybackStrategy>;
72 virtual unsigned int getFps()
const = 0;
114 virtual void startPlayback(
const std::filesystem::path& filePath) = 0;
virtual unsigned int getFps() const =0
Gets the amount of frames per second of the recording.
virtual void startPlayback(const std::filesystem::path &filePath)=0
Starts the playback.
virtual unsigned int getFrameHeight() const =0
Gets the height of a frame in pixel.
virtual bool isPlayingBack() const =0
Indicates whether the instance is configured to be able to play back.
virtual unsigned int getFrameCount() const =0
Gets the total amout of frames in the recording.
std::shared_ptr< visionx::imrec::AbstractPlaybackStrategy > Playback
Convenience alias for an instance of any playback strategy.
virtual ~AbstractPlaybackStrategy()
Destructor.
virtual void setCurrentFrame(unsigned int frame)=0
Sets the frame from there the playback should resume afterwards (seek)
virtual bool getNextFrame(void *buffer)=0
Writes the next frame into an RGB buffer (one byte per channel => 3 byte per pixel)
virtual unsigned int getCurrentFrame() const =0
Gets the current frame index of the playback.
virtual unsigned int getFrameWidth() const =0
Gets the width of a frame in pixel.
virtual void stopPlayback()=0
Stops the playback.
virtual bool hasNextFrame() const =0
Indicates whether the recording has a consecutive frame.