#include <float.h>
#include "libavutil/opt.h"
#include "avfilter.h"
#include "filters.h"
#include "video.h"
Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (photosensitivity) |
|
static int | convert_frame_partial (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static void | convert_frame (AVFilterContext *ctx, AVFrame *in, PhotosensitivityFrame *out, int skip) |
|
static int | blend_frame_partial (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static void | blend_frame (AVFilterContext *ctx, AVFrame *target, AVFrame *source, float factor) |
|
static int | get_badness (PhotosensitivityFrame *a, PhotosensitivityFrame *b) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
◆ MAX_FRAMES
◆ GRID_SIZE
◆ NUM_CHANNELS
◆ OFFSET
◆ FLAGS
◆ NUM_CELLS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
photosensitivity |
| ) |
|
◆ convert_frame_partial()
static int convert_frame_partial |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ convert_frame()
◆ blend_frame_partial()
static int blend_frame_partial |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ blend_frame()
◆ get_badness()
◆ config_input()
◆ filter_frame()
◆ uninit()
◆ photosensitivity_options
const AVOption photosensitivity_options[] |
|
static |
Initial value:= {
{
"threshold",
"set detection threshold factor (lower is stricter)",
OFFSET(threshold_multiplier),
AV_OPT_TYPE_FLOAT, {.dbl=1}, 0.1, FLT_MAX,
FLAGS },
{
"t",
"set detection threshold factor (lower is stricter)",
OFFSET(threshold_multiplier),
AV_OPT_TYPE_FLOAT, {.dbl=1}, 0.1, FLT_MAX,
FLAGS },
}
Definition at line 58 of file vf_photosensitivity.c.
◆ inputs
◆ ff_vf_photosensitivity
Initial value:= {
.name = "photosensitivity",
.description =
NULL_IF_CONFIG_SMALL(
"Filter out photosensitive epilepsy seizure-inducing flashes."),
.priv_class = &photosensitivity_class,
}
Definition at line 309 of file vf_photosensitivity.c.