OpenShot Library | libopenshot
0.1.2
|
This class is used as a simple, dummy reader, which always returns a blank frame. More...
#include <DummyReader.h>
Public Member Functions | |
void | Close () |
Close File. More... | |
DummyReader () | |
Blank constructor for DummyReader, with default settings. More... | |
DummyReader (Fraction fps, int width, int height, int sample_rate, int channels, float duration) | |
Constructor for DummyReader. More... | |
Cache * | GetCache () |
Get the cache object used by this reader (always returns NULL for this reader) More... | |
tr1::shared_ptr< Frame > | GetFrame (long int requested_frame) throw (ReaderClosed) |
bool | IsOpen () |
Determine if reader is open or closed. More... | |
string | Json () |
Get and Set JSON methods. More... | |
Json::Value | JsonValue () |
Generate Json::JsonValue for this object. More... | |
string | Name () |
Return the type name of the class. More... | |
void | Open () throw (InvalidFile) |
Open File - which is called by the constructor automatically. More... | |
void | SetJson (string value) throw (InvalidJSON) |
Load JSON string into this object. More... | |
void | SetJsonValue (Json::Value root) throw (InvalidFile) |
Load Json::JsonValue into this object. More... | |
![]() | |
void | DisplayInfo () |
Display file information in the standard output stream (stdout) More... | |
void | DrawFrameOnScene (string path, long _graphics_scene_address) |
Test method to draw a bitmap on a Qt QGraphicsScene. More... | |
ReaderBase () | |
Constructor for the base reader, where many things are initialized. More... | |
Additional Inherited Members | |
![]() | |
ReaderInfo | info |
Information about the current media file. More... | |
![]() | |
CriticalSection | getFrameCriticalSection |
Section lock for multiple threads. More... | |
CriticalSection | processingCriticalSection |
This class is used as a simple, dummy reader, which always returns a blank frame.
A dummy reader can be created with any framerate or samplerate. This is useful in unit tests that need to test different framerates or samplerates.
Definition at line 53 of file DummyReader.h.
DummyReader::DummyReader | ( | ) |
Blank constructor for DummyReader, with default settings.
Definition at line 33 of file DummyReader.cpp.
DummyReader::DummyReader | ( | Fraction | fps, |
int | width, | ||
int | height, | ||
int | sample_rate, | ||
int | channels, | ||
float | duration | ||
) |
Constructor for DummyReader.
Definition at line 40 of file DummyReader.cpp.
|
virtual |
|
inlinevirtual |
Get the cache object used by this reader (always returns NULL for this reader)
Implements openshot::ReaderBase.
Definition at line 71 of file DummyReader.h.
|
virtual |
Get an openshot::Frame object for a specific frame number of this reader. All numbers return the same Frame, since they all share the same image data.
requested_frame | The frame number that is requested. |
Implements openshot::ReaderBase.
Definition at line 100 of file DummyReader.cpp.
|
inlinevirtual |
Determine if reader is open or closed.
Implements openshot::ReaderBase.
Definition at line 81 of file DummyReader.h.
|
virtual |
Get and Set JSON methods.
Generate JSON string of this object
Implements openshot::ReaderBase.
Definition at line 121 of file DummyReader.cpp.
|
virtual |
Generate Json::JsonValue for this object.
Implements openshot::ReaderBase.
Definition at line 128 of file DummyReader.cpp.
|
inlinevirtual |
Return the type name of the class.
Implements openshot::ReaderBase.
Definition at line 84 of file DummyReader.h.
|
virtual |
Open File - which is called by the constructor automatically.
Implements openshot::ReaderBase.
Definition at line 75 of file DummyReader.cpp.
|
virtual |
Load JSON string into this object.
Implements openshot::ReaderBase.
Definition at line 139 of file DummyReader.cpp.
|
virtual |
Load Json::JsonValue into this object.
Implements openshot::ReaderBase.
Definition at line 162 of file DummyReader.cpp.