28 #ifndef OPENSHOT_DECKLINK_READER_H
29 #define OPENSHOT_DECKLINK_READER_H
67 IDeckLinkInput *deckLinkInput;
68 IDeckLinkDisplayModeIterator *displayModeIterator;
69 IDeckLinkOutput *m_deckLinkOutput;
70 IDeckLinkVideoConversion *m_deckLinkConverter;
71 pthread_mutex_t sleepMutex;
72 pthread_cond_t sleepCond;
73 IDeckLinkIterator *deckLinkIterator;
75 IDeckLinkDisplayMode *displayMode;
76 BMDVideoInputFlags inputFlags;
77 BMDDisplayMode selectedDisplayMode;
78 BMDPixelFormat pixelFormat;
82 bool foundDisplayMode;
86 int g_audioSampleDepth;
89 BMDTimeValue frameRateDuration, frameRateScale;
90 const char *displayModeName;
96 DecklinkReader(
int device,
int video_mode,
int pixel_format,
int channels,
int sample_depth);
110 std::shared_ptr<Frame> GetFrame(int64_t requested_frame);
111 unsigned long GetCurrentFrameNumber();
117 string Name() {
return "DecklinkReader"; };
121 void SetJson(
string value);
122 Json::Value JsonValue();
123 void SetJsonValue(Json::Value root);