X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=decklink_capture.cpp;h=5e41da436ef71b0920495e38137390661f4b09fb;hb=63a912898083c06cc75f336f8d9a367a707e378a;hp=81566cb1a5ad20d85a3be25a8b01e2c24a62906e;hpb=08a992d58c34da8d8bbd70226f7e85c9f30d9514;p=nageru diff --git a/decklink_capture.cpp b/decklink_capture.cpp index 81566cb..5e41da4 100644 --- a/decklink_capture.cpp +++ b/decklink_capture.cpp @@ -1,24 +1,28 @@ #include "decklink_capture.h" +#include +#include +#include +#include #include +#ifdef __SSE2__ +#include +#endif #include #include #include #include -#include -#ifdef __SSE2__ -#include -#endif +#include +#include +#include +#include -#include -#include -#include -#include #include "bmusb/bmusb.h" #define FRAME_SIZE (8 << 20) // 8 MB. using namespace std; +using namespace std::chrono; using namespace std::placeholders; using namespace bmusb; @@ -351,6 +355,8 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived( video_format.width = width; video_format.height = height; + + current_video_frame.received_timestamp = steady_clock::now(); } } @@ -367,6 +373,8 @@ HRESULT STDMETHODCALLTYPE DeckLinkCapture::VideoInputFrameArrived( audio_format.bits_per_sample = 32; audio_format.num_channels = 2; + + current_audio_frame.received_timestamp = steady_clock::now(); } }