FFmpeg
|
#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 |
Variables | |
static const AVOption | astats_options [] |
static const AVFilterPad | astats_inputs [] |
static const AVFilterPad | astats_outputs [] |
AVFilter | ff_af_astats |
#define HISTOGRAM_SIZE 8192 |
Definition at line 30 of file af_astats.c.
#define HISTOGRAM_MAX (HISTOGRAM_SIZE-1) |
Definition at line 31 of file af_astats.c.
Referenced by update_stat().
#define MEASURE_ALL UINT_MAX |
Definition at line 33 of file af_astats.c.
#define MEASURE_NONE 0 |
Definition at line 34 of file af_astats.c.
#define MEASURE_DC_OFFSET (1 << 0) |
Definition at line 36 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MIN_LEVEL (1 << 1) |
Definition at line 37 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MAX_LEVEL (1 << 2) |
Definition at line 38 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MIN_DIFFERENCE (1 << 3) |
Definition at line 39 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MAX_DIFFERENCE (1 << 4) |
Definition at line 40 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_MEAN_DIFFERENCE (1 << 5) |
Definition at line 41 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_DIFFERENCE (1 << 6) |
Definition at line 42 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_PEAK_LEVEL (1 << 7) |
Definition at line 43 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_LEVEL (1 << 8) |
Definition at line 44 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_PEAK (1 << 9) |
Definition at line 45 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_RMS_TROUGH (1 << 10) |
Definition at line 46 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_CREST_FACTOR (1 << 11) |
Definition at line 47 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_FLAT_FACTOR (1 << 12) |
Definition at line 48 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_PEAK_COUNT (1 << 13) |
Definition at line 49 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_BIT_DEPTH (1 << 14) |
Definition at line 50 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_DYNAMIC_RANGE (1 << 15) |
Definition at line 51 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_ZERO_CROSSINGS (1 << 16) |
Definition at line 52 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_ZERO_CROSSINGS_RATE (1 << 17) |
Definition at line 53 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_SAMPLES (1 << 18) |
Definition at line 54 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_NANS (1 << 19) |
Definition at line 55 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_INFS (1 << 20) |
Definition at line 56 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NUMBER_OF_DENORMALS (1 << 21) |
Definition at line 57 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NOISE_FLOOR (1 << 22) |
Definition at line 58 of file af_astats.c.
Referenced by print_stats(), and set_metadata().
#define MEASURE_NOISE_FLOOR_COUNT (1 << 23) |
Definition at line 59 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 61 of file af_astats.c.
#define OFFSET | ( | x | ) | offsetof(AudioStatsContext, x) |
Definition at line 108 of file af_astats.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 109 of file af_astats.c.
#define LINEAR_TO_DB | ( | x | ) | (log10(x) * 20) |
Definition at line 407 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 556 of file af_astats.c.
#define UPDATE_STATS_I | ( | type, | |
update_func, | |||
update_float, | |||
channel_func | |||
) |
Definition at line 568 of file af_astats.c.
Definition at line 580 of file af_astats.c.
Referenced by filter_channel().
AVFILTER_DEFINE_CLASS | ( | astats | ) |
|
static |
Definition at line 148 of file af_astats.c.
|
static |
Definition at line 182 of file af_astats.c.
Referenced by config_output(), and filter_frame().
|
static |
Definition at line 221 of file af_astats.c.
|
static |
Definition at line 254 of file af_astats.c.
Referenced by call_resize_kernel(), 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_epel(), checkasm_check_hevc_epel_bi(), checkasm_check_hevc_epel_bi_w(), checkasm_check_hevc_epel_uni(), checkasm_check_hevc_epel_uni_w(), checkasm_check_hevc_idct(), checkasm_check_hevc_qpel(), checkasm_check_hevc_qpel_bi(), checkasm_check_hevc_qpel_bi_w(), checkasm_check_hevc_qpel_uni(), checkasm_check_hevc_qpel_uni_w(), checkasm_check_hevc_sao(), dnxhd_calc_bits_thread(), ff_bwdif_init_x86(), ff_get_qtpalette(), ff_isom_get_vpcc_features(), ff_yadif_init_x86(), get_pixel_format(), 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_av1_get_bit_depth_idx(), vaapi_encode_h265_init_sequence_params(), X264_frame(), and xavs2_init().
|
inlinestatic |
Definition at line 270 of file af_astats.c.
|
inlinestatic |
Definition at line 278 of file af_astats.c.
|
inlinestatic |
Definition at line 375 of file af_astats.c.
|
inlinestatic |
Definition at line 384 of file af_astats.c.
|
static |
Definition at line 393 of file af_astats.c.
Referenced by do_vif(), and set_metadata().
|
static |
Definition at line 409 of file af_astats.c.
Referenced by filter_frame().
|
static |
Definition at line 587 of file af_astats.c.
Referenced by filter_frame().
|
static |
Definition at line 634 of file af_astats.c.
|
static |
Definition at line 656 of file af_astats.c.
Referenced by uninit().
|
static |
Definition at line 806 of file af_astats.c.
|
static |
Definition at line 111 of file af_astats.c.
|
static |
Definition at line 822 of file af_astats.c.
|
static |
Definition at line 831 of file af_astats.c.
AVFilter ff_af_astats |
Definition at line 840 of file af_astats.c.