Data Structures | Macros | Functions | Variables
vf_dblur.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  DBlurContext


#define OFFSET(x)   offsetof(DBlurContext, x)
#define f(n, m)   (dst[(n) * width + (m)])


static int filter_horizontally (AVFilterContext *ctx, int width, int height)
static void diriir2d (AVFilterContext *ctx, int plane)
static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static void set_params (DBlurContext *s, float angle, float r)
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
static av_cold void uninit (AVFilterContext *ctx)


static const AVOption dblur_options []
static const AVFilterPad dblur_inputs []
static const AVFilterPad dblur_outputs []
AVFilter ff_vf_dblur

Macro Definition Documentation

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

Definition at line 46 of file vf_dblur.c.

Definition at line 47 of file vf_dblur.c.

#define f (   n,
)    (dst[(n) * width + (m)])

Definition at line 58 of file vf_dblur.c.

Referenced by filter_horizontally(), and set_params().

Function Documentation

static int filter_horizontally ( AVFilterContext ctx,
int  width,
int  height 

Definition at line 60 of file vf_dblur.c.

Referenced by diriir2d().

static void diriir2d ( AVFilterContext ctx,
int  plane 

Definition at line 107 of file vf_dblur.c.

Referenced by filter_frame().

static int query_formats ( AVFilterContext ctx)

Definition at line 116 of file vf_dblur.c.

static int config_input ( AVFilterLink inlink)

Definition at line 143 of file vf_dblur.c.

static void set_params ( DBlurContext s,
float  angle,
float  r 

Definition at line 163 of file vf_dblur.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 187 of file vf_dblur.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 271 of file vf_dblur.c.

Variable Documentation

const AVOption dblur_options[]
Initial value:
= {
{ "angle", "set angle", OFFSET(angle), AV_OPT_TYPE_FLOAT, {.dbl=45}, 0.0, 360, FLAGS },
{ "radius", "set radius", OFFSET(radius), AV_OPT_TYPE_FLOAT, {.dbl=5}, 1, 8192, FLAGS },
{ "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF, FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_dblur.c:47
static const struct @323 planes[]
#define OFFSET(x)
Definition: vf_dblur.c:46

Definition at line 49 of file vf_dblur.c.

const AVFilterPad dblur_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_dblur.c:187
static int config_input(AVFilterLink *inlink)
Definition: vf_dblur.c:143

Definition at line 278 of file vf_dblur.c.

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

Definition at line 288 of file vf_dblur.c.

AVFilter ff_vf_dblur
Initial value:
= {
.name = "dblur",
.description = NULL_IF_CONFIG_SMALL("Apply Directional Blur filter."),
.priv_size = sizeof(DBlurContext),
.priv_class = &dblur_class,
static const AVFilterPad dblur_outputs[]
Definition: vf_dblur.c:288
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:126
static const AVFilterPad dblur_inputs[]
Definition: vf_dblur.c:278
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
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:885
static int query_formats(AVFilterContext *ctx)
Definition: vf_dblur.c:116
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_dblur.c:271
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:560
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_afftdn.c:1374

Definition at line 296 of file vf_dblur.c.