19 #ifndef DECKLINKCAPTURE_H_ 20 #define DECKLINKCAPTURE_H_ 22 #include <opencv2/core/core.hpp> 23 #include <opencv2/highgui/highgui.hpp> 25 #include <DeckLinkAPI.h> 28 #include "DeckLinkInputCallback.h" 41 bool doesSupportVideoMode(BMDDisplayMode displayMode,
42 BMDPixelFormat pixelFormat);
44 std::string getDeviceModelName();
45 std::string getDeviceDisplayName();
47 bool start(BMDDisplayMode displayMode = bmdModeHD1080p30,
48 BMDPixelFormat pixelFormat = bmdFormat8BitYUV);
52 bool retrieve(cv::Mat& videoFrame);
54 bool read(cv::Mat& videoFrame);
57 HRESULT error()
const;
58 const std::string& errorString()
const;
67 std::string errorString_;
69 friend HRESULT DeckLinkInputCallback::VideoInputFrameArrived(
70 IDeckLinkVideoInputFrame* videoFrame,
71 IDeckLinkAudioInputPacket* audioPacket);
77 inline HRESULT DeckLinkCapture::error()
const 82 inline const std::string& DeckLinkCapture::errorString()
const Definition: DeckLinkCapture.h:30