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 45 of file vf_dblur.c.

Definition at line 46 of file vf_dblur.c.

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

Definition at line 57 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 59 of file vf_dblur.c.

Referenced by diriir2d().

static void diriir2d ( AVFilterContext ctx,
int  plane 

Definition at line 106 of file vf_dblur.c.

Referenced by filter_frame().

static int query_formats ( AVFilterContext ctx)

Definition at line 115 of file vf_dblur.c.

static int config_input ( AVFilterLink inlink)

Definition at line 142 of file vf_dblur.c.

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

Definition at line 162 of file vf_dblur.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 186 of file vf_dblur.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 270 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
static const struct @322 planes[]
#define FLAGS
Definition: vf_dblur.c:46
#define OFFSET(x)
Definition: vf_dblur.c:45

Definition at line 48 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:186
static int config_input(AVFilterLink *inlink)
Definition: vf_dblur.c:142

Definition at line 277 of file vf_dblur.c.

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

Definition at line 287 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:287
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:277
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
static int query_formats(AVFilterContext *ctx)
Definition: vf_dblur.c:115
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
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_dblur.c:270
#define flags(name, subs,...)
Definition: cbs_av1.c:561

Definition at line 295 of file vf_dblur.c.