]> git.sesse.net Git - nageru/blob - image_input.h
Add a static image input (fixed to 1280x720 for now, and uploaded rather inefficiently).
[nageru] / image_input.h
1 #ifndef _IMAGE_INPUT_H
2 #define _IMAGE_INPUT_H 1
3
4 #include <memory>
5 #include <string>
6
7 #include <movit/flat_input.h>
8
9
10 // An output that takes its input from a static image, loaded with ffmpeg.
11 // comes from a single 2D array with chunky pixels.
12 class ImageInput : public movit::FlatInput {
13 public:
14         ImageInput(const std::string &filename);
15
16         std::string effect_type_id() const override { return "ImageInput"; }
17
18 private:
19         std::unique_ptr<uint8_t[]> image_data;
20 };
21
22 #endif // !defined(_IMAGE_INPUT_H)