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_frame8 (AVFilterLink *link, AVFrame *in) |
|
static int | filter_frame16 (AVFilterLink *link, AVFrame *in) |
|
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 28 of file vf_signalstats.c.
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
signalstats |
| ) |
|
◆ init()
◆ uninit()
◆ alloc_frame()
◆ config_output()
◆ burn_frame8()
◆ burn_frame16()
◆ filter8_brng()
◆ filter16_brng()
◆ filter_tout_outlier()
static int filter_tout_outlier |
( |
uint8_t |
x, |
|
|
uint8_t |
y, |
|
|
uint8_t |
z |
|
) |
| |
|
static |
◆ filter8_tout()
◆ filter16_tout()
◆ filter8_vrep()
◆ filter16_vrep()
◆ compute_sat_hue_metrics8()
◆ compute_sat_hue_metrics16()
◆ compute_bit_depth()
static unsigned compute_bit_depth |
( |
uint16_t |
mask | ) |
|
|
static |
◆ filter_frame8()
◆ filter_frame16()
◆ 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 1005 of file vf_signalstats.c.
static av_cold int init(AVFilterContext *ctx)
#define FILTER_PIXFMTS_ARRAY(array)
static int filter8_brng(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
#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 filters(fmt, inverse, clip, i, c)
#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 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_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...
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...
#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
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)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_YUV444P14
#define AV_PIX_FMT_YUV420P14