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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h

Issue 2946413002: Report timing frames info in GetStats. (Closed)
Patch Set: rebase Created 3 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 static bool Write(uint8_t* data, VideoContentType content_type); 127 static bool Write(uint8_t* data, VideoContentType content_type);
128 }; 128 };
129 129
130 class VideoTimingExtension { 130 class VideoTimingExtension {
131 public: 131 public:
132 static constexpr RTPExtensionType kId = kRtpExtensionVideoTiming; 132 static constexpr RTPExtensionType kId = kRtpExtensionVideoTiming;
133 static constexpr uint8_t kValueSizeBytes = 12; 133 static constexpr uint8_t kValueSizeBytes = 12;
134 static constexpr const char* kUri = 134 static constexpr const char* kUri =
135 "http://www.webrtc.org/experiments/rtp-hdrext/video-timing"; 135 "http://www.webrtc.org/experiments/rtp-hdrext/video-timing";
136 136
137 static bool Parse(rtc::ArrayView<const uint8_t> data, VideoTiming* timing); 137 static bool Parse(rtc::ArrayView<const uint8_t> data,
138 static size_t ValueSize(const VideoTiming&) { return kValueSizeBytes; } 138 VideoSendTiming* timing);
139 static bool Write(uint8_t* data, const VideoTiming& timing); 139 static size_t ValueSize(const VideoSendTiming&) { return kValueSizeBytes; }
140 static bool Write(uint8_t* data, const VideoSendTiming& timing);
140 141
141 static size_t ValueSize(uint16_t time_delta_ms, uint8_t idx) { 142 static size_t ValueSize(uint16_t time_delta_ms, uint8_t idx) {
142 return kValueSizeBytes; 143 return kValueSizeBytes;
143 } 144 }
144 // Writes only single time delta to position idx. 145 // Writes only single time delta to position idx.
145 static bool Write(uint8_t* data, uint16_t time_delta_ms, uint8_t idx); 146 static bool Write(uint8_t* data, uint16_t time_delta_ms, uint8_t idx);
146 }; 147 };
147 148
148 class RtpStreamId { 149 class RtpStreamId {
149 public: 150 public:
(...skipping 20 matching lines...) Expand all
170 static size_t ValueSize(const StreamId& rsid); 171 static size_t ValueSize(const StreamId& rsid);
171 static bool Write(uint8_t* data, const StreamId& rsid); 172 static bool Write(uint8_t* data, const StreamId& rsid);
172 173
173 static bool Parse(rtc::ArrayView<const uint8_t> data, std::string* rsid); 174 static bool Parse(rtc::ArrayView<const uint8_t> data, std::string* rsid);
174 static size_t ValueSize(const std::string& rsid); 175 static size_t ValueSize(const std::string& rsid);
175 static bool Write(uint8_t* data, const std::string& rsid); 176 static bool Write(uint8_t* data, const std::string& rsid);
176 }; 177 };
177 178
178 } // namespace webrtc 179 } // namespace webrtc
179 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 180 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/include/module_common_types.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698