aboutsummaryrefslogtreecommitdiff
path: root/src/playback.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/playback.h')
-rw-r--r--src/playback.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/playback.h b/src/playback.h
index 3f6e67f..363a360 100644
--- a/src/playback.h
+++ b/src/playback.h
@@ -2,9 +2,10 @@
#include <filesystem>
#include <memory>
#include <string>
+#include <vector>
namespace backend {
- struct rect;
+ struct label;
}
namespace frontend {
@@ -12,7 +13,7 @@ namespace frontend {
class playback {
public:
playback(const std::filesystem::path& video, std::size_t frameCap=0);
- void display(const std::string& windowName, const backend::rect &r) const;
+ void display(const std::string& windowName, const std::vector<backend::label>& labels) const;
bool seekFrame(std::size_t frameNum);
std::size_t getFrame() const;
bool seekTime(double time);
@@ -20,6 +21,7 @@ namespace frontend {
void interFrameSleep() const;
std::size_t getMaxFrame() const;
double getMaxTime() const;
+ void release() const;
private:
std::shared_ptr<playback_impl> data;