49 #define OFFSET(x) offsetof(AudioStatsContext, x)
50 #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
115 }
else if (d == p->
min) {
118 }
else if (p->
last == p->
min) {
127 }
else if (d == p->
max) {
130 }
else if (p->
last == p->
max) {
155 for (c = 0; c < channels; c++) {
167 for (c = 0; c < channels; c++, src++)
176 #define LINEAR_TO_DB(x) (log10(x) * 20)
181 uint64_t min_count = 0, max_count = 0, nb_samples = 0;
182 double min_runs = 0, max_runs = 0,
183 min = DBL_MAX, max = DBL_MIN,
187 min_sigma_x2 = DBL_MAX,
188 max_sigma_x2 = DBL_MIN;
208 if (fabs(p->
sigma_x) > fabs(max_sigma_x))
232 if (min_sigma_x2 != 1)
270 .priv_class = &astats_class,