OpenFFmpeg
Classes | Macros | Typedefs | Enumerations | Functions | Variables
vf_lensfun.c File Reference

Lensfun filter, applies lens correction with parameters from the lensfun database. More...

#include <float.h>
#include <math.h>
#include "libavutil/avassert.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>

Classes

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
 

Typedefs

typedef struct VignettingThreadData VignettingThreadData
 
typedef struct DistortionCorrectionThreadData DistortionCorrectionThreadData
 
typedef struct LensfunContext LensfunContext
 

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)
 

Variables

AVFilter ff_vf_lensfun
 

Detailed Description

Lensfun filter, applies lens correction with parameters from the lensfun database.

See also
https://lensfun.sourceforge.net/

Enumeration Type Documentation

§ Mode

enum Mode
Enumerator
MODE_4k75 

4.75 kbit/s

MODE_5k15 

5.15 kbit/s

MODE_5k9 

5.90 kbit/s

MODE_6k7 

6.70 kbit/s

MODE_7k4 

7.40 kbit/s

MODE_7k95 

7.95 kbit/s

MODE_10k2 

10.2 kbit/s

MODE_12k2 

12.2 kbit/s

MODE_DTX 

silent frame

N_MODES 

number of modes

NO_DATA 

no transmission

MODE_6k60 

6.60 kbit/s

MODE_8k85 

8.85 kbit/s

MODE_12k65 

12.65 kbit/s

MODE_14k25 

14.25 kbit/s

MODE_15k85 

15.85 kbit/s

MODE_18k25 

18.25 kbit/s

MODE_19k85 

19.85 kbit/s

MODE_23k05 

23.05 kbit/s

MODE_23k85 

23.85 kbit/s

MODE_SID 

comfort noise frame

SP_LOST 

speech lost

NO_DATA 

no transmission

Variable Documentation

§ ff_vf_lensfun

AVFilter ff_vf_lensfun
Initial value:
= {
.name = "lensfun",
.description = NULL_IF_CONFIG_SMALL("Apply correction to an image based on info derived from the lensfun database."),
.priv_size = sizeof(LensfunContext),
.init = init,
.uninit = uninit,
.query_formats = query_formats,
.inputs = lensfun_inputs,
.outputs = lensfun_outputs,
.priv_class = &lensfun_class,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
Definition: vf_lensfun.c:75
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:116