OpenShot Library | libopenshot
0.2.5
|
Go to the documentation of this file.
31 #ifndef OPENSHOT_DECKLINK_READER_H
32 #define OPENSHOT_DECKLINK_READER_H
68 IDeckLinkInput *deckLinkInput;
69 IDeckLinkDisplayModeIterator *displayModeIterator;
70 IDeckLinkOutput *m_deckLinkOutput;
71 IDeckLinkVideoConversion *m_deckLinkConverter;
72 pthread_mutex_t sleepMutex;
73 pthread_cond_t sleepCond;
74 IDeckLinkIterator *deckLinkIterator;
76 IDeckLinkDisplayMode *displayMode;
77 BMDVideoInputFlags inputFlags;
78 BMDDisplayMode selectedDisplayMode;
79 BMDPixelFormat pixelFormat;
83 bool foundDisplayMode;
87 int g_audioSampleDepth;
90 BMDTimeValue frameRateDuration, frameRateScale;
91 const char *displayModeName;
97 DecklinkReader(
int device,
int video_mode,
int pixel_format,
int channels,
int sample_depth);
111 std::shared_ptr<Frame>
GetFrame(int64_t requested_frame);
118 std::string
Name() {
return "DecklinkReader"; };
121 std::string
Json()
const override;
122 void SetJson(
const std::string value);
bool IsOpen()
Determine if reader is open or closed.
void Open()
Open device and video stream - which is called by the constructor automatically.
void SetJson(const std::string value)
Load JSON string into this object.
DecklinkReader(int device, int video_mode, int pixel_format, int channels, int sample_depth)
This namespace is the default namespace for all code in the openshot library.
This class is a memory-based cache manager for Frame objects.
Header file for CacheMemory class.
Header file for Frame class.
CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this reader)
This class uses the Blackmagic Decklink libraries, to open video streams on Blackmagic devices.
Header file for ReaderBase class.
void SetJsonValue(const Json::Value root)
Load Json::Value into this object.
std::shared_ptr< Frame > GetFrame(int64_t requested_frame)
unsigned long GetCurrentFrameNumber()
This abstract class is the base class, used by all readers in libopenshot.
Json::Value JsonValue() const
Generate Json::Value for this object.
std::string Json() const override
Get and Set JSON methods.
std::string Name()
Return the type name of the class.
Header file for all Exception classes.