X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=decklink_output.cpp;fp=decklink_output.cpp;h=d846b96a744436ac7a01eb598c13c46a84f54031;hb=1df7849fad1d0647a02951abaa60f9e4f40ce360;hp=f2ac40b8a9600f417399dd64efeedf92ff2d84fc;hpb=c574aef4437253dcf0e6c1fed4c9cab1033b33f9;p=nageru diff --git a/decklink_output.cpp b/decklink_output.cpp index f2ac40b..d846b96 100644 --- a/decklink_output.cpp +++ b/decklink_output.cpp @@ -22,6 +22,7 @@ DeckLinkOutput::DeckLinkOutput(ResourcePool *resource_pool, QSurface *surface, u : resource_pool(resource_pool), surface(surface), width(width), height(height), card_index(card_index) { chroma_subsampler.reset(new ChromaSubsampler(resource_pool)); + latency_histogram.init("decklink_output"); } void DeckLinkOutput::set_device(IDeckLink *decklink) @@ -395,7 +396,7 @@ HRESULT DeckLinkOutput::ScheduledFrameCompleted(/* in */ IDeckLinkVideoFrame *co } static int frameno = 0; - print_latency("DeckLink output latency (frame received → output on HDMI):", frame->received_ts, false, &frameno); + print_latency("DeckLink output latency (frame received → output on HDMI):", frame->received_ts, false, &frameno, &latency_histogram); { lock_guard lock(frame_queue_mutex);