|
FFmpeg
|
Lensfun filter, applies lens correction with parameters from the lensfun database. More...
#include <float.h>#include <math.h>#include "libavutil/mem.h"#include "libavutil/opt.h"#include "avfilter.h"#include "filters.h"#include "video.h"#include <lensfun.h>Go to the source code of this file.
Data Structures | |
| struct | VignettingThreadData |
| struct | DistortionCorrectionThreadData |
| struct | LensfunContext |
Macros | |
| #define | LANCZOS_RESOLUTION 256 |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Enumerations | |
| enum | Mode { VIGNETTING = 0x1 , GEOMETRY_DISTORTION = 0x2 , SUBPIXEL_DISTORTION = 0x4 } |
| enum | InterpolationType { NEAREST , LINEAR , LANCZOS } |
Functions | |
| AVFILTER_DEFINE_CLASS (lensfun) | |
| static av_cold int | init (AVFilterContext *ctx) |
| static float | lanczos_kernel (float x) |
| static int | config_props (AVFilterLink *inlink) |
| static int | vignetting_filter_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| static float | square (float x) |
| static int | distortion_correction_filter_slice (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
| static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
| static const AVOption | lensfun_options [] |
| static const AVFilterPad | lensfun_inputs [] |
| const FFFilter | ff_vf_lensfun |
Lensfun filter, applies lens correction with parameters from the lensfun database.
Definition in file vf_lensfun.c.
| #define LANCZOS_RESOLUTION 256 |
Definition at line 39 of file vf_lensfun.c.
Referenced by config_props(), and distortion_correction_filter_slice().
| #define OFFSET | ( | x | ) |
Definition at line 92 of file vf_lensfun.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 93 of file vf_lensfun.c.
| enum Mode |
| Enumerator | |
|---|---|
| VIGNETTING | |
| GEOMETRY_DISTORTION | |
| SUBPIXEL_DISTORTION | |
Definition at line 41 of file vf_lensfun.c.
| enum InterpolationType |
| Enumerator | |
|---|---|
| NEAREST | |
| LINEAR | |
| LANCZOS | |
Definition at line 47 of file vf_lensfun.c.
| AVFILTER_DEFINE_CLASS | ( | lensfun | ) |
|
static |
Definition at line 130 of file vf_lensfun.c.
Definition at line 196 of file vf_lensfun.c.
Referenced by config_output(), and config_props().
|
static |
Definition at line 207 of file vf_lensfun.c.
|
static |
Definition at line 284 of file vf_lensfun.c.
Referenced by filter_frame().
Definition at line 302 of file vf_lensfun.c.
Referenced by distortion_correction_filter_slice().
|
static |
Definition at line 307 of file vf_lensfun.c.
Referenced by filter_frame().
|
static |
Definition at line 436 of file vf_lensfun.c.
|
static |
Definition at line 499 of file vf_lensfun.c.
|
static |
Definition at line 94 of file vf_lensfun.c.
|
static |
Definition at line 513 of file vf_lensfun.c.
| const FFFilter ff_vf_lensfun |
Definition at line 522 of file vf_lensfun.c.