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

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

Issue 1945773002: RtpPacketHistory rewritten to use RtpPacket class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 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/modules/rtp_rtcp/source/rtp_header_extensions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 uint8_t* audio_level); 38 uint8_t* audio_level);
39 static bool Write(uint8_t* data, bool voice_activity, uint8_t audio_level); 39 static bool Write(uint8_t* data, bool voice_activity, uint8_t audio_level);
40 }; 40 };
41 41
42 class TransmissionOffset { 42 class TransmissionOffset {
43 public: 43 public:
44 static constexpr RTPExtensionType kId = kRtpExtensionTransmissionTimeOffset; 44 static constexpr RTPExtensionType kId = kRtpExtensionTransmissionTimeOffset;
45 static constexpr uint8_t kValueSizeBytes = 3; 45 static constexpr uint8_t kValueSizeBytes = 3;
46 static const char* kName; 46 static const char* kName;
47 static bool IsSupportedFor(MediaType type); 47 static bool IsSupportedFor(MediaType type);
48 static bool Parse(const uint8_t* data, int32_t* time_ms); 48 static bool Parse(const uint8_t* data, int32_t* rtp_time);
49 static bool Write(uint8_t* data, int64_t time_ms); 49 static bool Write(uint8_t* data, int32_t rtp_time);
50 }; 50 };
51 51
52 class TransportSequenceNumber { 52 class TransportSequenceNumber {
53 public: 53 public:
54 static constexpr RTPExtensionType kId = kRtpExtensionTransportSequenceNumber; 54 static constexpr RTPExtensionType kId = kRtpExtensionTransportSequenceNumber;
55 static constexpr uint8_t kValueSizeBytes = 2; 55 static constexpr uint8_t kValueSizeBytes = 2;
56 static const char* kName; 56 static const char* kName;
57 static bool IsSupportedFor(MediaType type); 57 static bool IsSupportedFor(MediaType type);
58 static bool Parse(const uint8_t* data, uint16_t* value); 58 static bool Parse(const uint8_t* data, uint16_t* value);
59 static bool Write(uint8_t* data, uint16_t value); 59 static bool Write(uint8_t* data, uint16_t value);
60 }; 60 };
61 61
62 class VideoOrientation { 62 class VideoOrientation {
63 public: 63 public:
64 static constexpr RTPExtensionType kId = kRtpExtensionVideoRotation; 64 static constexpr RTPExtensionType kId = kRtpExtensionVideoRotation;
65 static constexpr uint8_t kValueSizeBytes = 1; 65 static constexpr uint8_t kValueSizeBytes = 1;
66 static const char* kName; 66 static const char* kName;
67 static bool IsSupportedFor(MediaType type); 67 static bool IsSupportedFor(MediaType type);
68 static bool Parse(const uint8_t* data, VideoRotation* value); 68 static bool Parse(const uint8_t* data, VideoRotation* value);
69 static bool Write(uint8_t* data, VideoRotation value); 69 static bool Write(uint8_t* data, VideoRotation value);
70 static bool Parse(const uint8_t* data, uint8_t* value); 70 static bool Parse(const uint8_t* data, uint8_t* value);
71 static bool Write(uint8_t* data, uint8_t value); 71 static bool Write(uint8_t* data, uint8_t value);
72 }; 72 };
73 73
74 } // namespace webrtc 74 } // namespace webrtc
75 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 75 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698