X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_input.h;h=3fad845ea83351a43271fc1d357b4a7d7f162356;hb=0fff2c95c89541e5b23611962a00886c64c00daa;hp=edc86c8fbbf76ed7562fc93cf340952144ae5cbf;hpb=46a29f577f39bf2000553e53683b34b7f50f8dbf;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)