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

Macros

#define OFFSET(x)   offsetof(AverageBlurContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define HORIZONTAL_FILTER(name, type)
 
#define VERTICAL_FILTER(name, type)
 

Functions

 AVFILTER_DEFINE_CLASS (avgblur)
 
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 int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

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,
  type 
)

Definition at line 67 of file vf_avgblur.c.

#define VERTICAL_FILTER (   name,
  type 
)

Definition at line 120 of file vf_avgblur.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( avgblur  )
static int config_input ( AVFilterLink inlink)
static

Definition at line 175 of file vf_avgblur.c.

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

Definition at line 207 of file vf_avgblur.c.

Referenced by filter_frame().

static int query_formats ( AVFilterContext ctx)
static

Definition at line 225 of file vf_avgblur.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 251 of file vf_avgblur.c.

static int process_command ( AVFilterContext ctx,
const char *  cmd,
const char *  args,
char *  res,
int  res_len,
int  flags 
)
static

Definition at line 290 of file vf_avgblur.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 306 of file vf_avgblur.c.

Variable Documentation

const AVOption avgblur_options[]
static
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
#define FLAGS
Definition: vf_avgblur.c:49
#define OFFSET(x)
Definition: vf_avgblur.c:48
static const struct @317 planes[]

Definition at line 51 of file vf_avgblur.c.

const AVFilterPad avgblur_inputs[]
static
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:251
static int config_input(AVFilterLink *inlink)
Definition: vf_avgblur.c:175

Definition at line 313 of file vf_avgblur.c.

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

Definition at line 323 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
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: vf_avgblur.c:290
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:116
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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
#define flags(name, subs,...)
Definition: cbs_av1.c:561
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_avgblur.c:306
static const AVFilterPad avgblur_outputs[]
Definition: vf_avgblur.c:323
static const AVFilterPad avgblur_inputs[]
Definition: vf_avgblur.c:313

Definition at line 331 of file vf_avgblur.c.