summaryrefslogtreecommitdiff
path: root/src/video.hh
blob: 26a5c5017269148e3c2cd153286e673a0dde1ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef VIDEO_HH
#define VIDEO_HH

#include "date.hh"
#include "location.hh"

#include <filesystem>
#include <memory>

class Timezone;

class Video {
public:
  virtual ~Video() = default;

  static std::unique_ptr<Video> load(std::filesystem::path const& path,
                                     Timezone const* timezone);

  virtual uint64_t width() const = 0;
  virtual uint64_t height() const = 0;
  virtual double length() const = 0;
  virtual Location location() const = 0;
  virtual Date date() const = 0;

protected:
  Video() = default;
  Video(Video const&) = delete;
  Video& operator=(Video const&) = delete;
};

#endif  // VIDEO_HH