29#define OFFSET(x) offsetof(struct decklink_cctx, x)
30#define ENC AV_OPT_FLAG_ENCODING_PARAM
35 {
"vanc_queue_size",
"VANC queue buffer size",
OFFSET(vanc_queue_size),
AV_OPT_TYPE_INT64, { .i64 = (1024 * 1024)}, 0, INT64_MAX,
ENC },
36#if BLACKMAGIC_DECKLINK_API_VERSION >= 0x0b000000
37 {
"duplex_mode" ,
"duplex mode" ,
OFFSET(duplex_mode ),
AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 5,
ENC, .unit =
"duplex_mode"},
39 {
"duplex_mode" ,
"duplex mode" ,
OFFSET(duplex_mode ),
AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 2,
ENC, .unit =
"duplex_mode"},
44#if BLACKMAGIC_DECKLINK_API_VERSION >= 0x0b000000
50 {
"link" ,
"single/dual/quad SDI link configuration",
OFFSET(link),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 3,
ENC, .unit =
"link"},
63 {
"timing_offset",
"genlock timing pixel offset",
OFFSET(timing_offset),
AV_OPT_TYPE_INT, { .i64 = INT_MIN }, INT_MIN, INT_MAX,
ENC, .unit =
"timing_offset"},
69 .class_name =
"Blackmagic DeckLink outdev",
const FFOutputFormat ff_decklink_muxer
av_cold int ff_decklink_write_header(AVFormatContext *avctx)
int ff_decklink_list_output_devices(AVFormatContext *avctx, struct AVDeviceInfoList *device_list)
av_cold int ff_decklink_write_trailer(AVFormatContext *avctx)
int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt)
static const AVClass decklink_muxer_class
static void write_header(FFV1Context *f)
#define AV_OPT_FLAG_DEPRECATED
Set if option is deprecated, users should refer to AVOption.help text for more information.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_CODEC_ID_WRAPPED_AVFRAME
Passthrough codec, AVFrames wrapped in AVPacket.
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
Describe the class of an AVClass context structure.
static void list_formats(AVFormatContext *ctx, int type)