Data Structures | Macros | Functions | Variables
vf_mergeplanes.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
#include "framesync.h"

Go to the source code of this file.

Data Structures

struct  InputParam
struct  MergePlanesContext


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


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


static const AVOption mergeplanes_options []
static const AVFilterPad mergeplanes_outputs []
AVFilter ff_vf_mergeplanes

Macro Definition Documentation

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

Definition at line 51 of file vf_mergeplanes.c.

Definition at line 52 of file vf_mergeplanes.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( mergeplanes  )
static av_cold int init ( AVFilterContext ctx)

Definition at line 61 of file vf_mergeplanes.c.

static int query_formats ( AVFilterContext ctx)

Definition at line 108 of file vf_mergeplanes.c.

static int process_frame ( FFFrameSync fs)

Definition at line 136 of file vf_mergeplanes.c.

Referenced by config_output().

static int config_output ( AVFilterLink outlink)

Definition at line 167 of file vf_mergeplanes.c.

static int activate ( AVFilterContext ctx)

Definition at line 273 of file vf_mergeplanes.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 279 of file vf_mergeplanes.c.

Variable Documentation

const AVOption mergeplanes_options[]
Initial value:
= {
{ "mapping", "set input to output plane mapping", OFFSET(mapping), AV_OPT_TYPE_INT, {.i64=0}, 0, 0x33333333, FLAGS },
{ "format", "set output pixel format", OFFSET(out_fmt), AV_OPT_TYPE_PIXEL_FMT, {.i64=AV_PIX_FMT_YUVA444P}, 0, INT_MAX, .flags=FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define FLAGS
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:177

Definition at line 53 of file vf_mergeplanes.c.

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

Definition at line 290 of file vf_mergeplanes.c.

AVFilter ff_vf_mergeplanes
Initial value:
= {
.name = "mergeplanes",
.description = NULL_IF_CONFIG_SMALL("Merge planes."),
.priv_size = sizeof(MergePlanesContext),
.priv_class = &mergeplanes_class,
.init = init,
#define NULL
Definition: coverity.c:32
static av_cold int init(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx)
The number of the filter inputs is not determined just by AVFilter.inputs.
Definition: avfilter.h:106
static av_cold void uninit(AVFilterContext *ctx)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static int activate(AVFilterContext *ctx)
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
#define flags(name, subs,...)
Definition: cbs_av1.c:560
static const AVFilterPad mergeplanes_outputs[]

Definition at line 299 of file vf_mergeplanes.c.