FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_stack.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/imgutils.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  StackContext
 

Macros

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

Functions

static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static av_cold int init (AVFilterContext *ctx)
 
static int process_frame (FFFrameSync *fs)
 
static int config_output (AVFilterLink *outlink)
 
static int request_frame (AVFilterLink *outlink)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption stack_options []
 
static const AVFilterPad outputs []
 

Macro Definition Documentation

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

Definition at line 227 of file vf_stack.c.

Definition at line 228 of file vf_stack.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 44 of file vf_stack.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 61 of file vf_stack.c.

Referenced by init().

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 67 of file vf_stack.c.

static int process_frame ( FFFrameSync fs)
static

Definition at line 97 of file vf_stack.c.

Referenced by config_output().

static int config_output ( AVFilterLink outlink)
static

Definition at line 151 of file vf_stack.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 209 of file vf_stack.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 215 of file vf_stack.c.

Variable Documentation

const AVOption stack_options[]
static
Initial value:
= {
{ "inputs", "set number of inputs", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64=2}, 2, INT_MAX, .flags = FLAGS },
{ "shortest", "force termination when the shortest input terminates", OFFSET(shortest), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, .flags = FLAGS },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_stack.c:228
#define OFFSET(x)
Definition: vf_stack.c:227

Definition at line 229 of file vf_stack.c.

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

Definition at line 235 of file vf_stack.c.