FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_mix.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "framesync.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  MixContext
 

Macros

#define OFFSET(x)   offsetof(MixContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
 

Functions

static int query_formats (AVFilterContext *ctx)
 
static av_cold int init (AVFilterContext *ctx)
 
static int process_frame (FFFrameSync *fs)
 
static int config_output (AVFilterLink *outlink)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int activate (AVFilterContext *ctx)
 
 AVFILTER_DEFINE_CLASS (mix)
 

Variables

static const AVOption mix_options []
 
static const AVFilterPad outputs []
 
AVFilter ff_vf_mix
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(MixContext, x)

Definition at line 248 of file vf_mix.c.

Definition at line 249 of file vf_mix.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 51 of file vf_mix.c.

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 68 of file vf_mix.c.

static int process_frame ( FFFrameSync fs)
static

Definition at line 110 of file vf_mix.c.

Referenced by config_output().

static int config_output ( AVFilterLink outlink)
static

Definition at line 174 of file vf_mix.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 229 of file vf_mix.c.

static int activate ( AVFilterContext ctx)
static

Definition at line 242 of file vf_mix.c.

AVFILTER_DEFINE_CLASS ( mix  )

Variable Documentation

const AVOption mix_options[]
static
Initial value:
= {
{ "inputs", "set number of inputs", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64=2}, 2, INT_MAX, .flags = FLAGS },
{ "weights", "set weight for each input", OFFSET(weights_str), AV_OPT_TYPE_STRING, {.str="1 1"}, 0, 0, .flags = FLAGS },
{ "duration", "how to determine end of stream", OFFSET(duration), AV_OPT_TYPE_INT, {.i64=0}, 0, 2, .flags = FLAGS, "duration" },
{ "longest", "Duration of longest input", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, FLAGS, "duration" },
{ "shortest", "Duration of shortest input", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, FLAGS, "duration" },
{ "first", "Duration of first input", 0, AV_OPT_TYPE_CONST, {.i64=2}, 0, 0, FLAGS, "duration" },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_mix.c:249
int64_t duration
Definition: movenc.c:63
#define OFFSET(x)
Definition: vf_mix.c:248

Definition at line 251 of file vf_mix.c.

const AVFilterPad outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_output(AVFilterLink *outlink)
Definition: vf_mix.c:174

Definition at line 261 of file vf_mix.c.

AVFilter ff_vf_mix
Initial value:
= {
.name = "mix",
.description = NULL_IF_CONFIG_SMALL("Mix video inputs."),
.priv_size = sizeof(MixContext),
.priv_class = &mix_class,
.init = init,
}
#define AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
Definition: avfilter.h:105
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_mix.c:229
static int activate(AVFilterContext *ctx)
Definition: vf_mix.c:242
static int flags
Definition: log.c:55
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int query_formats(AVFilterContext *ctx)
Definition: vf_mix.c:51
static av_cold int init(AVFilterContext *ctx)
Definition: vf_mix.c:68
static const AVFilterPad outputs[]
Definition: vf_mix.c:261

Definition at line 272 of file vf_mix.c.