Go to the source code of this file.
|
enum | FilterMode {
FILTER_8TAP_SMOOTH,
FILTER_8TAP_REGULAR,
FILTER_8TAP_SHARP,
FILTER_BILINEAR,
N_FILTERS,
FILTER_SWITCHABLE = N_FILTERS,
MODE_WIRES,
MODE_COLORMIX,
MODE_CANNY,
NB_MODE,
MODE_NONE,
MODE_INTERLEAVE,
MODE_DEINTERLEAVE,
FILTER_NONE = -1,
FILTER_TOUT,
FILTER_VREP,
FILTER_BRNG,
FILT_NUMB
} |
|
|
| AVFILTER_DEFINE_CLASS (signalstats) |
|
static av_cold int | init (AVFilterContext *ctx) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
static AVFrame * | alloc_frame (enum AVPixelFormat pixfmt, int w, int h) |
|
static int | config_output (AVFilterLink *outlink) |
|
static void | burn_frame8 (const SignalstatsContext *s, AVFrame *f, int x, int y) |
|
static void | burn_frame16 (const SignalstatsContext *s, AVFrame *f, int x, int y) |
|
static int | filter8_brng (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter16_brng (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter_tout_outlier (uint8_t x, uint8_t y, uint8_t z) |
|
static int | filter8_tout (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter16_tout (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter8_vrep (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | filter16_vrep (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | compute_sat_hue_metrics8 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static int | compute_sat_hue_metrics16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) |
|
static unsigned | compute_bit_depth (uint16_t mask) |
|
static int | filter_frame (AVFilterLink *link, AVFrame *in) |
|
◆ OFFSET
◆ FLAGS
◆ FILTER
◆ FILTER3
◆ VREP_START
◆ SET_META
#define SET_META |
( |
|
key, |
|
|
|
fmt, |
|
|
|
val |
|
) |
| |
Value: do { \
snprintf(metabuf,
sizeof(metabuf), fmt,
val); \
av_dict_set(&
out->metadata,
"lavfi.signalstats." key, metabuf, 0); \
} while (0)
◆ FilterMode
Enumerator |
---|
FILTER_8TAP_SMOOTH | |
FILTER_8TAP_REGULAR | |
FILTER_8TAP_SHARP | |
FILTER_BILINEAR | |
N_FILTERS | |
FILTER_SWITCHABLE | |
MODE_WIRES | |
MODE_COLORMIX | |
MODE_CANNY | |
NB_MODE | |
MODE_NONE | |
MODE_INTERLEAVE | |
MODE_DEINTERLEAVE | |
FILTER_NONE | |
FILTER_TOUT | |
FILTER_VREP | |
FILTER_BRNG | |
FILT_NUMB | |
Definition at line 29 of file vf_signalstats.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
signalstats |
| ) |
|
◆ init()
◆ uninit()
◆ alloc_frame()
◆ config_output()
◆ burn_frame8()
◆ burn_frame16()
◆ filter8_brng()
static int filter8_brng |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter16_brng()
static int filter16_brng |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter_tout_outlier()
static int filter_tout_outlier |
( |
uint8_t |
x, |
|
|
uint8_t |
y, |
|
|
uint8_t |
z |
|
) |
| |
|
static |
◆ filter8_tout()
static int filter8_tout |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter16_tout()
static int filter16_tout |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter8_vrep()
static int filter8_vrep |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ filter16_vrep()
static int filter16_vrep |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ compute_sat_hue_metrics8()
static int compute_sat_hue_metrics8 |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ compute_sat_hue_metrics16()
static int compute_sat_hue_metrics16 |
( |
AVFilterContext * |
ctx, |
|
|
void * |
arg, |
|
|
int |
jobnr, |
|
|
int |
nb_jobs |
|
) |
| |
|
static |
◆ compute_bit_depth()
static unsigned compute_bit_depth |
( |
uint16_t |
mask | ) |
|
|
static |
◆ filter_frame()
◆ signalstats_options
◆ pix_fmts
◆ name
◆ process8
◆ process16
◆ filters_def
const { ... } filters_def[] |
◆ signalstats_inputs
◆ signalstats_outputs
◆ ff_vf_signalstats
Initial value:= {
.name = "signalstats",
.description = "Generate statistics from video analysis.",
.priv_class = &signalstats_class,
}
Definition at line 830 of file vf_signalstats.c.
#define FILTER_PIXFMTS_ARRAY(array)
static av_cold int init(AVFilterContext *ctx)
static int filter8_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
#define FILTER_INPUTS(array)
#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_YUV422P9
static double val(void *priv, double ch)
static int filter16_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
static int filter_tout_outlier(uint8_t x, uint8_t y, uint8_t z)
static enum AVPixelFormat pix_fmts[]
#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 ...
static av_cold void uninit(AVFilterContext *ctx)
#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...
#define AV_PIX_FMT_YUV444P16
#define filters(fmt, type, inverse, clp, inverset, clip, one, clip_fn, packed)
#define AV_PIX_FMT_YUV420P9
#define AV_PIX_FMT_YUV420P16
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_OUTPUTS(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...
static int filter8_tout(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
@ AV_OPT_TYPE_COLOR
Underlying C type is uint8_t[4].
#define AV_PIX_FMT_YUV440P10
#define AV_PIX_FMT_YUV422P10
static const AVFilterPad signalstats_inputs[]
static int filter_frame(AVFilterLink *link, AVFrame *in)
#define AV_PIX_FMT_YUV422P12
#define AV_PIX_FMT_YUV444P12
static const AVFilterPad signalstats_outputs[]
#define i(width, name, range_min, range_max)
static int config_output(AVFilterLink *outlink)
@ 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
#define AV_PIX_FMT_YUV420P12
static int filter16_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
#define AV_PIX_FMT_YUV422P14
@ AV_OPT_TYPE_INT
Underlying C type is int.
static int filter8_vrep(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
static int filter16_vrep(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_YUV444P14
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
#define AV_PIX_FMT_YUV420P14