Data Structures | Macros | Functions | Variables
vf_avgblur.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  AverageBlurContext
struct  ThreadData
 Used for passing data between threads. More...


#define OFFSET(x)   offsetof(AverageBlurContext, x)
#define HORIZONTAL_FILTER(name, type)
#define VERTICAL_FILTER(name, type)


static int config_input (AVFilterLink *inlink)
static void averageiir2d (AVFilterContext *ctx, AVFrame *in, AVFrame *out, int plane)
static int query_formats (AVFilterContext *ctx)
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
static av_cold void uninit (AVFilterContext *ctx)


static const AVOption avgblur_options []
static const AVFilterPad avgblur_inputs []
static const AVFilterPad avgblur_outputs []
AVFilter ff_vf_avgblur

Macro Definition Documentation

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

Definition at line 48 of file vf_avgblur.c.

Definition at line 49 of file vf_avgblur.c.

#define HORIZONTAL_FILTER (   name,

Definition at line 67 of file vf_avgblur.c.

#define VERTICAL_FILTER (   name,

Definition at line 120 of file vf_avgblur.c.

Function Documentation

static int config_input ( AVFilterLink inlink)

Definition at line 175 of file vf_avgblur.c.

static void averageiir2d ( AVFilterContext ctx,
AVFrame in,
AVFrame out,
int  plane 

Definition at line 207 of file vf_avgblur.c.

Referenced by filter_frame().

static int query_formats ( AVFilterContext ctx)

Definition at line 225 of file vf_avgblur.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 252 of file vf_avgblur.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 291 of file vf_avgblur.c.

Variable Documentation

const AVOption avgblur_options[]
Initial value:
= {
{ "sizeX", "set horizontal size", OFFSET(radius), AV_OPT_TYPE_INT, {.i64=1}, 1, 1024, FLAGS },
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF, FLAGS },
{ "sizeY", "set vertical size", OFFSET(radiusV), AV_OPT_TYPE_INT, {.i64=0}, 0, 1024, FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
static const struct @322 planes[]
#define FLAGS
Definition: vf_avgblur.c:49
#define OFFSET(x)
Definition: vf_avgblur.c:48

Definition at line 51 of file vf_avgblur.c.

const AVFilterPad avgblur_inputs[]
Initial value:
= {
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: vf_avgblur.c:252
static int config_input(AVFilterLink *inlink)
Definition: vf_avgblur.c:175

Definition at line 298 of file vf_avgblur.c.

const AVFilterPad avgblur_outputs[]
Initial value:
= {
.name = "default",
{ NULL }
#define NULL
Definition: coverity.c:32

Definition at line 308 of file vf_avgblur.c.

AVFilter ff_vf_avgblur
Initial value:
= {
.name = "avgblur",
.description = NULL_IF_CONFIG_SMALL("Apply Average Blur filter."),
.priv_size = sizeof(AverageBlurContext),
.priv_class = &avgblur_class,
static int query_formats(AVFilterContext *ctx)
Definition: vf_avgblur.c:225
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:126
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:117
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options...
Definition: avfilter.c:882
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:117
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
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_acrusher.c:336
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
#define flags(name, subs,...)
Definition: cbs_av1.c:561
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_avgblur.c:291
static const AVFilterPad avgblur_outputs[]
Definition: vf_avgblur.c:308
static const AVFilterPad avgblur_inputs[]
Definition: vf_avgblur.c:298

Definition at line 316 of file vf_avgblur.c.