|
FFmpeg
|
blur / sharpen filter, ported to FFmpeg from MPlayer libmpcodecs/unsharp.c. More...
#include "avfilter.h"#include "filters.h"#include "video.h"#include "libavutil/common.h"#include "libavutil/imgutils.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"Go to the source code of this file.
Data Structures | |
| struct | UnsharpFilterParam |
| struct | UnsharpContext |
| struct | ThreadData |
| Used for passing data between threads. More... | |
Macros | |
| #define | MIN_MATRIX_SIZE 3 |
| #define | MAX_MATRIX_SIZE 63 |
| #define | DEF_UNSHARP_SLICE_FUNC(name, nbits) |
| #define | MAX_SCALEBITS 25 |
| #define | SET_FILTER_PARAM(name_, short_) |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| #define | MIN_SIZE 3 |
| #define | MAX_SIZE 23 |
Functions | |
| static int | apply_unsharp (AVFilterContext *ctx, AVFrame *in, AVFrame *out) |
| static int | set_filter_param (AVFilterContext *ctx, const char *name, const char *short_name, UnsharpFilterParam *fp, int msize_x, int msize_y, float amount) |
| static av_cold int | init (AVFilterContext *ctx) |
| static int | init_filter_param (AVFilterContext *ctx, UnsharpFilterParam *fp, const char *effect_type, int width) |
| static int | config_input (AVFilterLink *inlink) |
| static void | free_filter_param (UnsharpFilterParam *fp, int nb_threads) |
| static av_cold void | uninit (AVFilterContext *ctx) |
| static int | filter_frame (AVFilterLink *link, AVFrame *in) |
| AVFILTER_DEFINE_CLASS (unsharp) | |
Variables | |
| static enum AVPixelFormat | pix_fmts [] |
| static const AVOption | unsharp_options [] |
| static const AVFilterPad | avfilter_vf_unsharp_inputs [] |
| const FFFilter | ff_vf_unsharp |
blur / sharpen filter, ported to FFmpeg from MPlayer libmpcodecs/unsharp.c.
This code is based on:
An Efficient algorithm for Gaussian blur using finite-state machines Frederick M. Waltz and John W. V. Miller
SPIE Conf. on Machine Vision Systems for Inspection and Metrology VII Originally published Boston, Nov 98
http://www.engin.umd.umich.edu/~jwvm/ece581/21_GBlur.pdf
Definition in file vf_unsharp.c.
| #define MIN_MATRIX_SIZE 3 |
Definition at line 48 of file vf_unsharp.c.
| #define MAX_MATRIX_SIZE 63 |
Definition at line 49 of file vf_unsharp.c.
Referenced by init_filter_param().
| #define DEF_UNSHARP_SLICE_FUNC | ( | name, | |
| nbits ) |
Definition at line 90 of file vf_unsharp.c.
| #define MAX_SCALEBITS 25 |
Definition at line 204 of file vf_unsharp.c.
Referenced by set_filter_param().
| #define SET_FILTER_PARAM | ( | name_, | |
| short_ ) |
Referenced by init().
| #define OFFSET | ( | x | ) |
Definition at line 360 of file vf_unsharp.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 361 of file vf_unsharp.c.
| #define MIN_SIZE 3 |
Definition at line 362 of file vf_unsharp.c.
| #define MAX_SIZE 23 |
Definition at line 363 of file vf_unsharp.c.
|
static |
Definition at line 175 of file vf_unsharp.c.
Referenced by apply_unsharp(), and filter_frame().
|
static |
Definition at line 206 of file vf_unsharp.c.
|
static |
Definition at line 227 of file vf_unsharp.c.
|
static |
Definition at line 259 of file vf_unsharp.c.
Referenced by config_input().
|
static |
Definition at line 288 of file vf_unsharp.c.
|
static |
Definition at line 316 of file vf_unsharp.c.
Referenced by uninit().
|
static |
Definition at line 328 of file vf_unsharp.c.
|
static |
Definition at line 336 of file vf_unsharp.c.
| AVFILTER_DEFINE_CLASS | ( | unsharp | ) |
|
static |
Definition at line 245 of file vf_unsharp.c.
|
static |
Definition at line 364 of file vf_unsharp.c.
|
static |
Definition at line 388 of file vf_unsharp.c.
| const FFFilter ff_vf_unsharp |
Definition at line 397 of file vf_unsharp.c.