aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/decklink_enc_c.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-08-09 07:43:34 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-08-16 10:00:39 +0800
commitb923bfc679358fe109ca66b6ddf9d08ad0e19b7e (patch)
tree95b84ce53f03e63a8897ab95231eb38c16a5aa13 /libavdevice/decklink_enc_c.c
parentca788d184cbf0a907ca7db4e4dad9975a91a5839 (diff)
downloadffmpeg-b923bfc679358fe109ca66b6ddf9d08ad0e19b7e.tar.gz
avdevice/decklink: add link configuration option
Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavdevice/decklink_enc_c.c')
-rw-r--r--libavdevice/decklink_enc_c.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavdevice/decklink_enc_c.c b/libavdevice/decklink_enc_c.c
index 828cf5db65..4d191d83ac 100644
--- a/libavdevice/decklink_enc_c.c
+++ b/libavdevice/decklink_enc_c.c
@@ -35,6 +35,11 @@ static const AVOption options[] = {
{ "unset" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 0 }, 0, 0, ENC, "duplex_mode"},
{ "half" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 1 }, 0, 0, ENC, "duplex_mode"},
{ "full" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 2 }, 0, 0, ENC, "duplex_mode"},
+ { "link" , "single/dual/quad SDI link configuration", OFFSET(link), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 3, ENC, "link"},
+ { "unset" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 0 }, 0, 0, ENC, "link"},
+ { "single" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 1 }, 0, 0, ENC, "link"},
+ { "dual" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 2 }, 0, 0, ENC, "link"},
+ { "quad" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 3 }, 0, 0, ENC, "link"},
{ "timing_offset", "genlock timing pixel offset", OFFSET(timing_offset), AV_OPT_TYPE_INT, { .i64 = INT_MIN }, INT_MIN, INT_MAX, ENC, "timing_offset"},
{ "unset" , NULL , 0 , AV_OPT_TYPE_CONST, { .i64 = INT_MIN }, 0, 0, ENC, "timing_offset"},
{ NULL },