Deprecate the option 'draw_bars' in favor of the new option 'signal_loss_action',
which controls the behavior when the input signal is not available
(including the behavior previously available through draw_bars).
The default behavior remains unchanged to be backwards compatible.
The new option is more flexible for extending now and in the future.
The new value 'repeat' repeats the last video frame.
This is useful for very short dropouts and was not available before.
Signed-off-by: Michael Riedl <michael.riedl@nativewaves.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
release/7.1
Michael Riedl10 months agocommitted byMarton Balint
{"audio_depth","audio bitdepth (16 or 32)",OFFSET(audio_depth),AV_OPT_TYPE_INT,{.i64=16},16,32,DEC},
{"decklink_copyts","copy timestamps, do not remove the initial offset",OFFSET(copyts),AV_OPT_TYPE_BOOL,{.i64=0},0,1,DEC},
{"timestamp_align","capture start time alignment (in seconds)",OFFSET(timestamp_align),AV_OPT_TYPE_DURATION,{.i64=0},0,INT_MAX,DEC},
{"wait_for_tc","drop frames till a frame with timecode is received. TC format must be set",OFFSET(wait_for_tc),AV_OPT_TYPE_BOOL,{.i64=0},0,1,DEC},
{"signal_loss_action","action on signal loss",OFFSET(signal_loss_action),AV_OPT_TYPE_INT,{.i64=SIGNAL_LOSS_BARS},SIGNAL_LOSS_NONE,SIGNAL_LOSS_BARS,DEC,.unit="signal_loss_action"},
{"none","do not do anything (usually leads to black frames)",0,AV_OPT_TYPE_CONST,{.i64=SIGNAL_LOSS_NONE},0,0,DEC,.unit="signal_loss_action"},
{"bars","draw color bars (only supported for 8-bit signals)",0,AV_OPT_TYPE_CONST,{.i64=SIGNAL_LOSS_BARS},0,0,DEC,.unit="signal_loss_action"},
{"repeat","repeat the last video frame",0,AV_OPT_TYPE_CONST,{.i64=SIGNAL_LOSS_REPEAT},0,0,DEC,.unit="signal_loss_action"},