FFmpeg
|
blur / sharpen filter, ported to FFmpeg from MPlayer libmpcodecs/unsharp.c. More...
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
Go to the source code of this file.
Data Structures | |
struct | FilterParam |
struct | UnsharpContext |
Macros | |
#define | MIN_SIZE 3 |
#define | MAX_SIZE 13 |
#define | SHIFTUP(x, shift) (-((-(x))>>(shift))) |
Functions | |
static void | apply_unsharp (uint8_t *dst, int dst_stride, const uint8_t *src, int src_stride, int width, int height, FilterParam *fp) |
static void | set_filter_param (FilterParam *fp, int msize_x, int msize_y, double amount) |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static int | query_formats (AVFilterContext *ctx) |
static void | init_filter_param (AVFilterContext *ctx, FilterParam *fp, const char *effect_type, int width) |
static int | config_props (AVFilterLink *link) |
static void | free_filter_param (FilterParam *fp) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | filter_frame (AVFilterLink *link, AVFilterBufferRef *in) |
Variables | |
static const AVFilterPad | avfilter_vf_unsharp_inputs [] |
static const AVFilterPad | avfilter_vf_unsharp_outputs [] |
AVFilter | avfilter_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_SIZE 3 |
Definition at line 47 of file vf_unsharp.c.
#define MAX_SIZE 13 |
Definition at line 48 of file vf_unsharp.c.
Referenced by apply_unsharp().
Definition at line 51 of file vf_unsharp.c.
Referenced by config_props(), and filter_frame().
|
static |
Definition at line 70 of file vf_unsharp.c.
Referenced by filter_frame().
|
static |
Definition at line 123 of file vf_unsharp.c.
Referenced by init().
|
static |
Definition at line 135 of file vf_unsharp.c.
|
static |
Definition at line 160 of file vf_unsharp.c.
|
static |
Definition at line 173 of file vf_unsharp.c.
Referenced by config_props().
|
static |
Definition at line 187 of file vf_unsharp.c.
|
static |
Definition at line 201 of file vf_unsharp.c.
Referenced by uninit().
|
static |
Definition at line 209 of file vf_unsharp.c.
|
static |
Definition at line 217 of file vf_unsharp.c.
|
static |
Definition at line 240 of file vf_unsharp.c.
|
static |
Definition at line 251 of file vf_unsharp.c.
AVFilter avfilter_vf_unsharp |
Definition at line 259 of file vf_unsharp.c.