31 #ifndef OPENSHOT_DUMMY_READER_H 32 #define OPENSHOT_DUMMY_READER_H 107 std::shared_ptr<openshot::Frame> image_frame;
111 void init(
Fraction fps,
int width,
int height,
int sample_rate,
int channels,
float duration);
127 void Close()
override;
137 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame)
override;
140 bool IsOpen()
override {
return is_open; };
143 std::string
Name()
override {
return "DummyReader"; };
146 std::string
Json()
const override;
147 void SetJson(
const std::string value)
override;
152 void Open()
override;
Header file for Fraction class.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame) override
std::string Name() override
Return the type name of the class.
Header file for ReaderBase class.
This class is used as a simple, dummy reader, which can be very useful when writing unit tests...
bool IsOpen() override
Determine if reader is open or closed.
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.
std::string Json() const override
Generate JSON string of this object.
DummyReader()
Blank constructor for DummyReader, with default settings.
void Close() override
Close File.
Header file for CacheMemory class.
void SetJson(const std::string value) override
Load JSON string into this object.
This class represents a fraction.
All cache managers in libopenshot are based on this CacheBase class.
This namespace is the default namespace for all code in the openshot library.
CacheMemory * GetCache() override
Get the cache object used by this reader (always returns NULL for this reader)
Json::Value JsonValue() const override
Generate Json::Value for this object.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
This class is a memory-based cache manager for Frame objects.