|
#include <VisionX/libraries/imrec/playback/AbstractPlaybackStrategy.h>
Public Member Functions | |
virtual unsigned int | getCurrentFrame () const =0 |
Gets the current frame index of the playback. More... | |
virtual unsigned int | getFps () const =0 |
Gets the amount of frames per second of the recording. More... | |
virtual unsigned int | getFrameCount () const =0 |
Gets the total amout of frames in the recording. More... | |
virtual unsigned int | getFrameHeight () const =0 |
Gets the height of a frame in pixel. More... | |
virtual unsigned int | getFrameWidth () const =0 |
Gets the width of a frame in pixel. More... | |
virtual bool | getNextFrame (::CByteImage &buffer)=0 |
Writes the next frame into an IVT CByteImage buffer (RGB) More... | |
virtual bool | getNextFrame (cv::Mat &buffer)=0 |
Writes the next frame into an OpenCV Mat buffer (BGR) More... | |
virtual bool | getNextFrame (void *buffer)=0 |
Writes the next frame into an RGB buffer (one byte per channel => 3 byte per pixel) More... | |
virtual bool | hasNextFrame () const =0 |
Indicates whether the recording has a consecutive frame. More... | |
virtual bool | isPlayingBack () const =0 |
Indicates whether the instance is configured to be able to play back. More... | |
virtual void | setCurrentFrame (unsigned int frame)=0 |
Sets the frame from there the playback should resume afterwards (seek) More... | |
virtual void | startPlayback (const std::filesystem::path &filePath)=0 |
Starts the playback. More... | |
virtual void | stopPlayback ()=0 |
Stops the playback. More... | |
virtual | ~AbstractPlaybackStrategy () |
Destructor. More... | |
Definition at line 52 of file AbstractPlaybackStrategy.h.
|
virtual |
Destructor.
Definition at line 27 of file AbstractPlaybackStrategy.cpp.
|
pure virtual |
Gets the current frame index of the playback.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Gets the amount of frames per second of the recording.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Gets the total amout of frames in the recording.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Gets the height of a frame in pixel.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Gets the width of a frame in pixel.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Writes the next frame into an IVT CByteImage buffer (RGB)
buffer | Output parameter where the frame data of the next frame should be written to |
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Writes the next frame into an OpenCV Mat buffer (BGR)
buffer | Output parameter where the frame data of the next frame should be written to |
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Writes the next frame into an RGB buffer (one byte per channel => 3 byte per pixel)
buffer | Output parameter where the frame data of the next frame should be written to |
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Indicates whether the recording has a consecutive frame.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Indicates whether the instance is configured to be able to play back.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Sets the frame from there the playback should resume afterwards (seek)
frame | Frame from where the playback should be resumed (e.g. "0" to replay from the beginning) |
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Starts the playback.
filePath | Path to the recording to play back |
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.
|
pure virtual |
Stops the playback.
Implemented in ChunkedImageSequencePlaybackStrategy, ImageSequencePlaybackStrategy, and VideoPlaybackStrategy.