avdevice/decklink: add sqd configuration option

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang
2021-08-09 08:15:02 +08:00
parent b923bfc679
commit 5f3df7afa6
5 changed files with 18 additions and 1 deletions

View File

@@ -221,6 +221,13 @@ int ff_decklink_set_configs(AVFormatContext *avctx,
av_log(avctx, AV_LOG_WARNING, "Setting link configuration failed.\n");
else
av_log(avctx, AV_LOG_VERBOSE, "Successfully set link configuration: 0x%x.\n", ctx->link);
if (ctx->link == bmdLinkConfigurationQuadLink && cctx->sqd >= 0) {
res = ctx->cfg->SetFlag(bmdDeckLinkConfigQuadLinkSDIVideoOutputSquareDivisionSplit, cctx->sqd);
if (res != S_OK)
av_log(avctx, AV_LOG_WARNING, "Setting SquareDivisionSplit failed.\n");
else
av_log(avctx, AV_LOG_VERBOSE, "Successfully set SquareDivisionSplit.\n");
}
}
return 0;