FFmpeg
|
FFT domain filtering. More...
#include "libavfilter/internal.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavcodec/avfft.h"
#include "libavutil/eval.h"
Go to the source code of this file.
Data Structures | |
struct | FFTFILTContext |
Macros | |
#define | MAX_PLANES 4 |
#define | OFFSET(x) offsetof(FFTFILTContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Enumerations | |
enum | EvalMode { EVAL_MODE_ONCE, EVAL_MODE_FRAME, EVAL_MODE_NB, EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB, EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB, EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB, EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB, EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB, EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB } |
enum | { VAR_X, VAR_Y, VAR_W, VAR_H, VAR_N, VAR_VARS_NB } |
enum | { Y = 0, U, V } |
Functions | |
AVFILTER_DEFINE_CLASS (fftfilt) | |
static double | lum (void *priv, double x, double y, int plane) |
static double | weight_Y (void *priv, double x, double y) |
static double | weight_U (void *priv, double x, double y) |
static double | weight_V (void *priv, double x, double y) |
static void | copy_rev (FFTSample *dest, int w, int w2) |
static void | rdft_horizontal (FFTFILTContext *s, AVFrame *in, int w, int h, int plane) |
static void | rdft_vertical (FFTFILTContext *s, int h, int plane) |
static void | irdft_vertical (FFTFILTContext *s, int h, int plane) |
static void | irdft_horizontal (FFTFILTContext *s, AVFrame *out, int w, int h, int plane) |
static av_cold int | initialize (AVFilterContext *ctx) |
static void | do_eval (FFTFILTContext *s, AVFilterLink *inlink, int plane) |
static int | config_props (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
Variables | |
static const char *const | var_names [] = { "X", "Y", "W", "H", "N", NULL } |
static const AVOption | fftfilt_options [] |
static const AVFilterPad | fftfilt_inputs [] |
static const AVFilterPad | fftfilt_outputs [] |
AVFilter | ff_vf_fftfilt |
FFT domain filtering.
Definition in file vf_fftfilt.c.
#define MAX_PLANES 4 |
Definition at line 34 of file vf_fftfilt.c.
Referenced by uninit().
#define OFFSET | ( | x | ) | offsetof(FFTFILTContext, x) |
Definition at line 74 of file vf_fftfilt.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 75 of file vf_fftfilt.c.
enum EvalMode |
Definition at line 36 of file vf_fftfilt.c.
anonymous enum |
Enumerator | |
---|---|
VAR_X | |
VAR_Y | |
VAR_W | |
VAR_H | |
VAR_N | |
VAR_VARS_NB |
Definition at line 70 of file vf_fftfilt.c.
anonymous enum |
Enumerator | |
---|---|
Y | |
U | |
V |
Definition at line 72 of file vf_fftfilt.c.
AVFILTER_DEFINE_CLASS | ( | fftfilt | ) |
Definition at line 92 of file vf_fftfilt.c.
Referenced by weight_U(), weight_V(), and weight_Y().
|
static |
Definition at line 98 of file vf_fftfilt.c.
Referenced by initialize().
|
static |
Definition at line 99 of file vf_fftfilt.c.
Referenced by initialize().
|
static |
Definition at line 100 of file vf_fftfilt.c.
Referenced by initialize().
Definition at line 102 of file vf_fftfilt.c.
Referenced by rdft_horizontal(), and rdft_vertical().
Definition at line 114 of file vf_fftfilt.c.
Referenced by filter_frame().
|
static |
Definition at line 130 of file vf_fftfilt.c.
Referenced by filter_frame().
|
static |
Definition at line 145 of file vf_fftfilt.c.
Referenced by filter_frame().
Definition at line 159 of file vf_fftfilt.c.
Referenced by filter_frame().
|
static |
Definition at line 174 of file vf_fftfilt.c.
|
static |
Definition at line 208 of file vf_fftfilt.c.
Referenced by config_props(), and filter_frame().
|
static |
Definition at line 227 of file vf_fftfilt.c.
|
static |
Definition at line 282 of file vf_fftfilt.c.
|
static |
Definition at line 324 of file vf_fftfilt.c.
|
static |
Definition at line 340 of file vf_fftfilt.c.
Definition at line 69 of file vf_fftfilt.c.
Referenced by initialize().
|
static |
Definition at line 77 of file vf_fftfilt.c.
|
static |
Definition at line 356 of file vf_fftfilt.c.
|
static |
Definition at line 366 of file vf_fftfilt.c.
AVFilter ff_vf_fftfilt |
Definition at line 374 of file vf_fftfilt.c.