FFmpeg
|
#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) offsetof(LensfunContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Enumerations | |
enum | Mode { MODE_4k75 = 0, MODE_5k15, MODE_5k9, MODE_6k7, MODE_7k4, MODE_7k95, MODE_10k2, MODE_12k2, MODE_DTX, N_MODES, NO_DATA = 15, MODE_6k60 = 0, MODE_8k85, MODE_12k65, MODE_14k25, MODE_15k85, MODE_18k25, MODE_19k85, MODE_23k05, MODE_23k85, MODE_SID, SP_LOST = 14, NO_DATA, 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 AVFilter | 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.
#define OFFSET | ( | x | ) | offsetof(LensfunContext, 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 |
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_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 AVFilter ff_vf_lensfun |
Definition at line 522 of file vf_lensfun.c.