diff options
author | Your Name <you@example.com> | 2024-05-09 13:32:10 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2024-05-09 13:32:10 -0400 |
commit | 7597d9b9646a3ccda32ce672a45393d5ab5af976 (patch) | |
tree | cda16a24a9c21af619802bf9889833471e837ec7 /src/playback.h | |
parent | 5c57d8636f87efedd0d68c2afb8aa99a961a6c8b (diff) | |
download | annotator-7597d9b9646a3ccda32ce672a45393d5ab5af976.tar.gz annotator-7597d9b9646a3ccda32ce672a45393d5ab5af976.tar.bz2 annotator-7597d9b9646a3ccda32ce672a45393d5ab5af976.zip |
Added capacity for multiple rectangle labels; bug fixes
Diffstat (limited to 'src/playback.h')
-rw-r--r-- | src/playback.h | 6 |
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; |