OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_ |
13 | 13 |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 | 15 |
| 16 #include "webrtc/base/criticalsection.h" |
16 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 17 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
17 #include "webrtc/rtc_base/criticalsection.h" | |
18 #include "webrtc/test/testsupport/packet_reader.h" | 18 #include "webrtc/test/testsupport/packet_reader.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 // Which mode the packet loss shall be performed according to. | 23 // Which mode the packet loss shall be performed according to. |
24 enum PacketLossMode { | 24 enum PacketLossMode { |
25 // Drops packets with a configured probability independently for each packet | 25 // Drops packets with a configured probability independently for each packet |
26 kUniform, | 26 kUniform, |
27 // Drops packets similar to uniform but when a packet is being dropped, | 27 // Drops packets similar to uniform but when a packet is being dropped, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 int active_burst_packets_; | 106 int active_burst_packets_; |
107 rtc::CriticalSection critsect_; | 107 rtc::CriticalSection critsect_; |
108 unsigned int random_seed_; | 108 unsigned int random_seed_; |
109 bool verbose_; | 109 bool verbose_; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace test | 112 } // namespace test |
113 } // namespace webrtc | 113 } // namespace webrtc |
114 | 114 |
115 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_ | 115 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_PACKET_MANIPULATOR_H_ |
OLD | NEW |