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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
744 } | 744 } |
745 | 745 |
746 int64_t timestamp; // Receive time after socket delivers the data. | 746 int64_t timestamp; // Receive time after socket delivers the data. |
747 int64_t not_before; // Earliest possible time the data could have arrived, | 747 int64_t not_before; // Earliest possible time the data could have arrived, |
748 // indicating the potential error in the |timestamp| | 748 // indicating the potential error in the |timestamp| |
749 // value,in case the system is busy. | 749 // value,in case the system is busy. |
750 // For example, the time of the last select() call. | 750 // For example, the time of the last select() call. |
751 // If unknown, this value will be set to zero. | 751 // If unknown, this value will be set to zero. |
752 }; | 752 }; |
753 | 753 |
754 // Minimum and maximum playout delay values from capture to render. | |
755 // These are best effort values. | |
756 // | |
757 // A value < 0 indicates no change from previous valid value. | |
758 // | |
759 // min = max = 0 indicates that the receiver should try and render | |
760 // frame as soon as possible. | |
761 // | |
762 // min = x, max = y indicates that the receiver is free to adapt | |
763 // in the range (x, y) based on network jitter. | |
764 struct PlayoutDelay { | |
danilchap
2016/05/26 09:41:58
May be you want to add a default constructor and i
Sergey Ulanov
2016/05/30 07:22:56
Or just add default initalizers '= -1' in the fiel
Irfan
2016/06/01 08:38:33
I have added a comment here, but this eventually e
| |
765 int min_ms; | |
766 int max_ms; | |
767 }; | |
768 | |
754 struct RTPHeaderExtension { | 769 struct RTPHeaderExtension { |
755 RTPHeaderExtension(); | 770 RTPHeaderExtension(); |
756 | 771 |
757 bool hasTransmissionTimeOffset; | 772 bool hasTransmissionTimeOffset; |
758 int32_t transmissionTimeOffset; | 773 int32_t transmissionTimeOffset; |
759 bool hasAbsoluteSendTime; | 774 bool hasAbsoluteSendTime; |
760 uint32_t absoluteSendTime; | 775 uint32_t absoluteSendTime; |
761 bool hasTransportSequenceNumber; | 776 bool hasTransportSequenceNumber; |
762 uint16_t transportSequenceNumber; | 777 uint16_t transportSequenceNumber; |
763 | 778 |
764 // Audio Level includes both level in dBov and voiced/unvoiced bit. See: | 779 // Audio Level includes both level in dBov and voiced/unvoiced bit. See: |
765 // https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/ | 780 // https://datatracker.ietf.org/doc/draft-lennox-avt-rtp-audio-level-exthdr/ |
766 bool hasAudioLevel; | 781 bool hasAudioLevel; |
767 bool voiceActivity; | 782 bool voiceActivity; |
768 uint8_t audioLevel; | 783 uint8_t audioLevel; |
769 | 784 |
770 // For Coordination of Video Orientation. See | 785 // For Coordination of Video Orientation. See |
771 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ | 786 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ |
772 // ts_126114v120700p.pdf | 787 // ts_126114v120700p.pdf |
773 bool hasVideoRotation; | 788 bool hasVideoRotation; |
774 uint8_t videoRotation; | 789 uint8_t videoRotation; |
790 | |
791 PlayoutDelay playout_delay; | |
775 }; | 792 }; |
776 | 793 |
777 struct RTPHeader { | 794 struct RTPHeader { |
778 RTPHeader(); | 795 RTPHeader(); |
779 | 796 |
780 bool markerBit; | 797 bool markerBit; |
781 uint8_t payloadType; | 798 uint8_t payloadType; |
782 uint16_t sequenceNumber; | 799 uint16_t sequenceNumber; |
783 uint32_t timestamp; | 800 uint32_t timestamp; |
784 uint32_t ssrc; | 801 uint32_t ssrc; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
893 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 910 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
894 | 911 |
895 enum NetworkState { | 912 enum NetworkState { |
896 kNetworkUp, | 913 kNetworkUp, |
897 kNetworkDown, | 914 kNetworkDown, |
898 }; | 915 }; |
899 | 916 |
900 } // namespace webrtc | 917 } // namespace webrtc |
901 | 918 |
902 #endif // WEBRTC_COMMON_TYPES_H_ | 919 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |