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

Side by Side Diff: webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.cc

Issue 1424083002: Make an enum class out of NetEqDecoder, and hide the neteq_decoders_ table (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 201 }
202 f = pow(x, units - 1) + a * x + b; 202 f = pow(x, units - 1) + a * x + b;
203 iter ++; 203 iter ++;
204 } 204 }
205 return x; 205 return x;
206 } 206 }
207 207
208 NetEqQualityTest::NetEqQualityTest(int block_duration_ms, 208 NetEqQualityTest::NetEqQualityTest(int block_duration_ms,
209 int in_sampling_khz, 209 int in_sampling_khz,
210 int out_sampling_khz, 210 int out_sampling_khz,
211 enum NetEqDecoder decoder_type) 211 NetEqDecoder decoder_type)
212 : decoder_type_(decoder_type), 212 : decoder_type_(decoder_type),
213 channels_(FLAGS_channels), 213 channels_(FLAGS_channels),
214 decoded_time_ms_(0), 214 decoded_time_ms_(0),
215 decodable_time_ms_(0), 215 decodable_time_ms_(0),
216 drift_factor_(FLAGS_drift_factor), 216 drift_factor_(FLAGS_drift_factor),
217 packet_loss_rate_(FLAGS_packet_loss_rate), 217 packet_loss_rate_(FLAGS_packet_loss_rate),
218 block_duration_ms_(block_duration_ms), 218 block_duration_ms_(block_duration_ms),
219 in_sampling_khz_(in_sampling_khz), 219 in_sampling_khz_(in_sampling_khz),
220 out_sampling_khz_(out_sampling_khz), 220 out_sampling_khz_(out_sampling_khz),
221 in_size_samples_( 221 in_size_samples_(
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 } 426 }
427 } 427 }
428 Log() << "Average bit rate was " 428 Log() << "Average bit rate was "
429 << 8.0f * total_payload_size_bytes_ / FLAGS_runtime_ms 429 << 8.0f * total_payload_size_bytes_ / FLAGS_runtime_ms
430 << " kbps" 430 << " kbps"
431 << std::endl; 431 << std::endl;
432 } 432 }
433 433
434 } // namespace test 434 } // namespace test
435 } // namespace webrtc 435 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h ('k') | webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698