2 #define _IMAGE_INPUT_H 1
8 #include <movit/flat_input.h>
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 {
14 ImageInput(const std::string &filename);
16 std::string effect_type_id() const override { return "ImageInput"; }
19 static const uint8_t *load_image(const std::string &filename);
20 static std::map<std::string, std::unique_ptr<uint8_t[]>> all_images;
23 #endif // !defined(_IMAGE_INPUT_H)