OLD | NEW |
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 |
11 #include <math.h> | 11 #include <math.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" | 14 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
| 15 #include "webrtc/base/checks.h" |
15 #include "webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h" | 16 #include "webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h" |
16 #include "webrtc/modules/audio_coding/neteq/tools/output_audio_file.h" | 17 #include "webrtc/modules/audio_coding/neteq/tools/output_audio_file.h" |
17 #include "webrtc/modules/audio_coding/neteq/tools/output_wav_file.h" | 18 #include "webrtc/modules/audio_coding/neteq/tools/output_wav_file.h" |
18 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" | 19 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" |
19 #include "webrtc/rtc_base/checks.h" | |
20 #include "webrtc/test/testsupport/fileutils.h" | 20 #include "webrtc/test/testsupport/fileutils.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 namespace test { | 23 namespace test { |
24 | 24 |
25 const uint8_t kPayloadType = 95; | 25 const uint8_t kPayloadType = 95; |
26 const int kOutputSizeMs = 10; | 26 const int kOutputSizeMs = 10; |
27 const int kInitSeed = 0x12345678; | 27 const int kInitSeed = 0x12345678; |
28 const int kPacketLossTimeUnitMs = 10; | 28 const int kPacketLossTimeUnitMs = 10; |
29 | 29 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 } | 432 } |
433 } | 433 } |
434 Log() << "Average bit rate was " | 434 Log() << "Average bit rate was " |
435 << 8.0f * total_payload_size_bytes_ / FLAGS_runtime_ms | 435 << 8.0f * total_payload_size_bytes_ / FLAGS_runtime_ms |
436 << " kbps" | 436 << " kbps" |
437 << std::endl; | 437 << std::endl; |
438 } | 438 } |
439 | 439 |
440 } // namespace test | 440 } // namespace test |
441 } // namespace webrtc | 441 } // namespace webrtc |
OLD | NEW |