31 #ifndef OPENSHOT_IMAGE_READER_H 32 #define OPENSHOT_IMAGE_READER_H 35 #ifdef USE_IMAGEMAGICK 77 std::shared_ptr<Magick::Image> image;
89 ImageReader(
const std::string& path,
bool inspect_reader=
true);
92 void Close()
override;
102 std::shared_ptr<Frame>
GetFrame(int64_t requested_frame)
override;
105 bool IsOpen()
override {
return is_open; };
108 std::string
Name()
override {
return "ImageReader"; };
111 std::string
Json()
const override;
112 void SetJson(
const std::string value)
override;
117 void Open()
override;
122 #endif //USE_IMAGEMAGICK 123 #endif //OPENSHOT_IMAGE_READER_H void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
void Close() override
Close File.
Header file for ReaderBase class.
std::shared_ptr< Frame > GetFrame(int64_t requested_frame) override
bool IsOpen() override
Determine if reader is open or closed.
Header file for MagickUtilities (IM6/IM7 compatibility overlay)
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
void SetJson(const std::string value) override
Load JSON string into this object.
This abstract class is the base class, used by all readers in libopenshot.
Header file for CacheMemory class.
This class uses the ImageMagick++ libraries, to open image files, and return openshot::Frame objects ...
std::string Name() override
Return the type name of the class.
All cache managers in libopenshot are based on this CacheBase class.
void Open() override
Open File - which is called by the constructor automatically.
Json::Value JsonValue() const override
Generate Json::Value for this object.
This namespace is the default namespace for all code in the openshot library.
ImageReader(const std::string &path, bool inspect_reader=true)
Constructor for ImageReader.
std::string Json() const override
Generate JSON string of this object.