FFmpeg
Data Structures | Macros | Functions | Variables
vf_stack.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "framesync.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  StackItem
 
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 av_cold int init (AVFilterContext *ctx)
 
static int process_slice (AVFilterContext *ctx, void *arg, int job, int nb_jobs)
 
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_EXT (stack, "(h|v)stack", stack_options)
 

Variables

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

Macro Definition Documentation

◆ OFFSET

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

Definition at line 380 of file vf_stack.c.

◆ FLAGS

Definition at line 381 of file vf_stack.c.

Function Documentation

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 61 of file vf_stack.c.

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 75 of file vf_stack.c.

◆ process_slice()

static int process_slice ( AVFilterContext ctx,
void *  arg,
int  job,
int  nb_jobs 
)
static

Definition at line 128 of file vf_stack.c.

Referenced by process_frame().

◆ process_frame()

static int process_frame ( FFFrameSync fs)
static

Definition at line 151 of file vf_stack.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 181 of file vf_stack.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 365 of file vf_stack.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 374 of file vf_stack.c.

◆ AVFILTER_DEFINE_CLASS_EXT()

AVFILTER_DEFINE_CLASS_EXT ( stack  ,
"(h|v)stack"  ,
stack_options   
)

Variable Documentation

◆ stack_options

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 },
}

Definition at line 382 of file vf_stack.c.

◆ outputs

const AVFilterPad outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
}

Definition at line 390 of file vf_stack.c.

OFFSET
#define OFFSET(x)
Definition: vf_stack.c:380
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_stack.c:181
NULL
#define NULL
Definition: coverity.c:32
FLAGS
#define FLAGS
Definition: vf_stack.c:381
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:224
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_OPT_TYPE_BOOL
@ AV_OPT_TYPE_BOOL
Definition: opt.h:241