Edge detection filter.
More...
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (edgedetect) |
|
static av_cold int | init (AVFilterContext *ctx) |
|
static int | query_formats (AVFilterContext *ctx) |
|
static int | config_props (AVFilterLink *inlink) |
|
static void | gaussian_blur (AVFilterContext *ctx, int w, int h, uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize) |
|
static int | get_rounded_direction (int gx, int gy) |
|
static void | sobel (AVFilterContext *ctx, int w, int h, uint16_t *dst, int dst_linesize, const uint8_t *src, int src_linesize) |
|
static void | non_maximum_suppression (AVFilterContext *ctx, int w, int h, uint8_t *dst, int dst_linesize, const uint16_t *src, int src_linesize) |
|
static void | double_threshold (AVFilterContext *ctx, int w, int h, uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
#define COPY_MAXIMA |
( |
|
ay, |
|
|
|
ax, |
|
|
|
by, |
|
|
|
bx |
|
) |
| |
- Enumerator:
DIRECTION_45UP |
|
DIRECTION_45DOWN |
|
DIRECTION_HORIZONTAL |
|
DIRECTION_VERTICAL |
|
Definition at line 123 of file vf_edgedetect.c.
AVFILTER_DEFINE_CLASS |
( |
edgedetect |
| ) |
|
static int get_rounded_direction |
( |
int |
gx, |
|
|
int |
gy |
|
) |
| |
|
static |
static void sobel |
( |
AVFilterContext * |
ctx, |
|
|
int |
w, |
|
|
int |
h, |
|
|
uint16_t * |
dst, |
|
|
int |
dst_linesize, |
|
|
const uint8_t * |
src, |
|
|
int |
src_linesize |
|
) |
| |
|
static |
static void non_maximum_suppression |
( |
AVFilterContext * |
ctx, |
|
|
int |
w, |
|
|
int |
h, |
|
|
uint8_t * |
dst, |
|
|
int |
dst_linesize, |
|
|
const uint16_t * |
src, |
|
|
int |
src_linesize |
|
) |
| |
|
static |
Initial value:= {
{
.name = "default",
},
{ NULL }
}
Definition at line 302 of file vf_edgedetect.c.
Initial value:= {
{
.name = "default",
},
{ NULL }
}
Definition at line 312 of file vf_edgedetect.c.
Initial value:= {
.name = "edgedetect",
.priv_class = &edgedetect_class,
}
Definition at line 320 of file vf_edgedetect.c.