31 #ifndef OPENSHOT_QIMAGE_READER_H 32 #define OPENSHOT_QIMAGE_READER_H 71 std::shared_ptr<QImage> image;
72 std::shared_ptr<QImage> cached_image;
80 QSize load_svg_path(QString path);
83 QSize calculate_max_size();
99 void Close()
override;
109 std::shared_ptr<Frame>
GetFrame(int64_t requested_frame)
override;
112 bool IsOpen()
override {
return is_open; };
115 std::string
Name()
override {
return "QtImageReader"; };
118 std::string
Json()
const override;
119 void SetJson(
const std::string value)
override;
124 void Open()
override;
std::string Name() override
Return the type name of the class.
Header file for ReaderBase class.
std::string Json() const override
Generate JSON string of this object.
void Close() override
Close File.
void Open() override
Open File - which is called by the constructor automatically.
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)
void SetJson(const std::string value) override
Load JSON string into this object.
All cache managers in libopenshot are based on this CacheBase class.
QtImageReader(std::string path, bool inspect_reader=true)
Constructor for QtImageReader.
This namespace is the default namespace for all code in the openshot library.
bool IsOpen() override
Determine if reader is open or closed.
This class uses the Qt library, to open image files, and return openshot::Frame objects containing th...
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::shared_ptr< Frame > GetFrame(int64_t requested_frame) override