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); | |
danilchap
2017/09/11 13:34:21
https://google.github.io/styleguide/cppguide.html#
eladalon
2017/09/11 14:15:03
Done.
| |
795 | 796 |
796 bool hasTransmissionTimeOffset; | 797 bool hasTransmissionTimeOffset; |
797 int32_t transmissionTimeOffset; | 798 int32_t transmissionTimeOffset; |
798 bool hasAbsoluteSendTime; | 799 bool hasAbsoluteSendTime; |
799 uint32_t absoluteSendTime; | 800 uint32_t absoluteSendTime; |
800 bool hasTransportSequenceNumber; | 801 bool hasTransportSequenceNumber; |
801 uint16_t transportSequenceNumber; | 802 uint16_t transportSequenceNumber; |
802 | 803 |
803 // Audio Level includes both level in dBov and voiced/unvoiced bit. See: | 804 // 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/ | 805 // https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/ |
(...skipping 23 matching lines...) Expand all Loading... | |
828 StreamId stream_id; | 829 StreamId stream_id; |
829 StreamId repaired_stream_id; | 830 StreamId repaired_stream_id; |
830 | 831 |
831 // For identifying the media section used to interpret this RTP packet. See | 832 // 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 | 833 // https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation-38 |
833 Mid mid; | 834 Mid mid; |
834 }; | 835 }; |
835 | 836 |
836 struct RTPHeader { | 837 struct RTPHeader { |
837 RTPHeader(); | 838 RTPHeader(); |
839 RTPHeader(const RTPHeader& other); | |
838 | 840 |
839 bool markerBit; | 841 bool markerBit; |
840 uint8_t payloadType; | 842 uint8_t payloadType; |
841 uint16_t sequenceNumber; | 843 uint16_t sequenceNumber; |
842 uint32_t timestamp; | 844 uint32_t timestamp; |
843 uint32_t ssrc; | 845 uint32_t ssrc; |
844 uint8_t numCSRCs; | 846 uint8_t numCSRCs; |
845 uint32_t arrOfCSRCs[kRtpCsrcSize]; | 847 uint32_t arrOfCSRCs[kRtpCsrcSize]; |
846 size_t paddingLength; | 848 size_t paddingLength; |
847 size_t headerLength; | 849 size_t headerLength; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
966 bool operator==(const RtpKeepAliveConfig& o) const { | 968 bool operator==(const RtpKeepAliveConfig& o) const { |
967 return timeout_interval_ms == o.timeout_interval_ms && | 969 return timeout_interval_ms == o.timeout_interval_ms && |
968 payload_type == o.payload_type; | 970 payload_type == o.payload_type; |
969 } | 971 } |
970 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } | 972 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } |
971 }; | 973 }; |
972 | 974 |
973 } // namespace webrtc | 975 } // namespace webrtc |
974 | 976 |
975 #endif // WEBRTC_COMMON_TYPES_H_ | 977 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |