|
#include <VisionX/libraries/imrec/playback/strats/ChunkedImageSequencePlaybackStrategy.h>
Public Member Functions | |
ChunkedImageSequencePlaybackStrategy () | |
Default constructor to manually setup later. More... | |
ChunkedImageSequencePlaybackStrategy (const std::filesystem::path &filePath) | |
Constructor initialising the playback immediately. More... | |
virtual unsigned int | getCurrentFrame () const override |
Gets the current frame index of the playback. More... | |
virtual unsigned int | getFps () const override |
Gets the amount of frames per second of the recording. More... | |
virtual unsigned int | getFrameCount () const override |
Gets the total amout of frames in the recording. More... | |
virtual unsigned int | getFrameHeight () const override |
Gets the height of a frame in pixel. More... | |
virtual unsigned int | getFrameWidth () const override |
Gets the width of a frame in pixel. More... | |
virtual bool | getNextFrame (::CByteImage &buffer) override |
Writes the next frame into an IVT CByteImage buffer (RGB) More... | |
virtual bool | getNextFrame (cv::Mat &buffer) override |
Writes the next frame into an OpenCV Mat buffer (BGR) More... | |
virtual bool | getNextFrame (void *buffer) override |
Writes the next frame into a buffer of any form (RGB) More... | |
virtual bool | hasNextFrame () const override |
Indicates whether the recording has a consecutive frame. More... | |
virtual bool | isPlayingBack () const override |
Indicates whether the instance is configured to be able to play back. More... | |
virtual void | setCurrentFrame (unsigned int frame) override |
Sets the frame from there the playback should resume afterwards (seek) More... | |
virtual void | startPlayback (const std::filesystem::path &filePath) override |
Starts the playback. More... | |
virtual void | stopPlayback () override |
Stops the playback. More... | |
virtual | ~ChunkedImageSequencePlaybackStrategy () override |
Destructor. More... | |
![]() | |
virtual | ~AbstractPlaybackStrategy () |
Destructor. More... | |
Definition at line 45 of file ChunkedImageSequencePlaybackStrategy.h.
Default constructor to manually setup later.
Definition at line 50 of file ChunkedImageSequencePlaybackStrategy.cpp.
ChunkedImageSequencePlaybackStrategy | ( | const std::filesystem::path & | filePath | ) |
Constructor initialising the playback immediately.
filePath | Path to the recording |
Definition at line 58 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Destructor.
Definition at line 68 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Gets the current frame index of the playback.
Implements AbstractPlaybackStrategy.
Definition at line 110 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Gets the amount of frames per second of the recording.
Implements AbstractPlaybackStrategy.
Definition at line 80 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Gets the total amout of frames in the recording.
Implements AbstractPlaybackStrategy.
Definition at line 86 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Gets the height of a frame in pixel.
Implements AbstractPlaybackStrategy.
Definition at line 92 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Gets the width of a frame in pixel.
Implements AbstractPlaybackStrategy.
Definition at line 98 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
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 |
Implements AbstractPlaybackStrategy.
Definition at line 228 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
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 |
Implements AbstractPlaybackStrategy.
Definition at line 234 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Writes the next frame into a buffer of any form (RGB)
buffer | Output parameter where the frame data of the next frame should be written to |
Implements AbstractPlaybackStrategy.
Definition at line 205 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Indicates whether the recording has a consecutive frame.
Implements AbstractPlaybackStrategy.
Definition at line 116 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Indicates whether the instance is configured to be able to play back.
Implements AbstractPlaybackStrategy.
Definition at line 74 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
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) |
Implements AbstractPlaybackStrategy.
Definition at line 104 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Starts the playback.
filePath | Path to the recording to play back |
Implements AbstractPlaybackStrategy.
Definition at line 136 of file ChunkedImageSequencePlaybackStrategy.cpp.
|
overridevirtual |
Stops the playback.
Implements AbstractPlaybackStrategy.
Definition at line 256 of file ChunkedImageSequencePlaybackStrategy.cpp.