FFmpeg
|
#include <float.h>
#include <math.h>
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libswscale/swscale.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.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 [] |
static const AVFilterPad | lensfun_outputs [] |
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 41 of file vf_lensfun.c.
#define OFFSET | ( | x | ) | offsetof(LensfunContext, x) |
Definition at line 94 of file vf_lensfun.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 95 of file vf_lensfun.c.
enum Mode |
Definition at line 43 of file vf_lensfun.c.
enum InterpolationType |
Enumerator | |
---|---|
NEAREST | |
LINEAR | |
LANCZOS |
Definition at line 49 of file vf_lensfun.c.
AVFILTER_DEFINE_CLASS | ( | lensfun | ) |
|
static |
Definition at line 131 of file vf_lensfun.c.
|
static |
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().
|
static |
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 494 of file vf_lensfun.c.
|
static |
Definition at line 96 of file vf_lensfun.c.
|
static |
Definition at line 508 of file vf_lensfun.c.
|
static |
Definition at line 517 of file vf_lensfun.c.
const AVFilter ff_vf_lensfun |
Definition at line 524 of file vf_lensfun.c.