Lines Matching full:allocation

73 // Splits |bitrate| evenly to observers already in |allocation|.
82 std::map<BitrateAllocatorObserver*, int>* allocation) { in DistributeBitrateEvenly() argument
83 RTC_DCHECK_EQ(allocation->size(), allocatable_tracks.size()); in DistributeBitrateEvenly()
88 allocation->at(observer_config.observer) != 0) { in DistributeBitrateEvenly()
99 extra_allocation + allocation->at(it->second->observer); in DistributeBitrateEvenly()
107 // Finally, update the allocation for this observer. in DistributeBitrateEvenly()
108 allocation->at(it->second->observer) = total_allocation; in DistributeBitrateEvenly()
123 std::map<BitrateAllocatorObserver*, int>* allocation) { in DistributeBitrateRelatively() argument
124 RTC_DCHECK_EQ(allocation->size(), allocatable_tracks.size()); in DistributeBitrateRelatively()
170 allocation->at(priority_rate_observer.allocation_key) += in DistributeBitrateRelatively()
182 allocation->at(priority_rate_observer.allocation_key) += in DistributeBitrateRelatively()
192 std::map<BitrateAllocatorObserver*, int> allocation; in LowRateAllocation() local
201 allocation[observer_config.observer] = allocated_bitrate; in LowRateAllocation()
214 allocation[observer_config.observer] = required_bitrate; in LowRateAllocation()
229 allocation[observer_config.observer] = required_bitrate; in LowRateAllocation()
235 // Split a possible remainder evenly on all streams with an allocation. in LowRateAllocation()
238 &allocation); in LowRateAllocation()
240 RTC_DCHECK_EQ(allocation.size(), allocatable_tracks.size()); in LowRateAllocation()
241 return allocation; in LowRateAllocation()
259 std::map<BitrateAllocatorObserver*, int> allocation; in NormalRateAllocation() local
262 allocation[observer_config.observer] = in NormalRateAllocation()
275 allocation[observer_config.observer]; in NormalRateAllocation()
278 allocation[observer_config.observer] += in NormalRateAllocation()
289 observers_capacities, &allocation); in NormalRateAllocation()
291 return allocation; in NormalRateAllocation()
300 std::map<BitrateAllocatorObserver*, int> allocation; in MaxRateAllocation() local
303 allocation[observer_config.observer] = in MaxRateAllocation()
308 kTransmissionMaxBitrateMultiplier, &allocation); in MaxRateAllocation()
309 return allocation; in MaxRateAllocation()
315 std::map<BitrateAllocatorObserver*, int> allocation; in ZeroRateAllocation() local
317 allocation[observer_config.observer] = 0; in ZeroRateAllocation()
318 return allocation; in ZeroRateAllocation()
337 // Not enough for all observers to get an allocation, allocate according to: in AllocateBitrates()
398 auto allocation = AllocateBitrates(allocatable_tracks_, last_target_bps_); in OnNetworkEstimateChanged() local
403 uint32_t allocated_bitrate = allocation[config.observer]; in OnNetworkEstimateChanged()
435 << ", current allocation " << allocated_bitrate in OnNetworkEstimateChanged()
439 // Only update the media ratio if the observer got an allocation. in OnNetworkEstimateChanged()
463 // Calculate a new allocation and update all observers. in AddObserver()
465 auto allocation = AllocateBitrates(allocatable_tracks_, last_target_bps_); in AddObserver() local
469 uint32_t allocated_bitrate = allocation[config.observer]; in AddObserver()
557 // This observer hasn't received an allocation yet, so do the same. in GetStartBitrate()
561 // This observer already has an allocation. in GetStartBitrate()
583 // allocation. in MinBitrateWithHysteresis()