blob: f0f1f090da630cea83751986437ee27b4a45ca1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
};
}
|