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.h" | 11 #include "webrtc/modules/audio_coding/neteq/decision_logic.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 | 14 |
15 #include "webrtc/modules/audio_coding/neteq/buffer_level_filter.h" | 15 #include "webrtc/modules/audio_coding/neteq/buffer_level_filter.h" |
16 #include "webrtc/modules/audio_coding/neteq/decision_logic_fax.h" | 16 #include "webrtc/modules/audio_coding/neteq/decision_logic_fax.h" |
17 #include "webrtc/modules/audio_coding/neteq/decision_logic_normal.h" | 17 #include "webrtc/modules/audio_coding/neteq/decision_logic_normal.h" |
18 #include "webrtc/modules/audio_coding/neteq/delay_manager.h" | 18 #include "webrtc/modules/audio_coding/neteq/delay_manager.h" |
19 #include "webrtc/modules/audio_coding/neteq/expand.h" | 19 #include "webrtc/modules/audio_coding/neteq/expand.h" |
20 #include "webrtc/modules/audio_coding/neteq/packet_buffer.h" | 20 #include "webrtc/modules/audio_coding/neteq/packet_buffer.h" |
21 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" | 21 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" |
22 #include "webrtc/system_wrappers/interface/logging.h" | 22 #include "webrtc/system_wrappers/include/logging.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 DecisionLogic* DecisionLogic::Create(int fs_hz, | 26 DecisionLogic* DecisionLogic::Create(int fs_hz, |
27 size_t output_size_samples, | 27 size_t output_size_samples, |
28 NetEqPlayoutMode playout_mode, | 28 NetEqPlayoutMode playout_mode, |
29 DecoderDatabase* decoder_database, | 29 DecoderDatabase* decoder_database, |
30 const PacketBuffer& packet_buffer, | 30 const PacketBuffer& packet_buffer, |
31 DelayManager* delay_manager, | 31 DelayManager* delay_manager, |
32 BufferLevelFilter* buffer_level_filter) { | 32 BufferLevelFilter* buffer_level_filter) { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 177 } |
178 buffer_level_filter_->Update(buffer_size_packets, sample_memory_local, | 178 buffer_level_filter_->Update(buffer_size_packets, sample_memory_local, |
179 packet_length_samples_); | 179 packet_length_samples_); |
180 prev_time_scale_ = false; | 180 prev_time_scale_ = false; |
181 } | 181 } |
182 | 182 |
183 timescale_hold_off_ = std::max(timescale_hold_off_ - 1, 0); | 183 timescale_hold_off_ = std::max(timescale_hold_off_ - 1, 0); |
184 } | 184 } |
185 | 185 |
186 } // namespace webrtc | 186 } // namespace webrtc |
OLD | NEW |