All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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:105
static av_cold void uninit(AVFilterContext *ctx)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int activate(AVFilterContext *ctx)
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
#define flags(name, subs,...)
Definition: cbs_av1.c:596
static const AVFilterPad mergeplanes_outputs[]

Definition at line 299 of file vf_mergeplanes.c.