OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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/rtp_rtcp/test/BWEStandAlone/MatlabPlot.h" | 11 #include "webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.h" |
12 | 12 |
13 #include <math.h> | 13 #include <math.h> |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <sstream> | 17 #include <sstream> |
18 | 18 |
19 #ifdef MATLAB | 19 #ifdef MATLAB |
20 #include "engine.h" // NOLINT(build/include) | 20 #include "engine.h" // NOLINT(build/include) |
21 #endif | 21 #endif |
22 | 22 |
23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
24 #include "webrtc/system_wrappers/include/event_wrapper.h" | 24 #include "webrtc/system_wrappers/include/event_wrapper.h" |
25 #include "webrtc/system_wrappers/include/tick_util.h" | 25 #include "webrtc/system_wrappers/include/tick_util.h" |
26 | 26 |
27 using namespace webrtc; | 27 using webrtc::CriticalSectionScoped; |
| 28 using webrtc::CriticalSectionWrapper; |
| 29 using webrtc::EventWrapper; |
| 30 using webrtc::TickTime; |
28 | 31 |
29 #ifdef MATLAB | 32 #ifdef MATLAB |
30 MatlabEngine eng; | 33 MatlabEngine eng; |
31 | 34 |
32 MatlabLine::MatlabLine(int maxLen /*= -1*/, const char *plotAttrib /*= NULL*/, c
onst char *name /*= NULL*/) | 35 MatlabLine::MatlabLine(int maxLen /*= -1*/, const char *plotAttrib /*= NULL*/, c
onst char *name /*= NULL*/) |
33 : | 36 : |
34 _xArray(NULL), | 37 _xArray(NULL), |
35 _yArray(NULL), | 38 _yArray(NULL), |
36 _maxLen(maxLen), | 39 _maxLen(maxLen), |
37 _plotAttribute(), | 40 _plotAttribute(), |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 { | 1049 { |
1047 engClose(ep); | 1050 engClose(ep); |
1048 ep = NULL; | 1051 ep = NULL; |
1049 } | 1052 } |
1050 | 1053 |
1051 return (true); | 1054 return (true); |
1052 | 1055 |
1053 } | 1056 } |
1054 | 1057 |
1055 #endif // MATLAB | 1058 #endif // MATLAB |
OLD | NEW |