29 #define OFFSET(x) offsetof(struct decklink_cctx, x)
30 #define DEC AV_OPT_FLAG_DECODING_PARAM
36 {
"raw_format",
"pixel format to be returned by the card when capturing" ,
OFFSET(raw_format),
AV_OPT_TYPE_INT, { .i64 = 0}, 0, 5,
DEC,
"raw_format" },
44 {
"teletext_lines",
"teletext lines bitmask",
OFFSET(teletext_lines),
AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, 0x7ffffffffLL,
DEC,
"teletext_lines"},
61 #if BLACKMAGIC_DECKLINK_API_VERSION >= 0x0b000000
88 {
"queue_size",
"input queue buffer size",
OFFSET(queue_size),
AV_OPT_TYPE_INT64, { .i64 = (1024 * 1024 * 1024)}, 0, INT64_MAX,
DEC },
90 {
"decklink_copyts",
"copy timestamps, do not remove the initial offset",
OFFSET(copyts),
AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1,
DEC },
91 {
"timestamp_align",
"capture start time alignment (in seconds)",
OFFSET(timestamp_align),
AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT_MAX,
DEC },
92 {
"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 },
av_cold int ff_decklink_read_close(AVFormatContext *avctx)
int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)
int ff_decklink_list_input_devices(AVFormatContext *avctx, struct AVDeviceInfoList *device_list)
av_cold int ff_decklink_read_header(AVFormatContext *avctx)
AVInputFormat ff_decklink_demuxer
static const AVOption options[]
static const AVClass decklink_demuxer_class
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_INPUT
#define AV_OPT_FLAG_DEPRECATED
set if option is deprecated, users should refer to AVOption.help text for more information
Describe the class of an AVClass context structure.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static void list_formats(AVFormatContext *ctx, int type)