| /webrtc/constraints/src/algorithms/ |
| H A D | fitness_distance.rs | 18 fn fitness_distance(&self, subject: Subject) -> Result<f64, Self::Error>; in fitness_distance() argument 35 fn nearly_cmp(lhs: f64, rhs: f64) -> Ordering { in nearly_cmp() argument 38 let epsilon: f64 = 128.0 * f64::EPSILON; in nearly_cmp() 39 let abs_th: f64 = f64::MIN; in nearly_cmp() 48 let norm = (lhs.abs() + rhs.abs()).min(f64::MAX); in nearly_cmp() 59 fn is_nearly_greater_than_or_equal_to(actual: f64, min: f64) -> bool { in is_nearly_greater_than_or_equal_to() argument 63 fn is_nearly_less_than_or_equal_to(actual: f64, max: f64) -> bool { in is_nearly_less_than_or_equal_to() argument 67 fn is_nearly_equal_to(actual: f64, exact: f64) -> bool { in is_nearly_equal_to() argument 71 fn relative_fitness_distance(actual: f64, ideal: f64) -> f64 { in relative_fitness_distance() argument 81 if (actual - ideal).abs() < f64::EPSILON { in relative_fitness_distance() [all …]
|
| /webrtc/constraints/src/algorithms/fitness_distance/value_constraint/tests/ |
| H A D | f64.rs | 17 settings: f64 => &[Some(42.0)], 20 constraints: f64 => &[ 77 setting: f64 => Some(1.0), in f64_setting() 85 setting: f64 => Some(2.0), in f64_setting() 93 setting: f64 => Some(3.0), in f64_setting() 119 settings: f64 => &[Some(0.0)], 145 settings: f64 => &[Some(42.0)], 170 settings: f64 => &[None], 173 constraints: f64 => &[ 201 constraints: f64 => &[ [all …]
|
| H A D | u64.rs | 17 settings: f64 => &[Some(42.0)], 77 setting: f64 => Some(1.0), in f64_setting() 85 setting: f64 => Some(2.0), in f64_setting() 93 setting: f64 => Some(3.0), in f64_setting() 119 settings: f64 => &[None, Some(0.0)], 145 settings: f64 => &[Some(42.0)], 170 settings: f64 => &[None], 222 settings: f64 => &[Some(0.0)],
|
| H A D | bool.rs | 41 settings: f64 => &[Some(42.0)], 181 settings: f64 => &[Some(42.0)], 209 settings: f64 => &[None], 241 settings: f64 => &[Some(42.0)], 269 settings: f64 => &[None],
|
| /webrtc/constraints/src/algorithms/fitness_distance/ |
| H A D | value_range_constraint.rs | 22 Some(&actual) if super::is_nearly_equal_to(actual as f64, exact as f64) => { 52 actual as f64, 53 min as f64, 83 actual as f64, 84 max as f64, 106 let actual: f64 = actual as f64; 107 let ideal: f64 = ideal as f64; 142 impl_value_range_constraint!(setting: f64, constraint: f64); 144 impl_value_range_constraint!(setting: i64, constraint: f64); 145 impl_value_range_constraint!(setting: f64, constraint: u64); [all …]
|
| H A D | value_constraint.rs | 17 fn fitness_distance(&self, setting: Option<&'a $s>) -> Result<f64, Self::Error> { 92 fn fitness_distance(&self, setting: Option<&'a $s>) -> Result<f64, Self::Error> { 102 Some(&actual) if super::is_nearly_equal_to(actual as f64, exact as f64) => { 124 let actual: f64 = actual as f64; 125 let ideal: f64 = ideal as f64; 160 impl_numeric_value_constraint!(setting: f64, constraint: f64); 162 impl_numeric_value_constraint!(setting: i64, constraint: f64); 163 impl_numeric_value_constraint!(setting: f64, constraint: u64); 175 fn fitness_distance(&self, setting: Option<&'a $s>) -> Result<f64, Self::Error> { 217 impl_exists_value_constraint!(settings: [String, i64, f64], constraint: bool);
|
| H A D | value_sequence_constraint.rs | 15 fn fitness_distance(&self, setting: Option<&'a $s>) -> Result<f64, Self::Error> { 86 fn fitness_distance(&self, setting: Option<&'a $s>) -> Result<f64, Self::Error> { 132 let actual: f64 = actual as f64; 135 let ideal: f64 = (*ideal) as f64; 169 impl_numeric_value_sequence_constraint!(setting: f64, constraint: f64); 171 impl_numeric_value_sequence_constraint!(setting: i64, constraint: f64); 172 impl_numeric_value_sequence_constraint!(setting: f64, constraint: u64);
|
| H A D | empty_constraint.rs | 8 fn fitness_distance(&self, _setting: Option<&'a T>) -> Result<f64, Self::Error> { in fitness_distance() argument 65 fn f64() { in f64() function 67 settings: f64 => &[None, Some(42.0)], in f64()
|
| /webrtc/constraints/src/algorithms/fitness_distance/value_sequence_constraint/tests/ |
| H A D | f64.rs | 19 settings: f64 => &[Some(42.0)], 22 constraints: f64 => &[ 79 setting: f64 => Some(1.0), in f64_setting() 87 setting: f64 => Some(2.0), in f64_setting() 95 setting: f64 => Some(3.0), in f64_setting() 121 settings: f64 => &[Some(0.0)], 147 settings: f64 => &[Some(42.0)], 173 settings: f64 => &[None], 176 constraints: f64 => &[ 204 constraints: f64 => &[ [all …]
|
| H A D | u64.rs | 19 settings: f64 => &[Some(42.0)], 79 setting: f64 => Some(1.0), in f64_setting() 87 setting: f64 => Some(2.0), in f64_setting() 95 setting: f64 => Some(3.0), in f64_setting() 121 settings: f64 => &[None, Some(0.0)], 147 settings: f64 => &[Some(42.0)], 172 settings: f64 => &[None], 224 settings: f64 => &[Some(0.0)],
|
| /webrtc/constraints/src/algorithms/fitness_distance/value_range_constraint/tests/ |
| H A D | f64.rs | 19 settings: f64 => &[Some(42.0)], 42 constraints: f64 => &[ 103 setting: f64 => Some(1.0), in f64_setting() 113 setting: f64 => Some(2.0), in f64_setting() 123 setting: f64 => Some(3.0), in f64_setting() 151 settings: f64 => &[Some(0.0)], 202 constraints: f64 => &[ 228 settings: f64 => &[None], 231 constraints: f64 => &[ 263 constraints: f64 => &[ [all …]
|
| H A D | u64.rs | 19 settings: f64 => &[Some(42.0)], 103 setting: f64 => Some(1.0), in f64_setting() 113 setting: f64 => Some(2.0), in f64_setting() 123 setting: f64 => Some(3.0), in f64_setting() 151 settings: f64 => &[None, Some(0.0)], 179 settings: f64 => &[Some(42.0)], 228 settings: f64 => &[None], 288 settings: f64 => &[Some(0.0)],
|
| H A D | empty.rs | 48 settings: f64 => &[Some(42.0)], 73 constraint: f64,
|
| /webrtc/interceptor/src/stats/ |
| H A D | mod.rs | 47 remote_round_trip_time: Option<f64>, 50 remote_total_round_trip_time: f64, 124 remote_round_trip_time: Option<f64>, 127 remote_total_round_trip_time: f64, 177 pub fn remote_total_round_trip_time(&self) -> f64 { in remote_total_round_trip_time() argument 241 remote_round_trip_time: Option<f64>, 244 remote_total_round_trip_time: f64, 356 remote_round_trip_time: Option<f64>, 359 remote_total_round_trip_time: f64, 366 remote_fraction_lost: Option<f64>, [all …]
|
| /webrtc/ice/src/stats/ |
| H A D | mod.rs | 67 pub total_round_trip_time: f64, 72 pub current_round_trip_time: f64, 80 pub available_outgoing_bitrate: f64, 88 pub available_incoming_bitrate: f64,
|
| /webrtc/sctp/src/timer/ |
| H A D | rtx_timer.rs | 22 pub(crate) rttvar: f64, 45 self.rttvar = rtt as f64 / 2.0; in set_new_rtt() 48 self.rttvar = ((RTO_BASE - RTO_BETA) as f64 * self.rttvar in set_new_rtt() 49 + RTO_BETA as f64 * (self.srtt as i64 - rtt as i64).abs() as f64) in set_new_rtt() 50 / RTO_BASE as f64; in set_new_rtt()
|
| /webrtc/interceptor/src/report/receiver/ |
| H A D | receiver_stream.rs | 12 clock_rate: f64, 21 jitter: f64, 76 - (pkt.header.timestamp as f64 - self.last_rtp_time_rtp as f64); in process_rtp() 124 fraction_lost: ((total_lost_since_report * 256) as f64 / total_since_report as f64) in generate_report() 170 clock_rate: clock_rate as f64, in new()
|
| /webrtc/constraints/src/ |
| H A D | constraint.rs | 67 FloatRange(ValueRangeConstraint<f64>), 128 impl From<f64> for MediaTrackConstraint { 129 fn from(bare: f64) -> Self { in from() 134 impl From<ResolvedValueRangeConstraint<f64>> for MediaTrackConstraint { 135 fn from(constraint: ResolvedValueRangeConstraint<f64>) -> Self { in from() 140 impl From<ValueRangeConstraint<f64>> for MediaTrackConstraint { 141 fn from(constraint: ValueRangeConstraint<f64>) -> Self { in from() 283 FloatRange(ResolvedValueRangeConstraint<f64>), 330 fn from(constraint: ResolvedValueRangeConstraint<f64>) -> Self { in from() 538 Subject::from(ValueRangeConstraint::<f64>::default()), in float_range() [all …]
|
| H A D | setting.rs | 23 Float(f64), 51 impl From<f64> for MediaTrackSetting { 52 fn from(setting: f64) -> Self { in from()
|
| H A D | capability.rs | 40 FloatRange(MediaTrackValueRangeCapability<f64>), 68 impl From<RangeInclusive<f64>> for MediaTrackCapability { 69 fn from(capability: RangeInclusive<f64>) -> Self { in from()
|
| /webrtc/rtp/src/codecs/g7xx/ |
| H A D | g7xx_test.rs | 21 let outcnt = ((TEST_LEN as f64) / (TEST_MTU as f64)).ceil() as usize; in test_g7xx_payload()
|
| /webrtc/ice/src/agent/ |
| H A D | agent_stats.rs | 63 pub total_round_trip_time: f64, 67 pub current_round_trip_time: f64, 74 pub available_outgoing_bitrate: f64, 81 pub available_incoming_bitrate: f64,
|
| /webrtc/webrtc/src/stats/ |
| H A D | mod.rs | 162 pub total_round_trip_time: f64, 163 pub current_round_trip_time: f64, 164 pub available_outgoing_bitrate: f64, 165 pub available_incoming_bitrate: f64, 552 pub round_trip_time: Option<f64>, 553 pub total_round_trip_time: f64, 554 pub fraction_lost: f64, 581 pub round_trip_time: Option<f64>, 583 pub total_round_trip_time: f64,
|
| H A D | serialize.rs | 23 let epoch_ms = epoch.as_millis() as f64 / 1000.0; in serialize()
|
| /webrtc/constraints/src/algorithms/select_settings/ |
| H A D | select_optimal.rs | 5 I: IntoIterator<Item = (&'a MediaTrackSettings, f64)>, in select_optimal_candidates() argument 8 let mut optimal_fitness_distance = f64::INFINITY; in select_optimal_candidates()
|