From fe1fa2c72b18c51f69c7ec4064c741ecd3c86e5c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 5 Aug 2020 09:18:44 +0200 Subject: [PATCH] DeckLink disp.: debug HDR metadata query --- src/video_display/decklink.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/video_display/decklink.cpp b/src/video_display/decklink.cpp index b6632222c..a68c2c170 100644 --- a/src/video_display/decklink.cpp +++ b/src/video_display/decklink.cpp @@ -1738,6 +1738,11 @@ HRESULT DeckLinkFrame::SetTimecodeUserBits (/* in */ BMDTimecodeFormat, /* in */ // IDeckLinkVideoFrameMetadataExtensions interface HRESULT DeckLinkFrame::GetInt(BMDDeckLinkFrameMetadataID metadataID, int64_t* value) { + if (log_level >= LOG_LEVEL_DEBUG2) { + array fourcc{}; + copy(reinterpret_cast(&metadataID), reinterpret_cast(&metadataID) + sizeof metadataID, fourcc.data()); + LOG(LOG_LEVEL_DEBUG2) << MOD_NAME << "DecklLinkFrame GetInt " << fourcc.data() << "\n"; + } switch (metadataID) { case bmdDeckLinkFrameMetadataHDRElectroOpticalTransferFunc: