diff options
author | Your Name <you@example.com> | 2021-05-13 17:20:26 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-13 17:20:26 -0400 |
commit | 5a6248518654ec97d95d2c463e3ffb4be7bbf456 (patch) | |
tree | a6ebb6bb26ba2a6b4abc3829a81c58ae97fd2e05 /src/playback.h | |
download | annotator-5a6248518654ec97d95d2c463e3ffb4be7bbf456.tar.gz annotator-5a6248518654ec97d95d2c463e3ffb4be7bbf456.tar.bz2 annotator-5a6248518654ec97d95d2c463e3ffb4be7bbf456.zip |
Initial commit
Diffstat (limited to 'src/playback.h')
-rw-r--r-- | src/playback.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/playback.h b/src/playback.h new file mode 100644 index 0000000..f0f1f09 --- /dev/null +++ b/src/playback.h @@ -0,0 +1,23 @@ +#pragma once +#include <filesystem> +#include <memory> +#include <string> + +namespace frontend { + struct playback_impl; + class playback { + public: + playback(const std::filesystem::path& video); + void display(const std::string& windowName) const; + bool seekFrame(std::size_t frameNum); + std::size_t getFrame() const; + bool seekTime(double time); + double getTime() const; + void interFrameSleep() const; + std::size_t getMaxFrame() const; + double getMaxTime() const; + + private: + std::shared_ptr<playback_impl> data; + }; +} |