FFmpeg
4.0
|
Shape Adaptive Blur filter, ported from MPlayer libmpcodecs/vf_sab.c. More...
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libswscale/swscale.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | FilterParam |
struct | SabContext |
Macros | |
#define | COLOR_DIFF_COEFF_SIZE 512 |
#define | RADIUS_MIN 0.1 |
#define | RADIUS_MAX 4.0 |
#define | PRE_FILTER_RADIUS_MIN 0.1 |
#define | PRE_FILTER_RADIUS_MAX 2.0 |
#define | STRENGTH_MIN 0.1 |
#define | STRENGTH_MAX 100.0 |
#define | OFFSET(x) offsetof(SabContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | NB_PLANES 4 |
#define | UPDATE_FACTOR |
Functions | |
static int | query_formats (AVFilterContext *ctx) |
AVFILTER_DEFINE_CLASS (sab) | |
static av_cold int | init (AVFilterContext *ctx) |
static void | close_filter_param (FilterParam *f) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | open_filter_param (FilterParam *f, int width, int height, unsigned int sws_flags) |
static int | config_props (AVFilterLink *inlink) |
static void | blur (uint8_t *dst, const int dst_linesize, const uint8_t *src, const int src_linesize, const int w, const int h, FilterParam *fp) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *inpic) |
Variables | |
static const AVOption | sab_options [] |
static const AVFilterPad | sab_inputs [] |
static const AVFilterPad | sab_outputs [] |
AVFilter | ff_vf_sab |
Shape Adaptive Blur filter, ported from MPlayer libmpcodecs/vf_sab.c.
Definition in file vf_sab.c.
#define COLOR_DIFF_COEFF_SIZE 512 |
Definition at line 45 of file vf_sab.c.
Referenced by open_filter_param().
#define OFFSET | ( | x | ) | offsetof(SabContext, x) |
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define UPDATE_FACTOR |
Referenced by blur().
|
static |
AVFILTER_DEFINE_CLASS | ( | sab | ) |
|
static |
|
static |
Definition at line 131 of file vf_sab.c.
Referenced by config_props(), and uninit().
|
static |
|
static |
Definition at line 149 of file vf_sab.c.
Referenced by config_props().
|
static |
|
static |
Definition at line 224 of file vf_sab.c.
Referenced by filter_frame().
|
static |
|
static |
|
static |
|
static |
AVFilter ff_vf_sab |