#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 },
}
static void BS_FUNC skip(BSCTX *bc, unsigned int n)
Skip n bits in the buffer.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
Definition at line 58 of file vf_photosensitivity.c.
◆ inputs
Initial value:= {
{
.name = "default",
},
}
static int config_input(AVFilterLink *inlink)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition at line 309 of file vf_photosensitivity.c.
◆ ff_vf_photosensitivity
Initial value:= {
.p.name = "photosensitivity",
.p.description =
NULL_IF_CONFIG_SMALL(
"Filter out photosensitive epilepsy seizure-inducing flashes."),
.p.priv_class = &photosensitivity_class,
}
static const AVFilterPad inputs[]
static av_cold void uninit(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_PIXFMTS(...)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition at line 318 of file vf_photosensitivity.c.