FFmpeg  4.0
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
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (mergeplanes)
 
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)
 

Variables

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

Macro Definition Documentation

◆ OFFSET

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

Definition at line 51 of file vf_mergeplanes.c.

◆ FLAGS

Definition at line 52 of file vf_mergeplanes.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( mergeplanes  )

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 61 of file vf_mergeplanes.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 108 of file vf_mergeplanes.c.

◆ process_frame()

static int process_frame ( FFFrameSync fs)
static

Definition at line 136 of file vf_mergeplanes.c.

Referenced by config_output().

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 167 of file vf_mergeplanes.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 273 of file vf_mergeplanes.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 279 of file vf_mergeplanes.c.

Variable Documentation

◆ mergeplanes_options

const AVOption mergeplanes_options[]
static
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:173

Definition at line 53 of file vf_mergeplanes.c.

◆ mergeplanes_outputs

const AVFilterPad mergeplanes_outputs[]
static
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.

◆ ff_vf_mergeplanes

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)
#define AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
Definition: avfilter.h:105
static int flags
Definition: log.c:55
static av_cold void uninit(AVFilterContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
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
static const AVFilterPad mergeplanes_outputs[]

Definition at line 299 of file vf_mergeplanes.c.