| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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/tools/neteq_delay_analyzer.h" | 11 #include "webrtc/modules/audio_coding/neteq/tools/neteq_delay_analyzer.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <fstream> | 14 #include <fstream> |
| 15 #include <ios> | 15 #include <ios> |
| 16 #include <iterator> | 16 #include <iterator> |
| 17 #include <limits> | 17 #include <limits> |
| 18 #include <utility> | 18 #include <utility> |
| 19 | 19 |
| 20 #include "webrtc/base/checks.h" | 20 #include "webrtc/rtc_base/checks.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 namespace test { | 23 namespace test { |
| 24 namespace { | 24 namespace { |
| 25 // Helper function for NetEqDelayAnalyzer::CreateGraphs. Returns the | 25 // Helper function for NetEqDelayAnalyzer::CreateGraphs. Returns the |
| 26 // interpolated value of a function at the point x. Vector x_vec contains the | 26 // interpolated value of a function at the point x. Vector x_vec contains the |
| 27 // sample points, and y_vec contains the function values at these points. The | 27 // sample points, and y_vec contains the function values at these points. The |
| 28 // return value is a linear interpolation between y_vec values. | 28 // return value is a linear interpolation between y_vec values. |
| 29 double LinearInterpolate(double x, | 29 double LinearInterpolate(double x, |
| 30 const std::vector<int64_t>& x_vec, | 30 const std::vector<int64_t>& x_vec, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 output << "; Payload Types: " << *pt_it++; | 248 output << "; Payload Types: " << *pt_it++; |
| 249 while (pt_it != payload_types_.end()) { | 249 while (pt_it != payload_types_.end()) { |
| 250 output << ", " << *pt_it++; | 250 output << ", " << *pt_it++; |
| 251 } | 251 } |
| 252 output << "');" << std::endl; | 252 output << "');" << std::endl; |
| 253 } | 253 } |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace test | 256 } // namespace test |
| 257 } // namespace webrtc | 257 } // namespace webrtc |
| OLD | NEW |