| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |