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

Go to the source code of this file.

Macros

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

Variables

static const AVOption options []
 
static const AVClass decklink_muxer_class
 
AVOutputFormat ff_decklink_muxer
 

Macro Definition Documentation

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

Definition at line 28 of file decklink_enc_c.c.

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 29 of file decklink_enc_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, ENC },
{ "list_formats", "list supported formats" , OFFSET(list_formats), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, ENC },
{ "preroll" , "video preroll in seconds", OFFSET(preroll ), AV_OPT_TYPE_DOUBLE, { .dbl = 0.5 }, 0, 5, ENC },
{ "duplex_mode" , "duplex mode" , OFFSET(duplex_mode ), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 2, ENC, "duplex_mode"},
{ "unset" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 0 }, 0, 0, ENC, "duplex_mode"},
{ "half" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 1 }, 0, 0, ENC, "duplex_mode"},
{ "full" , NULL , 0 , AV_OPT_TYPE_CONST , { .i64 = 2 }, 0, 0, ENC, "duplex_mode"},
{ NULL },
}
#define NULL
Definition: coverity.c:32
static void list_formats(AVFormatContext *ctx, int type)
Definition: v4l2.c:271

Definition at line 30 of file decklink_enc_c.c.

const AVClass decklink_muxer_class
static
Initial value:
= {
.class_name = "Blackmagic DeckLink muxer",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191

Definition at line 41 of file decklink_enc_c.c.

AVOutputFormat ff_decklink_muxer
Initial value:
= {
.name = "decklink",
.long_name = NULL_IF_CONFIG_SMALL("Blackmagic DeckLink output"),
.audio_codec = AV_CODEC_ID_PCM_S16LE,
.subtitle_codec = AV_CODEC_ID_NONE,
.flags = AVFMT_NOFILE,
.get_device_list = ff_decklink_list_output_devices,
.priv_class = &decklink_muxer_class,
.priv_data_size = sizeof(struct decklink_cctx),
.write_packet = ff_decklink_write_packet,
.write_trailer = ff_decklink_write_trailer,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Passthrough codec, AVFrames wrapped in AVPacket.
Definition: avcodec.h:700
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:465
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:337

Definition at line 49 of file decklink_enc_c.c.