FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
decklink_dec_c.c File Reference
#include "libavformat/avformat.h"
#include "libavutil/opt.h"
#include "decklink_common_c.h"
#include "decklink_dec.h"

Go to the source code of this file.

Macros

#define OFFSET(x)   offsetof(struct decklink_cctx, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Variables

static const AVOption options []
 
static const AVClass decklink_demuxer_class
 
AVInputFormat ff_decklink_demuxer
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(struct decklink_cctx, x)

Definition at line 28 of file decklink_dec_c.c.

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 29 of file decklink_dec_c.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "list_devices", "list available devices" , OFFSET(list_devices), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
{ "list_formats", "list supported formats" , OFFSET(list_formats), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
{ "bm_v210", "v210 10 bit per channel" , OFFSET(v210), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
{ "teletext_lines", "teletext lines bitmask", OFFSET(teletext_lines), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, 0x7ffffffffLL, DEC, "teletext_lines"},
{ "standard", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = 0x7fff9fffeLL}, 0, 0, DEC, "teletext_lines"},
{ "all", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = 0x7ffffffffLL}, 0, 0, DEC, "teletext_lines"},
{ "channels", "number of audio channels", OFFSET(audio_channels), AV_OPT_TYPE_INT , { .i64 = 2 }, 2, 16, DEC },
{ NULL },
}
#define NULL
Definition: coverity.c:32
int audio_channels
Definition: rtp.c:40
static void list_formats(AVFormatContext *ctx, int type)
Definition: v4l2.c:269

Definition at line 31 of file decklink_dec_c.c.

const AVClass decklink_demuxer_class
static
Initial value:
= {
.class_name = "Blackmagic DeckLink demuxer",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
av_default_item_name

Definition at line 42 of file decklink_dec_c.c.

AVInputFormat ff_decklink_demuxer
Initial value:
= {
.name = "decklink",
.long_name = NULL_IF_CONFIG_SMALL("Blackmagic DeckLink input"),
.flags = AVFMT_NOFILE | AVFMT_RAWPICTURE,
.priv_class = &decklink_demuxer_class,
.priv_data_size = sizeof(struct decklink_cctx),
.read_packet = ff_decklink_read_packet,
.read_close = ff_decklink_read_close,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:638
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:477

Definition at line 50 of file decklink_dec_c.c.