modules/video_coding/qm_select.cc
float VCMQmRobustness::AdjustFecFactor(uint8_t code_rate_delta,
                                       float total_rate,
                                       float framerate,
                                       int64_t rtt_time,
                                       uint8_t packet_loss) {
  // Default: no adjustment
  float adjust_fec = 1.0f;
  if (content_metrics_ == NULL) {
    return adjust_fec;
  }
  // Compute class state of the content.
  ComputeMotionNFD();
  ComputeSpatial();

  // TODO(marpan): Set FEC adjustment factor.

  // Keep track of previous values of network state:
  // adjustment may be also based on pattern of changes in network state.
  prev_total_rate_ = total_rate;
  prev_rtt_time_ = rtt_time;
  prev_packet_loss_ = packet_loss;
  prev_code_rate_delta_ = code_rate_delta;
  return adjust_fec;
}
// Adjust the FEC rate based on the content and the network state
// (packet loss rate, total rate/bandwidth, round trip time).
// Note that packetLoss here is the filtered loss value.
Adjust the FEC rate based on the content and the network state
(packet loss rate, total rate/bandwidth, round trip time).
Note that packetLoss here is the filtered loss value.
Adjust the FEC rate based on the content and the network state ( packet loss rate total rate / bandwidth round trip time ) . Note that packetLoss here is the filtered loss value .
float VCMQmRobustness::AdjustFecFactor(uint8_t code_rate_delta,
                                       float total_rate,
                                       float framerate,
                                       int64_t rtt_time,
                                       uint8_t packet_loss) {
  float adjust_fec = 1.0f;
  if (content_metrics_ == NULL) {
    return adjust_fec;
  }
  ComputeMotionNFD();
  ComputeSpatial();
  prev_total_rate_ = total_rate;
  prev_rtt_time_ = rtt_time;
  prev_packet_loss_ = packet_loss;
  prev_code_rate_delta_ = code_rate_delta;
  return adjust_fec;
}
float VCMQmRobustness :: AdjustFecFactor ( uint8_t code_rate_delta , float total_rate , float framerate , int64_t rtt_time , uint8_t packet_loss ) { float adjust_fec = 1.0f ; if ( content_metrics_ == NULL ) { return adjust_fec ; } ComputeMotionNFD ( ) ; ComputeSpatial ( ) ; prev_total_rate_ = total_rate ; prev_rtt_time_ = rtt_time ; prev_packet_loss_ = packet_loss ; prev_code_rate_delta_ = code_rate_delta ; return adjust_fec ; }
Adjust the FEC rate based on the content and the network state
(packet loss rate, total rate/bandwidth, round trip time).
Adjust the FEC rate based on the content and the network state ( packet loss rate total rate / bandwidth round trip time ) .
// Default: no adjustment // Compute class state of the content. // TODO(marpan): Set FEC adjustment factor. // Keep track of previous values of network state: // adjustment may be also based on pattern of changes in network state.