13 #ifndef OPENSHOT_IMAGE_READER_H 14 #define OPENSHOT_IMAGE_READER_H 17 #ifdef USE_IMAGEMAGICK 59 std::shared_ptr<Magick::Image> image;
71 ImageReader(
const std::string& path,
bool inspect_reader=
true);
74 void Close()
override;
84 std::shared_ptr<Frame> GetFrame(int64_t requested_frame)
override;
87 bool IsOpen()
override {
return is_open; };
90 std::string
Name()
override {
return "ImageReader"; };
93 std::string Json()
const override;
94 void SetJson(
const std::string value)
override;
95 Json::Value JsonValue()
const override;
96 void SetJsonValue(
const Json::Value root)
override;
104 #endif //USE_IMAGEMAGICK 105 #endif //OPENSHOT_IMAGE_READER_H Header file for ReaderBase class.
bool IsOpen() override
Determine if reader is open or closed.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
This abstract class is the base class, used by all readers in libopenshot.
This class uses the ImageMagick++ libraries, to open image files, and return openshot::Frame objects ...
Header file for JSON class.
std::string Name() override
Return the type name of the class.
All cache managers in libopenshot are based on this CacheBase class.
This namespace is the default namespace for all code in the openshot library.