From 7597d9b9646a3ccda32ce672a45393d5ab5af976 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 9 May 2024 13:32:10 -0400 Subject: Added capacity for multiple rectangle labels; bug fixes --- src/playback.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/playback.h') 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 #include #include +#include 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& 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 data; -- cgit v1.2.3