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"; };
122 void SetJson(std::string value);
void SetJsonValue(Json::Value root)
Load Json::JsonValue into this object.
Header file for ReaderBase class.
std::shared_ptr< Frame > GetFrame(int64_t requested_frame)
void Open()
Open device and video stream - which is called by the constructor automatically.
unsigned long GetCurrentFrameNumber()
CacheMemory * GetCache()
Get the cache object used by this reader (always returns NULL for this reader)
This abstract class is the base class, used by all readers in libopenshot.
Header file for CacheMemory class.
bool IsOpen()
Determine if reader is open or closed.
Header file for all Exception classes.
Header file for Frame class.
std::string Json()
Get and Set JSON methods.
DecklinkReader(int device, int video_mode, int pixel_format, int channels, int sample_depth)
Json::Value JsonValue()
Generate Json::JsonValue for this object.
std::string Name()
Return the type name of the class.
void SetJson(std::string value)
Load JSON string into this object.
This namespace is the default namespace for all code in the openshot library.
This class is a memory-based cache manager for Frame objects.
This class uses the Blackmagic Decklink libraries, to open video streams on Blackmagic devices...