Go to the documentation of this file.
53 std::filesystem::path metadataPath;
58 std::map<std::string, std::tuple<std::string, std::string>> metadata;
63 std::vector<std::filesystem::path> framePaths;
68 std::filesystem::path extension;
73 unsigned int currentFrame;
78 unsigned int frameCount;
83 unsigned int framesPerChunk;
88 unsigned int frameHeight;
93 unsigned int frameWidth;
103 unsigned int playingBack;
132 virtual unsigned int getFps()
const override;
174 virtual void startPlayback(
const std::filesystem::path& filePath)
override;
188 virtual bool getNextFrame(::CByteImage& buffer)
override;
220 void initExtension();
227 void initFramesPerChunk();
234 void initFrameCount();
241 void initFrameHeight();
248 void initFrameWidth();
256 void updateMetadata(
const std::string& varName,
257 const std::string& varType,
258 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.