• Home
  • Raw
  • Download

Lines Matching refs:NetEq

93 NetEq::Operation DecisionLogic::GetDecision(const NetEqStatus& status,  in GetDecision()
98 if (status.last_mode == NetEq::Mode::kRfc3389Cng) { in GetDecision()
100 } else if (status.last_mode == NetEq::Mode::kCodecInternalCng) { in GetDecision()
109 (status.last_mode == NetEq::Mode::kAccelerateSuccess || in GetDecision()
110 status.last_mode == NetEq::Mode::kAccelerateLowEnergy || in GetDecision()
111 status.last_mode == NetEq::Mode::kPreemptiveExpandSuccess || in GetDecision()
112 status.last_mode == NetEq::Mode::kPreemptiveExpandLowEnergy); in GetDecision()
116 if (status.last_mode != NetEq::Mode::kRfc3389Cng && in GetDecision()
117 status.last_mode != NetEq::Mode::kCodecInternalCng && in GetDecision()
124 if (status.last_mode == NetEq::Mode::kError) { in GetDecision()
126 return NetEq::Operation::kExpand; in GetDecision()
129 return NetEq::Operation::kUndefined; in GetDecision()
148 return NetEq::Operation::kNormal; in GetDecision()
161 if ((status.last_mode == NetEq::Mode::kExpand || in GetDecision()
162 status.last_mode == NetEq::Mode::kCodecPlc) && in GetDecision()
168 return NetEq::Operation::kExpand; in GetDecision()
186 return NetEq::Operation::kUndefined; in GetDecision()
190 void DecisionLogic::ExpandDecision(NetEq::Operation operation) { in ExpandDecision()
191 if (operation == NetEq::Operation::kExpand) { in ExpandDecision()
245 NetEq::Operation DecisionLogic::CngOperation(NetEq::Mode prev_mode, in CngOperation()
268 if (timestamp_diff < 0 && prev_mode == NetEq::Mode::kRfc3389Cng) { in CngOperation()
271 return NetEq::Operation::kRfc3389CngNoPacket; in CngOperation()
275 return NetEq::Operation::kRfc3389Cng; in CngOperation()
279 NetEq::Operation DecisionLogic::NoPacket(bool play_dtmf) { in NoPacket()
282 return NetEq::Operation::kRfc3389CngNoPacket; in NoPacket()
285 return NetEq::Operation::kCodecInternalCng; in NoPacket()
287 return NetEq::Operation::kDtmf; in NoPacket()
290 return NetEq::Operation::kExpand; in NoPacket()
294 NetEq::Operation DecisionLogic::ExpectedPacketAvailable(NetEq::Mode prev_mode, in ExpectedPacketAvailable()
296 if (!disallow_time_stretching_ && prev_mode != NetEq::Mode::kExpand && in ExpectedPacketAvailable()
309 return NetEq::Operation::kFastAccelerate; in ExpectedPacketAvailable()
312 return NetEq::Operation::kAccelerate; in ExpectedPacketAvailable()
314 return NetEq::Operation::kPreemptiveExpand; in ExpectedPacketAvailable()
317 return NetEq::Operation::kNormal; in ExpectedPacketAvailable()
320 NetEq::Operation DecisionLogic::FuturePacketAvailable( in FuturePacketAvailable()
322 NetEq::Mode prev_mode, in FuturePacketAvailable()
333 if ((prev_mode == NetEq::Mode::kExpand || in FuturePacketAvailable()
334 prev_mode == NetEq::Mode::kCodecPlc) && in FuturePacketAvailable()
339 return NetEq::Operation::kDtmf; in FuturePacketAvailable()
342 return NetEq::Operation::kExpand; in FuturePacketAvailable()
346 if (prev_mode == NetEq::Mode::kCodecPlc) { in FuturePacketAvailable()
347 return NetEq::Operation::kNormal; in FuturePacketAvailable()
351 if (prev_mode == NetEq::Mode::kRfc3389Cng || in FuturePacketAvailable()
352 prev_mode == NetEq::Mode::kCodecInternalCng) { in FuturePacketAvailable()
377 return NetEq::Operation::kNormal; in FuturePacketAvailable()
385 return NetEq::Operation::kNormal; in FuturePacketAvailable()
390 if (prev_mode == NetEq::Mode::kRfc3389Cng) { in FuturePacketAvailable()
391 return NetEq::Operation::kRfc3389CngNoPacket; in FuturePacketAvailable()
394 return NetEq::Operation::kCodecInternalCng; in FuturePacketAvailable()
398 if (prev_mode == NetEq::Mode::kExpand) { in FuturePacketAvailable()
399 return NetEq::Operation::kMerge; in FuturePacketAvailable()
402 return NetEq::Operation::kDtmf; in FuturePacketAvailable()
404 return NetEq::Operation::kExpand; in FuturePacketAvailable()