13#ifndef OPENSHOT_IMAGE_READER_H
14#define OPENSHOT_IMAGE_READER_H
59 std::shared_ptr<Magick::Image> image;
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;
Header file for JSON class.
Header file for ReaderBase class.
All cache managers in libopenshot are based on this CacheBase class.
This class uses the ImageMagick++ libraries, to open image files, and return openshot::Frame objects ...
bool IsOpen() override
Determine if reader is open or closed.
void Open() override
Open File - which is called by the constructor automatically.
std::shared_ptr< Frame > GetFrame(int64_t requested_frame) override
std::string Name() override
Return the type name of the class.
void SetJson(const std::string value) override
Load JSON string into this object.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Json::Value JsonValue() const override
Generate Json::Value for this object.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
std::string Json() const override
Generate JSON string of this object.
void Close() override
Close File.
This abstract class is the base class, used by all readers in libopenshot.
This namespace is the default namespace for all code in the openshot library.