OpenShot Library | libopenshot
0.3.3
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_QIMAGE_READER_H
14 #define OPENSHOT_QIMAGE_READER_H
30 #define RESVG_VERSION_MIN(a, b) (\
31 RESVG_MAJOR_VERSION > a \
32 || (RESVG_MAJOR_VERSION == a && RESVG_MINOR_VERSION >= b) \
35 #define RESVG_VERSION_MIN(a, b) 0
78 std::shared_ptr<QImage> image;
79 std::shared_ptr<QImage> cached_image;
83 #if RESVG_VERSION_MIN(0, 11)
84 ResvgOptions resvg_options;
91 QSize load_svg_path(QString
path);
94 QSize calculate_max_size();
110 void Close()
override;
120 std::shared_ptr<Frame>
GetFrame(int64_t requested_frame)
override;
123 bool IsOpen()
override {
return is_open; };
126 std::string
Name()
override {
return "QtImageReader"; };
129 std::string
Json()
const override;
130 void SetJson(
const std::string value)
override;
135 void Open()
override;
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
This namespace is the default namespace for all code in the openshot library.
CacheBase * GetCache() override
Get the cache object used by this reader (always returns NULL for this object)
Json::Value JsonValue() const override
Generate Json::Value for this object.
All cache managers in libopenshot are based on this CacheBase class.
void SetJson(const std::string value) override
Load JSON string into this object.
This class uses the Qt library, to open image files, and return openshot::Frame objects containing th...
std::string Json() const override
Generate JSON string of this object.
void Close() override
Close File.
Header file for ReaderBase class.
std::string Name() override
Return the type name of the class.
bool IsOpen() override
Determine if reader is open or closed.
std::shared_ptr< Frame > GetFrame(int64_t requested_frame) override
This abstract class is the base class, used by all readers in libopenshot.
QtImageReader(std::string path, bool inspect_reader=true)
Constructor for QtImageReader.
Header file for JSON class.
void Open() override
Open File - which is called by the constructor automatically.