Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: webrtc/video/rtc_event_log.h

Issue 1257163003: Changed LogRtpHeader to read the header length from the packet (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changed integer literals to unsigned Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/video/rtc_event_log.cc » ('j') | webrtc/video/rtc_event_log_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void StopLogging() = 0; 47 virtual void StopLogging() = 0;
48 48
49 // Logs configuration information for webrtc::VideoReceiveStream 49 // Logs configuration information for webrtc::VideoReceiveStream
50 virtual void LogVideoReceiveStreamConfig( 50 virtual void LogVideoReceiveStreamConfig(
51 const webrtc::VideoReceiveStream::Config& config) = 0; 51 const webrtc::VideoReceiveStream::Config& config) = 0;
52 52
53 // Logs configuration information for webrtc::VideoSendStream 53 // Logs configuration information for webrtc::VideoSendStream
54 virtual void LogVideoSendStreamConfig( 54 virtual void LogVideoSendStreamConfig(
55 const webrtc::VideoSendStream::Config& config) = 0; 55 const webrtc::VideoSendStream::Config& config) = 0;
56 56
57 // Logs the header of an incoming or outgoing RTP packet. 57 // Logs the header of an incoming or outgoing RTP packet. packet_length
58 // is the total length of the packet, including both header and payload.
58 virtual void LogRtpHeader(bool incoming, 59 virtual void LogRtpHeader(bool incoming,
59 MediaType media_type, 60 MediaType media_type,
60 const uint8_t* header, 61 const uint8_t* header,
61 size_t header_length, 62 size_t packet_length) = 0;
62 size_t total_length) = 0;
63 63
64 // Logs an incoming or outgoing RTCP packet. 64 // Logs an incoming or outgoing RTCP packet.
65 virtual void LogRtcpPacket(bool incoming, 65 virtual void LogRtcpPacket(bool incoming,
66 MediaType media_type, 66 MediaType media_type,
67 const uint8_t* packet, 67 const uint8_t* packet,
68 size_t length) = 0; 68 size_t length) = 0;
69 69
70 // Logs a debug event. 70 // Logs a debug event.
71 virtual void LogDebugEvent(DebugEvent event_type) = 0; 71 virtual void LogDebugEvent(DebugEvent event_type) = 0;
72 72
73 // Reads an RtcEventLog file and returns true when reading was successful. 73 // Reads an RtcEventLog file and returns true when reading was successful.
74 // The result is stored in the given EventStream object. 74 // The result is stored in the given EventStream object.
75 static bool ParseRtcEventLog(const std::string& file_name, 75 static bool ParseRtcEventLog(const std::string& file_name,
76 rtclog::EventStream* result); 76 rtclog::EventStream* result);
77 }; 77 };
78 78
79 } // namespace webrtc 79 } // namespace webrtc
80 80
81 #endif // WEBRTC_VIDEO_RTC_EVENT_LOG_H_ 81 #endif // WEBRTC_VIDEO_RTC_EVENT_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/rtc_event_log.cc » ('j') | webrtc/video/rtc_event_log_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698