OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/audio_coding/neteq/decision_logic_normal.h" | 11 #include "webrtc/modules/audio_coding/neteq/decision_logic_normal.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 | 16 |
17 #include "webrtc/modules/audio_coding/neteq/buffer_level_filter.h" | 17 #include "webrtc/modules/audio_coding/neteq/buffer_level_filter.h" |
18 #include "webrtc/modules/audio_coding/neteq/decoder_database.h" | 18 #include "webrtc/modules/audio_coding/neteq/decoder_database.h" |
19 #include "webrtc/modules/audio_coding/neteq/delay_manager.h" | 19 #include "webrtc/modules/audio_coding/neteq/delay_manager.h" |
20 #include "webrtc/modules/audio_coding/neteq/expand.h" | 20 #include "webrtc/modules/audio_coding/neteq/expand.h" |
21 #include "webrtc/modules/audio_coding/neteq/packet_buffer.h" | 21 #include "webrtc/modules/audio_coding/neteq/packet_buffer.h" |
22 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" | 22 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" |
23 #include "webrtc/modules/interface/module_common_types.h" | 23 #include "webrtc/modules/include/module_common_types.h" |
24 | 24 |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 Operations DecisionLogicNormal::GetDecisionSpecialized( | 27 Operations DecisionLogicNormal::GetDecisionSpecialized( |
28 const SyncBuffer& sync_buffer, | 28 const SyncBuffer& sync_buffer, |
29 const Expand& expand, | 29 const Expand& expand, |
30 size_t decoder_frame_length, | 30 size_t decoder_frame_length, |
31 const RTPHeader* packet_header, | 31 const RTPHeader* packet_header, |
32 Modes prev_mode, | 32 Modes prev_mode, |
33 bool play_dtmf, | 33 bool play_dtmf, |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 bool DecisionLogicNormal::PacketTooEarly(uint32_t timestamp_leap) const { | 229 bool DecisionLogicNormal::PacketTooEarly(uint32_t timestamp_leap) const { |
230 return timestamp_leap > | 230 return timestamp_leap > |
231 static_cast<uint32_t>(output_size_samples_ * num_consecutive_expands_); | 231 static_cast<uint32_t>(output_size_samples_ * num_consecutive_expands_); |
232 } | 232 } |
233 | 233 |
234 bool DecisionLogicNormal::MaxWaitForPacket() const { | 234 bool DecisionLogicNormal::MaxWaitForPacket() const { |
235 return num_consecutive_expands_ >= kMaxWaitForPacket; | 235 return num_consecutive_expands_ >= kMaxWaitForPacket; |
236 } | 236 } |
237 | 237 |
238 } // namespace webrtc | 238 } // namespace webrtc |
OLD | NEW |