OpenShot Library | libopenshot
0.3.3
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_IMAGE_READER_H
14 #define OPENSHOT_IMAGE_READER_H
17 #ifdef USE_IMAGEMAGICK
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;
104 #endif //USE_IMAGEMAGICK
105 #endif //OPENSHOT_IMAGE_READER_H
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
void Open() override
Open File - which is called by the constructor automatically.
This namespace is the default namespace for all code in the openshot library.
void Close() override
Close File.
ImageReader(const std::string &path, bool inspect_reader=true)
Constructor for ImageReader.
All cache managers in libopenshot are based on this CacheBase class.
Json::Value JsonValue() const override
Generate Json::Value for this object.
std::string Json() const override
Generate JSON string of this object.
This class uses the ImageMagick++ libraries, to open image files, and return openshot::Frame objects ...
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.
Header file for ReaderBase class.
bool IsOpen() override
Determine if reader is open or closed.
This abstract class is the base class, used by all readers in libopenshot.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
Header file for JSON class.