Go to the documentation of this file.
38 class ImageSequencePlaybackStrategy;
57 unsigned int currentFrame;
62 unsigned int frameCount;
67 std::filesystem::path basePath;
72 std::string requiredPrefix;
77 std::string requiredSuffix;
82 std::vector<std::filesystem::path> framePaths;
87 unsigned int frameHeight;
92 unsigned int frameWidth;
122 virtual unsigned int getFps()
const override;
164 virtual void startPlayback(
const std::filesystem::path& filePath)
override;
178 virtual bool getNextFrame(::CByteImage& buffer)
override;
198 void initBasePathPrefixSuffix(
const std::filesystem::path& filePath);
203 void initFramePaths();
208 void initFrameDimensions();
virtual unsigned int getCurrentFrame() const override
Gets the current frame index of the playback.
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.
virtual unsigned int getFrameWidth() const override
Gets the width of a frame in pixel.
virtual unsigned int getFps() const override
Gets the amount of frames per second of the recording.
virtual ~ImageSequencePlaybackStrategy() override
Destructor.
ImageSequencePlaybackStrategy()
Default constructor to manually setup later.
virtual void stopPlayback() override
Stops 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 bool getNextFrame(void *buffer) override
Writes the next frame into a buffer of any form (RGB)
virtual unsigned int getFrameCount() const override
Gets the total amout of frames in the recording.
virtual bool isPlayingBack() const override
Indicates whether the instance is configured to be able to play back.