OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 <iostream> | 11 #include <iostream> |
12 #include <sstream> | 12 #include <sstream> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "gflags/gflags.h" | 15 #include "gflags/gflags.h" |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
| 18 #include "webrtc/call/rtc_event_log.h" |
18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
19 #include "webrtc/test/rtp_file_writer.h" | 20 #include "webrtc/test/rtp_file_writer.h" |
20 #include "webrtc/video/rtc_event_log.h" | |
21 | 21 |
22 // Files generated at build-time by the protobuf compiler. | 22 // Files generated at build-time by the protobuf compiler. |
23 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 23 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
24 #include "external/webrtc/webrtc/video/rtc_event_log.pb.h" | 24 #include "external/webrtc/webrtc/call/rtc_event_log.pb.h" |
25 #else | 25 #else |
26 #include "webrtc/video/rtc_event_log.pb.h" | 26 #include "webrtc/call/rtc_event_log.pb.h" |
27 #endif | 27 #endif |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 DEFINE_bool(noaudio, | 31 DEFINE_bool(noaudio, |
32 false, | 32 false, |
33 "Excludes audio packets from the converted RTPdump file."); | 33 "Excludes audio packets from the converted RTPdump file."); |
34 DEFINE_bool(novideo, | 34 DEFINE_bool(novideo, |
35 false, | 35 false, |
36 "Excludes video packets from the converted RTPdump file."); | 36 "Excludes video packets from the converted RTPdump file."); |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } else { | 198 } else { |
199 std::cout << "Skipping malformed event." << std::endl; | 199 std::cout << "Skipping malformed event." << std::endl; |
200 } | 200 } |
201 } | 201 } |
202 } | 202 } |
203 std::cout << "Wrote " << rtp_counter << (header_only ? " header-only" : "") | 203 std::cout << "Wrote " << rtp_counter << (header_only ? " header-only" : "") |
204 << " RTP packets and " << rtcp_counter << " RTCP packets to the " | 204 << " RTP packets and " << rtcp_counter << " RTCP packets to the " |
205 << "output file." << std::endl; | 205 << "output file." << std::endl; |
206 return 0; | 206 return 0; |
207 } | 207 } |
OLD | NEW |