From a986431bd52cb10e342d7b093dc433388f1f2fa9 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 10 Oct 2023 14:19:20 +0200 Subject: [PATCH] DeckLink disp.: print supp pixfmts --- src/video_display/decklink.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/video_display/decklink.cpp b/src/video_display/decklink.cpp index 23d56881e..ea5ad829c 100644 --- a/src/video_display/decklink.cpp +++ b/src/video_display/decklink.cpp @@ -2142,6 +2142,13 @@ static void print_output_modes (IDeckLink* deckLink) displayModeNumber++; } + color_printf("\n\tsupported pixel formats:" TERM_BOLD); + for (auto & c : uv_to_bmd_codec_map) { + if (decklink_display_supports_codec(deckLinkOutput, c.second)) { + printf(" %s", get_codec_name(c.first)); + } + } + color_printf(TERM_RESET "\n\n"); bail: // Ensure that the interfaces we obtained are released to prevent a memory leak