FFmpeg
Data Structures | Macros | Functions
f_interleave.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "filters.h"
#include "internal.h"
#include "audio.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  InterleaveContext
 

Macros

#define DURATION_LONGEST   0
 
#define DURATION_SHORTEST   1
 
#define DURATION_FIRST   2
 
#define OFFSET(x)   offsetof(InterleaveContext, x)
 
#define DEFINE_OPTIONS(filt_name, flags_)
 

Functions

static int activate (AVFilterContext *ctx)
 
static av_cold int init (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 

Detailed Description

audio and video interleaver

Definition in file f_interleave.c.

Macro Definition Documentation

◆ DURATION_LONGEST

#define DURATION_LONGEST   0

Definition at line 44 of file f_interleave.c.

◆ DURATION_SHORTEST

#define DURATION_SHORTEST   1

Definition at line 45 of file f_interleave.c.

◆ DURATION_FIRST

#define DURATION_FIRST   2

Definition at line 46 of file f_interleave.c.

◆ OFFSET

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

Definition at line 48 of file f_interleave.c.

◆ DEFINE_OPTIONS

#define DEFINE_OPTIONS (   filt_name,
  flags_ 
)
Value:
static const AVOption filt_name##_options[] = { \
{ "nb_inputs", "set number of inputs", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64 = 2}, 1, INT_MAX, .flags = flags_ }, \
{ "n", "set number of inputs", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64 = 2}, 1, INT_MAX, .flags = flags_ }, \
{ "duration", "how to determine the end-of-stream", \
OFFSET(duration_mode), AV_OPT_TYPE_INT, { .i64 = DURATION_LONGEST }, 0, 2, flags_, "duration" }, \
{ "longest", "Duration of longest input", 0, AV_OPT_TYPE_CONST, { .i64 = DURATION_LONGEST }, 0, 0, flags_, "duration" }, \
{ "shortest", "Duration of shortest input", 0, AV_OPT_TYPE_CONST, { .i64 = DURATION_SHORTEST }, 0, 0, flags_, "duration" }, \
{ "first", "Duration of first input", 0, AV_OPT_TYPE_CONST, { .i64 = DURATION_FIRST }, 0, 0, flags_, "duration" }, \
{ NULL } \
}

Definition at line 50 of file f_interleave.c.

Function Documentation

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 62 of file f_interleave.c.

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 146 of file f_interleave.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 177 of file f_interleave.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 183 of file f_interleave.c.

AVOption
AVOption.
Definition: opt.h:246
OFFSET
#define OFFSET(x)
Definition: f_interleave.c:48
NULL
#define NULL
Definition: coverity.c:32
DURATION_SHORTEST
#define DURATION_SHORTEST
Definition: f_interleave.c:45
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:223
DURATION_FIRST
#define DURATION_FIRST
Definition: f_interleave.c:46
DURATION_LONGEST
#define DURATION_LONGEST
Definition: f_interleave.c:44
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Definition: opt.h:232