FFmpeg
4.2.1
|
#include <float.h>
#include <math.h>
#include "libavutil/opt.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | ChannelStats |
struct | AudioStatsContext |
Functions | |
AVFILTER_DEFINE_CLASS (astats) | |
static int | query_formats (AVFilterContext *ctx) |
static void | reset_stats (AudioStatsContext *s) |
static int | config_output (AVFilterLink *outlink) |
static void | bit_depth (AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth) |
static void | update_minmax (AudioStatsContext *s, ChannelStats *p, double d) |
static void | update_stat (AudioStatsContext *s, ChannelStats *p, double d, double nd, int64_t i) |
static void | update_float_stat (AudioStatsContext *s, ChannelStats *p, float d) |
static void | update_double_stat (AudioStatsContext *s, ChannelStats *p, double d) |
static void | set_meta (AVDictionary **metadata, int chan, const char *key, const char *fmt, double val) |
static void | set_metadata (AudioStatsContext *s, AVDictionary **metadata) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *buf) |
static void | print_stats (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | astats_options [] |
static const AVFilterPad | astats_inputs [] |
static const AVFilterPad | astats_outputs [] |
AVFilter | ff_af_astats |
#define MEASURE_ALL UINT_MAX |
Definition at line 30 of file af_astats.c.
#define MEASURE_NONE 0 |
Definition at line 31 of file af_astats.c.
#define MEASURE_DC_OFFSET (1 << 0) |
Definition at line 33 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MIN_LEVEL (1 << 1) |
Definition at line 34 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MAX_LEVEL (1 << 2) |
Definition at line 35 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MIN_DIFFERENCE (1 << 3) |
Definition at line 36 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MAX_DIFFERENCE (1 << 4) |
Definition at line 37 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MEAN_DIFFERENCE (1 << 5) |
Definition at line 38 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_DIFFERENCE (1 << 6) |
Definition at line 39 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_PEAK_LEVEL (1 << 7) |
Definition at line 40 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_LEVEL (1 << 8) |
Definition at line 41 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_PEAK (1 << 9) |
Definition at line 42 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_TROUGH (1 << 10) |
Definition at line 43 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_CREST_FACTOR (1 << 11) |
Definition at line 44 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_FLAT_FACTOR (1 << 12) |
Definition at line 45 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_PEAK_COUNT (1 << 13) |
Definition at line 46 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_BIT_DEPTH (1 << 14) |
Definition at line 47 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_DYNAMIC_RANGE (1 << 15) |
Definition at line 48 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_ZERO_CROSSINGS (1 << 16) |
Definition at line 49 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_ZERO_CROSSINGS_RATE (1 << 17) |
Definition at line 50 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_SAMPLES (1 << 18) |
Definition at line 51 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_NANS (1 << 19) |
Definition at line 52 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_INFS (1 << 20) |
Definition at line 53 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_DENORMALS (1 << 21) |
Definition at line 54 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MINMAXPEAK (MEASURE_MIN_LEVEL | MEASURE_MAX_LEVEL | MEASURE_PEAK_LEVEL) |
Definition at line 56 of file af_astats.c.
#define OFFSET | ( | x | ) | offsetof(AudioStatsContext, x) |
Definition at line 97 of file af_astats.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 98 of file af_astats.c.
#define LINEAR_TO_DB | ( | x | ) | (log10(x) * 20) |
Definition at line 338 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define UPDATE_STATS_P | ( | type, | |
update_func, | |||
update_float, | |||
channel_func | |||
) |
Definition at line 476 of file af_astats.c.
#define UPDATE_STATS_I | ( | type, | |
update_func, | |||
update_float, | |||
channel_func | |||
) |
Definition at line 488 of file af_astats.c.
Definition at line 500 of file af_astats.c.
Referenced by filter_frame().
AVFILTER_DEFINE_CLASS | ( | astats | ) |
|
static |
Definition at line 135 of file af_astats.c.
|
static |
Definition at line 169 of file af_astats.c.
Referenced by config_output(), and filter_frame().
|
static |
Definition at line 203 of file af_astats.c.
|
static |
Definition at line 226 of file af_astats.c.
Referenced by check_idct(), check_idct_multiple(), check_ipred(), check_itxfm(), check_loop_filter(), check_loop_filter_intra(), check_loopfilter(), check_mc(), checkasm_check_h264pred(), checkasm_check_h264qpel(), checkasm_check_hevc_add_res(), checkasm_check_hevc_idct(), checkasm_check_hevc_sao(), dnxhd_calc_bits_thread(), dnxhd_init_vlc(), ff_bwdif_init_x86(), ff_get_qtpalette(), ff_isom_get_vpcc_features(), ff_yadif_init_x86(), hl_decode_mb(), hl_decode_mb_444(), matroska_parse_tracks(), mkv_write_track(), pps_scc_extension(), print_stats(), randomize_loopfilter_buffers(), set_metadata(), sps_scc_extension(), vaapi_encode_h265_init_sequence_params(), X264_frame(), and xavs2_init().
|
inlinestatic |
Definition at line 242 of file af_astats.c.
|
inlinestatic |
Definition at line 250 of file af_astats.c.
|
inlinestatic |
Definition at line 306 of file af_astats.c.
|
inlinestatic |
Definition at line 315 of file af_astats.c.
|
static |
Definition at line 324 of file af_astats.c.
Referenced by set_metadata().
|
static |
Definition at line 340 of file af_astats.c.
Referenced by filter_frame().
|
static |
Definition at line 507 of file af_astats.c.
|
static |
Definition at line 562 of file af_astats.c.
Referenced by uninit().
|
static |
Definition at line 701 of file af_astats.c.
|
static |
Definition at line 100 of file af_astats.c.
|
static |
Definition at line 710 of file af_astats.c.
|
static |
Definition at line 719 of file af_astats.c.
AVFilter ff_af_astats |
Definition at line 728 of file af_astats.c.