Lines Matching refs:allocated_bitrate

45 double MediaRatio(uint32_t allocated_bitrate, uint32_t protection_bitrate) {  in MediaRatio()  argument
46 RTC_DCHECK_GT(allocated_bitrate, 0); in MediaRatio()
50 uint32_t media_bitrate = allocated_bitrate - protection_bitrate; in MediaRatio()
51 return media_bitrate / static_cast<double>(allocated_bitrate); in MediaRatio()
197 int32_t allocated_bitrate = 0; in LowRateAllocation() local
199 allocated_bitrate = observer_config.config.min_bitrate_bps; in LowRateAllocation()
201 allocation[observer_config.observer] = allocated_bitrate; in LowRateAllocation()
202 remaining_bitrate -= allocated_bitrate; in LowRateAllocation()
403 uint32_t allocated_bitrate = allocation[config.observer]; in OnNetworkEstimateChanged() local
407 update.target_bitrate = DataRate::BitsPerSec(allocated_bitrate); in OnNetworkEstimateChanged()
416 if (allocated_bitrate == 0 && config.allocated_bitrate_bps > 0) { in OnNetworkEstimateChanged()
429 } else if (allocated_bitrate > 0 && config.allocated_bitrate_bps == 0) { in OnNetworkEstimateChanged()
435 << ", current allocation " << allocated_bitrate in OnNetworkEstimateChanged()
440 if (allocated_bitrate > 0) in OnNetworkEstimateChanged()
441 config.media_ratio = MediaRatio(allocated_bitrate, protection_bitrate); in OnNetworkEstimateChanged()
442 config.allocated_bitrate_bps = allocated_bitrate; in OnNetworkEstimateChanged()
469 uint32_t allocated_bitrate = allocation[config.observer]; in AddObserver() local
473 update.target_bitrate = DataRate::BitsPerSec(allocated_bitrate); in AddObserver()
480 config.allocated_bitrate_bps = allocated_bitrate; in AddObserver()
481 if (allocated_bitrate > 0) in AddObserver()
482 config.media_ratio = MediaRatio(allocated_bitrate, protection_bitrate); in AddObserver()