Home
last modified time | relevance | path

Searched refs:weight_sum (Results 1 – 7 of 7) sorted by relevance

/third_party/ffmpeg/libavfilter/
Daf_amix.c175 float weight_sum; /**< sum of custom weights for every input */ member
212 float weight_sum = 0.f; in calculate_scales() local
217 weight_sum += FFABS(s->weights[i]); in calculate_scales()
221 if (s->scale_norm[i] > weight_sum / FFABS(s->weights[i])) { in calculate_scales()
222 s->scale_norm[i] -= ((s->weight_sum / FFABS(s->weights[i])) / s->nb_inputs) * in calculate_scales()
224 s->scale_norm[i] = FFMAX(s->scale_norm[i], weight_sum / FFABS(s->weights[i])); in calculate_scales()
275 s->scale_norm[i] = s->weight_sum / FFABS(s->weights[i]); in config_output()
515 s->weight_sum = 0.f; in parse_weights()
520 s->weight_sum += FFABS(last_weight); in parse_weights()
531 s->weight_sum += FFABS(last_weight); in parse_weights()
[all …]
Dvf_minterpolate.c930 int weight_sum = 0; in set_frame_data() local
937 weight_sum += pixel_weights->weights[i]; in set_frame_data()
939 if (!weight_sum || !pixel_refs->nb) { in set_frame_data()
950 weight_sum = ALPHA_MAX; in set_frame_data()
966 val = ROUNDED_DIV(val, weight_sum); in set_frame_data()
/third_party/grpc/src/python/grpcio_tests/tests/stress/
Dtest_runner.py23 weight_sum = sum(weighted_cases.itervalues())
26 val = random.uniform(0, weight_sum)
/third_party/boost/boost/graph/
Drandom.hpp98 weight_type weight_sum(0); in weighted_random_out_edge() local
99 BGL_FORALL_OUTEDGES_T(src, e, g, Graph) { weight_sum += get(weight, e); } in weighted_random_out_edge()
101 ur_type ur(0, weight_sum); in weighted_random_out_edge()
Dmaximum_weighted_matching.hpp31 edge_property_t weight_sum = 0; in matching_weight_sum() local
39 weight_sum += get(edge_weight, g, edge(v, mate[v], g).first); in matching_weight_sum()
41 return weight_sum; in matching_weight_sum()
/third_party/boost/boost/random/
Ddiscrete_distribution.hpp145 WeightType weight_sum = in init_average() local
148 return weight_sum / size; in init_average()
/third_party/ffmpeg/libavcodec/
Derror_resilience.c210 int64_t guess, weight_sum; in guess_dc() local
219 weight_sum = 0; in guess_dc()
224 weight_sum += weight; in guess_dc()
226 guess = (guess + weight_sum / 2) / weight_sum; in guess_dc()