FFmpeg
Classes | Macros | Typedefs | Enumerations | Functions | Variables
vf_edgedetect.c File Reference

Edge detection filter. More...

#include "libavutil/avassert.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Classes

struct  plane_info
 
struct  EdgeDetectContext
 

Macros

#define OFFSET(x)   offsetof(EdgeDetectContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 
#define COPY_MAXIMA(ay, ax, by, bx)
 

Typedefs

typedef struct EdgeDetectContext EdgeDetectContext
 

Enumerations

enum  FilterMode {
  FILTER_8TAP_SMOOTH, FILTER_8TAP_REGULAR, FILTER_8TAP_SHARP, FILTER_BILINEAR,
  N_FILTERS, FILTER_SWITCHABLE = N_FILTERS, MODE_WIRES, MODE_COLORMIX,
  NB_MODE, MODE_NONE, MODE_INTERLEAVE, MODE_DEINTERLEAVE,
  FILTER_NONE = -1, FILTER_TOUT, FILTER_VREP, FILTER_BRNG,
  FILT_NUMB
}
 
enum  { DIRECTION_45UP, DIRECTION_45DOWN, DIRECTION_HORIZONTAL, DIRECTION_VERTICAL }
 

Functions

 AVFILTER_DEFINE_CLASS (edgedetect)
 

Variables

AVFilter ff_vf_edgedetect
 

Detailed Description

Edge detection filter.

See also
https://en.wikipedia.org/wiki/Canny_edge_detector

Macro Definition Documentation

§ COPY_MAXIMA

#define COPY_MAXIMA (   ay,
  ax,
  by,
  bx 
)
Value:
do { \
if (src[i] > src[(ay)*src_linesize + i+(ax)] && \
src[i] > src[(by)*src_linesize + i+(bx)]) \
dst[i] = av_clip_uint8(src[i]); \
} while (0)

Variable Documentation

§ ff_vf_edgedetect

AVFilter ff_vf_edgedetect
Initial value:
= {
.name = "edgedetect",
.description = NULL_IF_CONFIG_SMALL("Detect and draw edge."),
.priv_size = sizeof(EdgeDetectContext),
.init = init,
.uninit = uninit,
.query_formats = query_formats,
.inputs = edgedetect_inputs,
.outputs = edgedetect_outputs,
.priv_class = &edgedetect_class,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: vf_edgedetect.c:47