webrtc delay_estimator.c ..如何选择最佳延迟?

时间:2017-05-16 16:38:15

标签: webrtc

我对此代码有疑问。

这是寻找延迟的代码。 It's the code for finding delay.

为了估计延迟, 在我看来,我应该找到数组mean_bit_counts[]中的最大值,但在图片中,他们选择最小的值。你能解决我的问题吗?谢谢!

// Find |candidate_delay|, |value_best_candidate| and |value_worst_candidate|
// of |mean_bit_counts|.

for (i = 0; i < self->history_size; i++) {
   if (self->mean_bit_counts[i] < value_best_candidate) {
     value_best_candidate = self->mean_bit_counts[I];
     candidate_delay = I;
   }
   if (self->mean_bit_counts[i] > value_worst_candidate) {
     value_worst_candidate = self->mean_bit_counts[I];
   }
 }
 valley_depth = value_worst_candidate - value_best_candidate;

paper

0 个答案:

没有答案