Go to the documentation of this file.
57 std::filesystem::path metadataPath;
62 std::map<std::string, std::tuple<std::string, std::string>> metadata;
67 std::vector<std::filesystem::path> framePaths;
72 std::filesystem::path extension;
77 unsigned int currentFrame;
82 unsigned int frameCount;
87 unsigned int framesPerChunk;
92 unsigned int frameHeight;
97 unsigned int frameWidth;
107 unsigned int playingBack;
137 virtual unsigned int getFps()
const override;
179 virtual void startPlayback(
const std::filesystem::path& filePath)
override;
193 virtual bool getNextFrame(::CByteImage& buffer)
override;
226 void initExtension();
233 void initFramesPerChunk();
240 void initFrameCount();
247 void initFrameHeight();
254 void initFrameWidth();
262 void updateMetadata(
const std::string& varName,
const std::string& varType,
const std::string& varValue);
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 stopPlayback() override
Stops the playback.
virtual ~ChunkedImageSequencePlaybackStrategy() override
Destructor.
virtual bool getNextFrame(void *buffer) override
Writes the next frame into a buffer of any form (RGB)
virtual bool isPlayingBack() const override
Indicates whether the instance is configured to be able to play back.
ChunkedImageSequencePlaybackStrategy()
Default constructor to manually setup later.
virtual bool hasNextFrame() const override
Indicates whether the recording has a consecutive frame.
virtual unsigned int getFps() const override
Gets the amount of frames per second of the recording.
virtual void setCurrentFrame(unsigned int frame) override
Sets the frame from there the playback should resume afterwards (seek)
virtual unsigned int getFrameWidth() const override
Gets the width of a frame in pixel.
virtual void startPlayback(const std::filesystem::path &filePath) override
Starts the playback.
virtual unsigned int getFrameCount() const override
Gets the total amout of frames in the recording.