X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_input.h;h=3fad845ea83351a43271fc1d357b4a7d7f162356;hb=c9c43a2511ec88bf40aa720ba712577ba85a6863;hp=edc86c8fbbf76ed7562fc93cf340952144ae5cbf;hpb=2a431ccd32a47fb0f40389cbd7d1a1e9d1902a64;p=nageru diff --git a/image_input.h b/image_input.h index edc86c8..3fad845 100644 --- a/image_input.h +++ b/image_input.h @@ -1,12 +1,12 @@ #ifndef _IMAGE_INPUT_H #define _IMAGE_INPUT_H 1 +#include #include #include #include - // An output that takes its input from a static image, loaded with ffmpeg. // comes from a single 2D array with chunky pixels. class ImageInput : public movit::FlatInput { @@ -16,7 +16,8 @@ public: std::string effect_type_id() const override { return "ImageInput"; } private: - std::unique_ptr image_data; + static const uint8_t *load_image(const std::string &filename); + static std::map> all_images; }; #endif // !defined(_IMAGE_INPUT_H)