diff options
Diffstat (limited to 'director.h')
| -rw-r--r-- | director.h | 31 |
1 files changed, 31 insertions, 0 deletions
| diff --git a/director.h b/director.h new file mode 100644 index 0000000..f00f2ee --- /dev/null +++ b/director.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #ifndef DIRECTOR_H_9DFD929C | ||
| 2 | #define DIRECTOR_H_9DFD929C | ||
| 3 | |||
| 4 | #include <stdexcept> | ||
| 5 | #include <string> | ||
| 6 | #include <vector> | ||
| 7 | #include <Magick++.h> | ||
| 8 | #include <random> | ||
| 9 | |||
| 10 | class ffmpeg_error : public std::runtime_error { | ||
| 11 | public: | ||
| 12 | |||
| 13 | ffmpeg_error(std::string msg) : std::runtime_error(msg) | ||
| 14 | { | ||
| 15 | } | ||
| 16 | }; | ||
| 17 | |||
| 18 | class director { | ||
| 19 | public: | ||
| 20 | |||
| 21 | director(std::string videosPath); | ||
| 22 | |||
| 23 | Magick::Image generate(std::mt19937& rng) const; | ||
| 24 | |||
| 25 | private: | ||
| 26 | |||
| 27 | std::string videosPath_; | ||
| 28 | std::vector<std::string> videos_; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif /* end of include guard: DIRECTOR_H_9DFD929C */ | ||
