OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 }; | 785 }; |
786 | 786 |
787 // StreamId represents RtpStreamId which is a string. | 787 // StreamId represents RtpStreamId which is a string. |
788 typedef StringRtpHeaderExtension StreamId; | 788 typedef StringRtpHeaderExtension StreamId; |
789 | 789 |
790 // Mid represents RtpMid which is a string. | 790 // Mid represents RtpMid which is a string. |
791 typedef StringRtpHeaderExtension Mid; | 791 typedef StringRtpHeaderExtension Mid; |
792 | 792 |
793 struct RTPHeaderExtension { | 793 struct RTPHeaderExtension { |
794 RTPHeaderExtension(); | 794 RTPHeaderExtension(); |
| 795 RTPHeaderExtension(const RTPHeaderExtension& other); |
| 796 RTPHeaderExtension& operator=(const RTPHeaderExtension& other); |
795 | 797 |
796 bool hasTransmissionTimeOffset; | 798 bool hasTransmissionTimeOffset; |
797 int32_t transmissionTimeOffset; | 799 int32_t transmissionTimeOffset; |
798 bool hasAbsoluteSendTime; | 800 bool hasAbsoluteSendTime; |
799 uint32_t absoluteSendTime; | 801 uint32_t absoluteSendTime; |
800 bool hasTransportSequenceNumber; | 802 bool hasTransportSequenceNumber; |
801 uint16_t transportSequenceNumber; | 803 uint16_t transportSequenceNumber; |
802 | 804 |
803 // Audio Level includes both level in dBov and voiced/unvoiced bit. See: | 805 // Audio Level includes both level in dBov and voiced/unvoiced bit. See: |
804 // https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/ | 806 // https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/ |
(...skipping 23 matching lines...) Expand all Loading... |
828 StreamId stream_id; | 830 StreamId stream_id; |
829 StreamId repaired_stream_id; | 831 StreamId repaired_stream_id; |
830 | 832 |
831 // For identifying the media section used to interpret this RTP packet. See | 833 // For identifying the media section used to interpret this RTP packet. See |
832 // https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation-38 | 834 // https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation-38 |
833 Mid mid; | 835 Mid mid; |
834 }; | 836 }; |
835 | 837 |
836 struct RTPHeader { | 838 struct RTPHeader { |
837 RTPHeader(); | 839 RTPHeader(); |
| 840 RTPHeader(const RTPHeader& other); |
| 841 RTPHeader& operator=(const RTPHeader& other); |
838 | 842 |
839 bool markerBit; | 843 bool markerBit; |
840 uint8_t payloadType; | 844 uint8_t payloadType; |
841 uint16_t sequenceNumber; | 845 uint16_t sequenceNumber; |
842 uint32_t timestamp; | 846 uint32_t timestamp; |
843 uint32_t ssrc; | 847 uint32_t ssrc; |
844 uint8_t numCSRCs; | 848 uint8_t numCSRCs; |
845 uint32_t arrOfCSRCs[kRtpCsrcSize]; | 849 uint32_t arrOfCSRCs[kRtpCsrcSize]; |
846 size_t paddingLength; | 850 size_t paddingLength; |
847 size_t headerLength; | 851 size_t headerLength; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 bool operator==(const RtpKeepAliveConfig& o) const { | 970 bool operator==(const RtpKeepAliveConfig& o) const { |
967 return timeout_interval_ms == o.timeout_interval_ms && | 971 return timeout_interval_ms == o.timeout_interval_ms && |
968 payload_type == o.payload_type; | 972 payload_type == o.payload_type; |
969 } | 973 } |
970 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } | 974 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } |
971 }; | 975 }; |
972 | 976 |
973 } // namespace webrtc | 977 } // namespace webrtc |
974 | 978 |
975 #endif // WEBRTC_COMMON_TYPES_H_ | 979 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |