FFmpeg
|
#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 | |
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 enum AVPixelFormat | pix_fmts [] |
static const AVOption | sab_options [] |
static const AVFilterPad | sab_inputs [] |
static const AVFilterPad | sab_outputs [] |
const AVFilter | ff_vf_sab |
Shape Adaptive Blur filter, ported from MPlayer libmpcodecs/vf_sab.c
Definition in file vf_sab.c.
#define OFFSET | ( | x | ) | offsetof(SabContext, x) |
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define UPDATE_FACTOR |
AVFILTER_DEFINE_CLASS | ( | sab | ) |
|
static |
|
static |
Definition at line 124 of file vf_sab.c.
Referenced by config_props(), and uninit().
|
static |
|
static |
Definition at line 142 of file vf_sab.c.
Referenced by config_props().
|
static |
|
static |
Definition at line 217 of file vf_sab.c.
Referenced by filter_frame().
|
static |
|
static |
|
static |
|
static |
|
static |
const AVFilter ff_vf_sab |