aboutsummaryrefslogtreecommitdiff
path: root/src/playback.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/playback.h')
-rw-r--r--src/playback.h23
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;
+ };
+}