31 #ifndef OPENSHOT_IMAGE_READER_H
32 #define OPENSHOT_IMAGE_READER_H
35 #ifdef USE_IMAGEMAGICK
77 std::shared_ptr<Magick::Image> image;
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;
Header file for CacheMemory class.
Header file for MagickUtilities (IM6/IM7 compatibility overlay)
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
ImageReader(const std::string &path, bool inspect_reader=true)
Constructor for ImageReader.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
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.
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.