FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "framesync.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | IPlane |
struct | LUT |
struct | chord |
struct | chord_set |
struct | MorphoContext |
Macros | |
#define | OFFSET(x) offsetof(MorphoContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM |
Enumerations | |
enum | MorphModes { ERODE, DILATE, OPEN, CLOSE, GRADIENT, TOPHAT, BLACKHAT, NB_MODES } |
Functions | |
FRAMESYNC_DEFINE_CLASS (morpho, MorphoContext, fs) | |
static void | min_fun (uint8_t *c, const uint8_t *a, const uint8_t *b, int x) |
static void | mininplace_fun (uint8_t *a, const uint8_t *b, int x) |
static void | max_fun (uint8_t *c, const uint8_t *a, const uint8_t *b, int x) |
static void | maxinplace_fun (uint8_t *a, const uint8_t *b, int x) |
static void | diff_fun (uint8_t *a, const uint8_t *b, int x) |
static void | diffinplace_fun (uint8_t *a, const uint8_t *b, int x) |
static void | min16_fun (uint8_t *cc, const uint8_t *aa, const uint8_t *bb, int x) |
static void | mininplace16_fun (uint8_t *aa, const uint8_t *bb, int x) |
static void | diff16_fun (uint8_t *aa, const uint8_t *bb, int x) |
static void | diffinplace16_fun (uint8_t *aa, const uint8_t *bb, int x) |
static void | max16_fun (uint8_t *cc, const uint8_t *aa, const uint8_t *bb, int x) |
static void | maxinplace16_fun (uint8_t *aa, const uint8_t *bb, int x) |
static int | alloc_lut (LUT *Ty, chord_set *SE, int type_size, int mode) |
static void | free_lut (LUT *table) |
static int | alloc_lut_if_necessary (LUT *Ty, IPlane *f, chord_set *SE, int y, int num, enum MorphModes mode) |
static void | circular_swap (LUT *Ty) |
static void | compute_min_row (IPlane *f, LUT *Ty, chord_set *SE, int r, int y) |
static void | update_min_lut (IPlane *f, LUT *Ty, chord_set *SE, int y, int tid, int num) |
static int | compute_min_lut (LUT *Ty, IPlane *f, chord_set *SE, int y, int num) |
static void | compute_max_row (IPlane *f, LUT *Ty, chord_set *SE, int r, int y) |
static void | update_max_lut (IPlane *f, LUT *Ty, chord_set *SE, int y, int tid, int num) |
static int | compute_max_lut (LUT *Ty, IPlane *f, chord_set *SE, int y, int num) |
static void | line_dilate (IPlane *g, LUT *Ty, chord_set *SE, int y, int tid) |
static void | line_erode (IPlane *g, LUT *Ty, chord_set *SE, int y, int tid) |
static int | dilate (IPlane *g, IPlane *f, chord_set *SE, LUT *Ty) |
static int | erode (IPlane *g, IPlane *f, chord_set *SE, LUT *Ty) |
static void | difference (IPlane *g, IPlane *f) |
static void | difference2 (IPlane *g, IPlane *f) |
static int | insert_chord_set (chord_set *chords, chord c) |
static void | free_chord_set (chord_set *SE) |
static int | init_chordset (chord_set *chords) |
static int | comp_chord_length (const void *p, const void *q) |
static int | comp_chord (const void *p, const void *q) |
static int | build_chord_set (IPlane *SE, chord_set *chords) |
static void | free_iplane (IPlane *imp) |
static int | read_iplane (IPlane *imp, const uint8_t *dst, int dst_linesize, int w, int h, int R, int type_size, int depth) |
static int | config_input (AVFilterLink *inlink) |
static int | config_input_structure (AVFilterLink *inlink) |
static int | activate (AVFilterContext *ctx) |
static int | do_morpho (FFFrameSync *fs) |
static int | config_output (AVFilterLink *outlink) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | morpho_options [] |
static enum AVPixelFormat | pix_fmts [] |
static const AVFilterPad | morpho_inputs [] |
static const AVFilterPad | morpho_outputs [] |
const AVFilter | ff_vf_morpho |
#define OFFSET | ( | x | ) | offsetof(MorphoContext, x) |
Definition at line 126 of file vf_morpho.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM |
Definition at line 127 of file vf_morpho.c.
enum MorphModes |
Enumerator | |
---|---|
ERODE | |
DILATE | |
OPEN | |
CLOSE | |
GRADIENT | |
TOPHAT | |
BLACKHAT | |
NB_MODES |
Definition at line 37 of file vf_morpho.c.
FRAMESYNC_DEFINE_CLASS | ( | morpho | , |
MorphoContext | , | ||
fs | |||
) |
|
static |
Definition at line 169 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 175 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 181 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 187 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 193 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 199 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 205 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 215 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 224 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 233 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 242 of file vf_morpho.c.
Referenced by read_iplane().
|
static |
Definition at line 252 of file vf_morpho.c.
Referenced by read_iplane().
Definition at line 261 of file vf_morpho.c.
Referenced by alloc_lut_if_necessary().
|
static |
Definition at line 297 of file vf_morpho.c.
Referenced by alloc_lut_if_necessary(), and uninit().
|
static |
Definition at line 320 of file vf_morpho.c.
Referenced by compute_max_lut(), and compute_min_lut().
|
static |
Definition at line 343 of file vf_morpho.c.
Referenced by update_max_lut(), and update_min_lut().
Definition at line 359 of file vf_morpho.c.
Referenced by compute_min_lut(), and update_min_lut().
Definition at line 380 of file vf_morpho.c.
Referenced by erode().
Definition at line 388 of file vf_morpho.c.
Referenced by erode().
Definition at line 400 of file vf_morpho.c.
Referenced by compute_max_lut(), and update_max_lut().
Definition at line 421 of file vf_morpho.c.
Referenced by dilate().
Definition at line 429 of file vf_morpho.c.
Referenced by dilate().
Definition at line 441 of file vf_morpho.c.
Referenced by dilate().
Definition at line 452 of file vf_morpho.c.
Referenced by erode().
Definition at line 463 of file vf_morpho.c.
Referenced by dilate_end_frame_filter(), dilate_init(), dilate_uninit(), do_morpho(), and erode_end_frame_filter().
Definition at line 478 of file vf_morpho.c.
Referenced by do_morpho().
Definition at line 493 of file vf_morpho.c.
Referenced by checkasm_check_blend(), and do_morpho().
Definition at line 499 of file vf_morpho.c.
Referenced by do_morpho().
Definition at line 505 of file vf_morpho.c.
Referenced by build_chord_set().
|
static |
Definition at line 530 of file vf_morpho.c.
Referenced by do_morpho(), and uninit().
Definition at line 540 of file vf_morpho.c.
Referenced by build_chord_set().
|
static |
Definition at line 557 of file vf_morpho.c.
Referenced by build_chord_set().
|
static |
Definition at line 566 of file vf_morpho.c.
Referenced by build_chord_set().
Definition at line 575 of file vf_morpho.c.
Referenced by do_morpho().
|
static |
Definition at line 719 of file vf_morpho.c.
Referenced by uninit().
|
static |
Definition at line 724 of file vf_morpho.c.
Referenced by do_morpho().
|
static |
Definition at line 750 of file vf_morpho.c.
|
static |
Definition at line 766 of file vf_morpho.c.
|
static |
Definition at line 782 of file vf_morpho.c.
|
static |
Definition at line 788 of file vf_morpho.c.
Referenced by config_output().
|
static |
Definition at line 939 of file vf_morpho.c.
|
static |
Definition at line 972 of file vf_morpho.c.
|
static |
Definition at line 129 of file vf_morpho.c.
|
static |
Definition at line 147 of file vf_morpho.c.
|
static |
Definition at line 993 of file vf_morpho.c.
|
static |
Definition at line 1006 of file vf_morpho.c.
const AVFilter ff_vf_morpho |
Definition at line 1014 of file vf_morpho.c.