Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (deflicker) |
|
static int | deflicker8 (AVFilterContext *ctx, const uint8_t *src, ptrdiff_t src_linesize, uint8_t *dst, ptrdiff_t dst_linesize, int w, int h, float f) |
|
static int | deflicker16 (AVFilterContext *ctx, const uint8_t *ssrc, ptrdiff_t src_linesize, uint8_t *ddst, ptrdiff_t dst_linesize, int w, int h, float f) |
|
static float | calc_avgy8 (AVFilterContext *ctx, AVFrame *in) |
|
static float | calc_avgy16 (AVFilterContext *ctx, AVFrame *in) |
|
static void | get_am_factor (AVFilterContext *ctx, float *f) |
|
static void | get_gm_factor (AVFilterContext *ctx, float *f) |
|
static void | get_hm_factor (AVFilterContext *ctx, float *f) |
|
static void | get_qm_factor (AVFilterContext *ctx, float *f) |
|
static void | get_cm_factor (AVFilterContext *ctx, float *f) |
|
static void | get_pm_factor (AVFilterContext *ctx, float *f) |
|
static int | comparef (const void *a, const void *b) |
|
static void | get_median_factor (AVFilterContext *ctx, float *f) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *buf) |
|
static int | request_frame (AVFilterLink *outlink) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
◆ FF_BUFQUEUE_SIZE
#define FF_BUFQUEUE_SIZE 129 |
◆ SIZE
◆ OFFSET
◆ FLAGS
◆ smooth_mode
Enumerator |
---|
ARITHMETIC_MEAN | |
GEOMETRIC_MEAN | |
HARMONIC_MEAN | |
QUADRATIC_MEAN | |
CUBIC_MEAN | |
POWER_MEAN | |
MEDIAN | |
NB_SMOOTH_MODE | |
Definition at line 35 of file vf_deflicker.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
deflicker |
| ) |
|
◆ deflicker8()
static int deflicker8 |
( |
AVFilterContext * |
ctx, |
|
|
const uint8_t * |
src, |
|
|
ptrdiff_t |
src_linesize, |
|
|
uint8_t * |
dst, |
|
|
ptrdiff_t |
dst_linesize, |
|
|
int |
w, |
|
|
int |
h, |
|
|
float |
f |
|
) |
| |
|
static |
◆ deflicker16()
static int deflicker16 |
( |
AVFilterContext * |
ctx, |
|
|
const uint8_t * |
ssrc, |
|
|
ptrdiff_t |
src_linesize, |
|
|
uint8_t * |
ddst, |
|
|
ptrdiff_t |
dst_linesize, |
|
|
int |
w, |
|
|
int |
h, |
|
|
float |
f |
|
) |
| |
|
static |
◆ calc_avgy8()
◆ calc_avgy16()
◆ get_am_factor()
◆ get_gm_factor()
◆ get_hm_factor()
◆ get_qm_factor()
◆ get_cm_factor()
◆ get_pm_factor()
◆ comparef()
static int comparef |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
◆ get_median_factor()
◆ config_input()
◆ filter_frame()
◆ request_frame()
◆ uninit()
◆ deflicker_options
◆ pixel_fmts
◆ inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 442 of file vf_deflicker.c.
◆ outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 451 of file vf_deflicker.c.
◆ ff_vf_deflicker
Initial value:= {
.name = "deflicker",
.priv_class = &deflicker_class,
}
Definition at line 459 of file vf_deflicker.c.
#define AV_PIX_FMT_YUVA422P16
#define FILTER_PIXFMTS_ARRAY(array)
#define AV_PIX_FMT_YUVA422P9
#define AV_PIX_FMT_YUVA420P16
#define AV_PIX_FMT_YUVA420P10
#define AV_PIX_FMT_YUV420P10
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
#define AV_PIX_FMT_YUVA422P10
#define AV_PIX_FMT_YUVA420P9
#define AV_PIX_FMT_YUVA444P16
#define AV_PIX_FMT_YUV422P9
#define AV_PIX_FMT_GRAY16
#define AV_PIX_FMT_YUV444P10
@ AV_PIX_FMT_YUVJ411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
#define AV_PIX_FMT_YUV422P16
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
#define AV_PIX_FMT_YUV444P16
#define AV_PIX_FMT_YUVA444P12
#define AV_PIX_FMT_YUV420P9
#define AV_PIX_FMT_YUV420P16
#define AV_PIX_FMT_GRAY14
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_INPUTS(array)
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
#define AV_PIX_FMT_GRAY10
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
#define AV_PIX_FMT_YUV440P10
#define AV_PIX_FMT_YUV422P10
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
static const AVFilterPad outputs[]
static int request_frame(AVFilterLink *outlink)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define AV_PIX_FMT_YUV422P12
static const AVFilterPad inputs[]
#define AV_PIX_FMT_YUV444P12
static av_cold void uninit(AVFilterContext *ctx)
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
#define AV_PIX_FMT_YUVA444P10
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
#define AV_PIX_FMT_YUV444P9
static enum AVPixelFormat pixel_fmts[]
#define AV_PIX_FMT_YUVA444P9
#define AV_PIX_FMT_YUV420P12
#define AV_PIX_FMT_YUV422P14
#define AV_PIX_FMT_YUVA422P12
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
static int config_input(AVFilterLink *inlink)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_YUV444P14
#define AV_PIX_FMT_GRAY12
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
#define AV_PIX_FMT_YUV420P14