Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: webrtc/modules/audio_coding/neteq/decision_logic.cc

Issue 1461903004: NetEq: Remove overly verbose logging (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } else if (prev_mode == kModeCodecInternalCng) { 121 } else if (prev_mode == kModeCodecInternalCng) {
122 cng_state_ = kCngInternalOn; 122 cng_state_ = kCngInternalOn;
123 } 123 }
124 } 124 }
125 125
126 const size_t samples_left = 126 const size_t samples_left =
127 sync_buffer.FutureLength() - expand.overlap_length(); 127 sync_buffer.FutureLength() - expand.overlap_length();
128 const size_t cur_size_samples = 128 const size_t cur_size_samples =
129 samples_left + packet_buffer_.NumSamplesInBuffer(decoder_database_, 129 samples_left + packet_buffer_.NumSamplesInBuffer(decoder_database_,
130 decoder_frame_length); 130 decoder_frame_length);
131 LOG(LS_VERBOSE) << "Buffers: " << packet_buffer_.NumPacketsInBuffer() <<
132 " packets * " << decoder_frame_length << " samples/packet + " <<
133 samples_left << " samples in sync buffer = " << cur_size_samples;
134 131
135 prev_time_scale_ = prev_time_scale_ && 132 prev_time_scale_ = prev_time_scale_ &&
136 (prev_mode == kModeAccelerateSuccess || 133 (prev_mode == kModeAccelerateSuccess ||
137 prev_mode == kModeAccelerateLowEnergy || 134 prev_mode == kModeAccelerateLowEnergy ||
138 prev_mode == kModePreemptiveExpandSuccess || 135 prev_mode == kModePreemptiveExpandSuccess ||
139 prev_mode == kModePreemptiveExpandLowEnergy); 136 prev_mode == kModePreemptiveExpandLowEnergy);
140 137
141 FilterBufferLevel(cur_size_samples, prev_mode); 138 FilterBufferLevel(cur_size_samples, prev_mode);
142 139
143 return GetDecisionSpecialized(sync_buffer, expand, decoder_frame_length, 140 return GetDecisionSpecialized(sync_buffer, expand, decoder_frame_length,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 174 }
178 buffer_level_filter_->Update(buffer_size_packets, sample_memory_local, 175 buffer_level_filter_->Update(buffer_size_packets, sample_memory_local,
179 packet_length_samples_); 176 packet_length_samples_);
180 prev_time_scale_ = false; 177 prev_time_scale_ = false;
181 } 178 }
182 179
183 timescale_hold_off_ = std::max(timescale_hold_off_ - 1, 0); 180 timescale_hold_off_ = std::max(timescale_hold_off_ - 1, 0);
184 } 181 }
185 182
186 } // namespace webrtc 183 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/neteq/neteq_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698