#include "avfilter.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 |
Defines | |
#define | MIN_SIZE 3 |
#define | MAX_SIZE 13 |
#define | CHROMA_WIDTH(link) -((-link->w) >> av_pix_fmt_descriptors[link->format].log2_chroma_w) |
#define | CHROMA_HEIGHT(link) -((-link->h) >> av_pix_fmt_descriptors[link->format].log2_chroma_h) |
Functions | |
static void | unsharpen (uint8_t *dst, uint8_t *src, int dst_stride, 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, void *opaque) |
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 void | end_frame (AVFilterLink *link) |
static void | draw_slice (AVFilterLink *link, int y, int h, int slice_dir) |
Variables | |
AVFilter | avfilter_vf_unsharp |
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 CHROMA_HEIGHT | ( | link | ) | -((-link->h) >> av_pix_fmt_descriptors[link->format].log2_chroma_h) |
#define CHROMA_WIDTH | ( | link | ) | -((-link->w) >> av_pix_fmt_descriptors[link->format].log2_chroma_w) |
#define MAX_SIZE 13 |
Definition at line 45 of file vf_unsharp.c.
Referenced by aiff_read_packet(), mmf_read_packet(), sol_read_packet(), and unsharpen().
#define MIN_SIZE 3 |
Definition at line 44 of file vf_unsharp.c.
static int config_props | ( | AVFilterLink * | link | ) | [static] |
Definition at line 169 of file vf_unsharp.c.
static void draw_slice | ( | AVFilterLink * | link, | |
int | y, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 211 of file vf_unsharp.c.
static void end_frame | ( | AVFilterLink * | link | ) | [static] |
Definition at line 195 of file vf_unsharp.c.
static void free_filter_param | ( | FilterParam * | fp | ) | [static] |
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 125 of file vf_unsharp.c.
static void init_filter_param | ( | AVFilterContext * | ctx, | |
FilterParam * | fp, | |||
const char * | effect_type, | |||
int | width | |||
) | [static] |
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 142 of file vf_unsharp.c.
static void set_filter_param | ( | FilterParam * | fp, | |
int | msize_x, | |||
int | msize_y, | |||
double | amount | |||
) | [static] |
static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 187 of file vf_unsharp.c.
static void unsharpen | ( | uint8_t * | dst, | |
uint8_t * | src, | |||
int | dst_stride, | |||
int | src_stride, | |||
int | width, | |||
int | height, | |||
FilterParam * | fp | |||
) | [static] |
Initial value:
{ .name = "unsharp", .description = NULL_IF_CONFIG_SMALL("Sharpen or blur the input video."), .priv_size = sizeof(UnsharpContext), .init = init, .uninit = uninit, .query_formats = query_formats, .inputs = (AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, .draw_slice = draw_slice, .end_frame = end_frame, .config_props = config_props, .min_perms = AV_PERM_READ, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }
Definition at line 215 of file vf_unsharp.c.