Skip to content

Commit e119f56

Browse files
committed
decklink: codec/connection listing in/out spec
Specify explictly that the supported input/output codec/connection is for input or output (it can differ for direction, see prev commit).
1 parent e7873a6 commit e119f56

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/blackmagic_common.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,8 @@ void
14471447
print_bmd_connections(IDeckLinkProfileAttributes *deckLinkAttributes,
14481448
BMDDeckLinkAttributeID id, const char *module_prefix)
14491449
{
1450-
col() << "\tsupported connetions:";
1450+
printf("\tsupported %s connetions:",
1451+
id == BMDDeckLinkVideoInputConnections ? "input" : "output");
14511452
int64_t connections = 0;
14521453
if (deckLinkAttributes->GetInt(id, &connections) != S_OK) {
14531454
log_msg(LOG_LEVEL_ERROR, "\n%sCould not get connections.\n\n",

src/video_capture/decklink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ vidcap_decklink_print_card_info(IDeckLink *deckLink, const char *query_prop_fcc)
490490
}
491491

492492
IDeckLinkInput *deckLinkInput = nullptr;
493-
color_printf("\n\tsupported pixel formats:" TERM_BOLD);
493+
color_printf("\n\tsupported input pixel formats:" TERM_BOLD);
494494
if ((deckLink->QueryInterface(IID_IDeckLinkInput,
495495
(void **) &deckLinkInput)) == S_OK) {
496496
for (auto &c : uv_to_bmd_codec_map) {

src/video_display/decklink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2247,7 +2247,7 @@ print_output_modes(IDeckLink *deckLink, const char *query_prop_fcc)
22472247

22482248
displayModeNumber++;
22492249
}
2250-
color_printf("\n\tsupported pixel formats:" TERM_BOLD);
2250+
color_printf("\n\tsupported output pixel formats:" TERM_BOLD);
22512251
for (auto & c : uv_to_bmd_codec_map) {
22522252
if (decklink_supports_codec(deckLinkOutput, c.second)) {
22532253
printf(" %s", get_codec_name(c.first));

0 commit comments

Comments
 (0)