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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 void SetTargetBitrate(uint32_t bitrate); | 110 void SetTargetBitrate(uint32_t bitrate); |
111 uint32_t GetTargetBitrate(); | 111 uint32_t GetTargetBitrate(); |
112 | 112 |
113 // Includes size of RTP and FEC headers. | 113 // Includes size of RTP and FEC headers. |
114 size_t MaxDataPayloadLength() const override; | 114 size_t MaxDataPayloadLength() const override; |
115 | 115 |
116 int32_t RegisterPayload( | 116 int32_t RegisterPayload( |
117 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 117 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
118 const int8_t payload_type, const uint32_t frequency, | 118 const int8_t payload_type, const uint32_t frequency, |
119 const uint8_t channels, const uint32_t rate); | 119 const size_t channels, const uint32_t rate); |
120 | 120 |
121 int32_t DeRegisterSendPayload(const int8_t payload_type); | 121 int32_t DeRegisterSendPayload(const int8_t payload_type); |
122 | 122 |
123 void SetSendPayloadType(int8_t payload_type); | 123 void SetSendPayloadType(int8_t payload_type); |
124 | 124 |
125 int8_t SendPayloadType() const; | 125 int8_t SendPayloadType() const; |
126 | 126 |
127 int SendPayloadFrequency() const; | 127 int SendPayloadFrequency() const; |
128 | 128 |
129 void SetSendingStatus(bool enabled); | 129 void SetSendingStatus(bool enabled); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember | 462 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember |
463 // that by the time the function returns there is no guarantee | 463 // that by the time the function returns there is no guarantee |
464 // that the target bitrate is still valid. | 464 // that the target bitrate is still valid. |
465 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_; | 465 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_; |
466 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); | 466 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); |
467 }; | 467 }; |
468 | 468 |
469 } // namespace webrtc | 469 } // namespace webrtc |
470 | 470 |
471 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 471 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ |
OLD | NEW |