OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_DUMMY_READER_H
14 #define OPENSHOT_DUMMY_READER_H
89 std::shared_ptr<openshot::Frame> image_frame;
90 std::shared_ptr<openshot::Frame> last_cached_frame;
94 void init(
Fraction fps,
int width,
int height,
int sample_rate,
int channels,
float duration);
110 void Close()
override;
120 std::shared_ptr<openshot::Frame>
GetFrame(int64_t requested_frame)
override;
123 bool IsOpen()
override {
return is_open; };
126 std::string
Name()
override {
return "DummyReader"; };
129 std::string
Json()
const override;
130 void SetJson(
const std::string value)
override;
135 void Open()
override;
Header file for Fraction class.
This namespace is the default namespace for all code in the openshot library.
This class represents a fraction.
void Open() override
Open File - which is called by the constructor automatically.
This class is used as a simple, dummy reader, which can be very useful when writing unit tests....
All cache managers in libopenshot are based on this CacheBase class.
void SetJson(const std::string value) override
Load JSON string into this object.
std::string Name() override
Return the type name of the class.
This class is a memory-based cache manager for Frame objects.
bool IsOpen() override
Determine if reader is open or closed.
Header file for CacheMemory class.
CacheMemory * GetCache() override
Get the cache object used by this reader (always returns NULL for this reader)
void Close() override
Close File.
Json::Value JsonValue() const override
Generate Json::Value for this object.
Header file for ReaderBase class.
DummyReader()
Blank constructor for DummyReader, with default settings.
This abstract class is the base class, used by all readers in libopenshot.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
std::shared_ptr< openshot::Frame > GetFrame(int64_t requested_frame) override
std::string Json() const override
Generate JSON string of this object.