31 #ifndef OPENSHOT_IMAGE_READER_H
32 #define OPENSHOT_IMAGE_READER_H
35 #ifdef USE_IMAGEMAGICK
75 std::shared_ptr<Magick::Image> image;
100 std::shared_ptr<Frame>
GetFrame(int64_t requested_frame);
106 std::string
Name() {
return "ImageReader"; };
109 std::string
Json()
const override;
110 void SetJson(
const std::string value);
Header file for CacheMemory class.
Header file for all Exception classes.
Header file for MagickUtilities (IM6/IM7 compatibility overlay)
Header file for ReaderBase class.
This class is a memory-based cache manager for Frame objects.
This class uses the ImageMagick++ libraries, to open image files, and return openshot::Frame objects ...
std::string Name()
Return the type name of the class.
ImageReader(std::string path)
CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this object)
Json::Value JsonValue() const
Generate Json::Value for this object.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
bool IsOpen()
Determine if reader is open or closed.
void SetJson(const std::string value)
Load JSON string into this object.
void Open()
Open File - which is called by the constructor automatically.
std::shared_ptr< Frame > GetFrame(int64_t requested_frame)
std::string Json() const override
Get and Set JSON methods.
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.