Commit c888adf5 authored by Vladimir Panteleev's avatar Vladimir Panteleev Committed by Paul B Mahol

libavfilter: add photosensitivity filter

parent a746359e
......@@ -13,6 +13,7 @@ version <next>:
- streamhash muxer
- sierpinski video source
- scroll video filter
- photosensitivity filter
version 4.2:
......
......@@ -14040,6 +14040,26 @@ Filter selects among @samp{t}, @samp{b} and @samp{p} using image analysis only.
@end table
@end table
@section photosensitivity
Reduce various flashes in video, so to help users with epilepsy.
It accepts the following options:
@table @option
@item frames, f
Set how many frames to use when filtering. Default is 30.
@item threshold, t
Set detection threshold factor. Default is 1.
Lower is stricter.
@item skip
Set how many pixels to skip when sampling frames. Defalt is 1.
Allowed range is from 1 to 1024.
@item bypass
Leave frames unchanged. Default is disabled.
@end table
@section pixdesctest
Pixel format descriptor test filter, mainly useful for internal
......
......@@ -321,6 +321,7 @@ OBJS-$(CONFIG_PALETTEUSE_FILTER) += vf_paletteuse.o framesync.o
OBJS-$(CONFIG_PERMS_FILTER) += f_perms.o
OBJS-$(CONFIG_PERSPECTIVE_FILTER) += vf_perspective.o
OBJS-$(CONFIG_PHASE_FILTER) += vf_phase.o
OBJS-$(CONFIG_PHOTOSENSITIVITY_FILTER) += vf_photosensitivity.o
OBJS-$(CONFIG_PIXDESCTEST_FILTER) += vf_pixdesctest.o
OBJS-$(CONFIG_PIXSCOPE_FILTER) += vf_datascope.o
OBJS-$(CONFIG_PP_FILTER) += vf_pp.o
......
......@@ -305,6 +305,7 @@ extern AVFilter ff_vf_paletteuse;
extern AVFilter ff_vf_perms;
extern AVFilter ff_vf_perspective;
extern AVFilter ff_vf_phase;
extern AVFilter ff_vf_photosensitivity;
extern AVFilter ff_vf_pixdesctest;
extern AVFilter ff_vf_pixscope;
extern AVFilter ff_vf_pp;
......
......@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 7
#define LIBAVFILTER_VERSION_MINOR 60
#define LIBAVFILTER_VERSION_MINOR 61
#define LIBAVFILTER_VERSION_MICRO 100
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment