29 #define OFFSET(x) offsetof(struct decklink_cctx, x)
30 #define DEC AV_OPT_FLAG_DECODING_PARAM
37 {
"raw_format",
"pixel format to be returned by the card when capturing" ,
OFFSET(
raw_format),
AV_OPT_TYPE_INT, { .i64 =
MKBETAG(
'2',
'v',
'u',
'y')}, 0, UINT_MAX,
DEC,
"raw_format" },
38 {
"uyvy422",
NULL, 0,
AV_OPT_TYPE_CONST, { .i64 =
MKBETAG(
'2',
'v',
'u',
'y') }, 0, 0,
DEC,
"raw_format"},
39 {
"yuv422p10",
NULL, 0,
AV_OPT_TYPE_CONST, { .i64 =
MKBETAG(
'v',
'2',
'1',
'0') }, 0, 0,
DEC,
"raw_format"},
41 {
"bgra",
NULL, 0,
AV_OPT_TYPE_CONST, { .i64 =
MKBETAG(
'B',
'G',
'R',
'A') }, 0, 0,
DEC,
"raw_format"},
42 {
"rgb10",
NULL, 0,
AV_OPT_TYPE_CONST, { .i64 =
MKBETAG(
'r',
'2',
'1',
'0') }, 0, 0,
DEC,
"raw_format"},
#define LIBAVUTIL_VERSION_INT
static void list_formats(AVFormatContext *ctx, int type)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
DecklinkPtsSource audio_pts_source
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass decklink_demuxer_class
av_cold int ff_decklink_read_close(AVFormatContext *avctx)
static const AVOption options[]
AVInputFormat ff_decklink_demuxer
int ff_decklink_list_input_devices(AVFormatContext *avctx, struct AVDeviceInfoList *device_list)
Describe the class of an AVClass context structure.
int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)
#define MKBETAG(a, b, c, d)
av_cold int ff_decklink_read_header(AVFormatContext *avctx)
DecklinkPtsSource video_pts_source