FFmpeg
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 []
 
const 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 }
}

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

Definition at line 290 of file vf_mergeplanes.c.

◆ ff_vf_mergeplanes

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

Definition at line 299 of file vf_mergeplanes.c.

MergePlanesContext
Definition: vf_mergeplanes.c:37
AVFILTER_FLAG_DYNAMIC_INPUTS
#define AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
Definition: avfilter.h:106
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:108
inputs
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
Definition: filter_design.txt:243
OFFSET
#define OFFSET(x)
Definition: vf_mergeplanes.c:51
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_mergeplanes.c:167
mergeplanes_outputs
static const AVFilterPad mergeplanes_outputs[]
Definition: vf_mergeplanes.c:290
activate
static int activate(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:273
NULL
#define NULL
Definition: coverity.c:32
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
FLAGS
#define FLAGS
Definition: vf_mergeplanes.c:52
AV_PIX_FMT_YUVA444P
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
Definition: pixfmt.h:167
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:61
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
AV_OPT_TYPE_PIXEL_FMT
@ AV_OPT_TYPE_PIXEL_FMT
Definition: opt.h:236
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_mergeplanes.c:279