From 5a6248518654ec97d95d2c463e3ffb4be7bbf456 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 13 May 2021 17:20:26 -0400 Subject: Initial commit --- src/playback.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/playback.h (limited to 'src/playback.h') 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 +#include +#include + +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 data; + }; +} -- cgit v1.2.3