FFmpeg
 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
 

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 int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
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 request_frame (AVFilterLink *outlink)
 
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

#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 int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 61 of file vf_mergeplanes.c.

Referenced by init().

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 67 of file vf_mergeplanes.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 115 of file vf_mergeplanes.c.

static int process_frame ( FFFrameSync fs)
static

Definition at line 142 of file vf_mergeplanes.c.

Referenced by config_output().

static int config_output ( AVFilterLink outlink)
static

Definition at line 173 of file vf_mergeplanes.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 279 of file vf_mergeplanes.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 285 of file vf_mergeplanes.c.

Variable Documentation

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:189

Definition at line 53 of file vf_mergeplanes.c.

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

Definition at line 296 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)
#define AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
Definition: avfilter.h:105
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:176
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static int flags
Definition: cpu.c:47
static const AVFilterPad mergeplanes_outputs[]

Definition at line 306 of file vf_mergeplanes.c.