| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 void SetTargetBitrate(uint32_t bitrate); | 107 void SetTargetBitrate(uint32_t bitrate); |
| 108 uint32_t GetTargetBitrate(); | 108 uint32_t GetTargetBitrate(); |
| 109 | 109 |
| 110 // Includes size of RTP and FEC headers. | 110 // Includes size of RTP and FEC headers. |
| 111 size_t MaxDataPayloadLength() const override; | 111 size_t MaxDataPayloadLength() const override; |
| 112 | 112 |
| 113 int32_t RegisterPayload( | 113 int32_t RegisterPayload( |
| 114 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 114 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
| 115 const int8_t payload_type, const uint32_t frequency, | 115 const int8_t payload_type, const uint32_t frequency, |
| 116 const uint8_t channels, const uint32_t rate); | 116 const size_t channels, const uint32_t rate); |
| 117 | 117 |
| 118 int32_t DeRegisterSendPayload(const int8_t payload_type); | 118 int32_t DeRegisterSendPayload(const int8_t payload_type); |
| 119 | 119 |
| 120 void SetSendPayloadType(int8_t payload_type); | 120 void SetSendPayloadType(int8_t payload_type); |
| 121 | 121 |
| 122 int8_t SendPayloadType() const; | 122 int8_t SendPayloadType() const; |
| 123 | 123 |
| 124 int SendPayloadFrequency() const; | 124 int SendPayloadFrequency() const; |
| 125 | 125 |
| 126 void SetSendingStatus(bool enabled); | 126 void SetSendingStatus(bool enabled); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember | 430 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember |
| 431 // that by the time the function returns there is no guarantee | 431 // that by the time the function returns there is no guarantee |
| 432 // that the target bitrate is still valid. | 432 // that the target bitrate is still valid. |
| 433 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_; | 433 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_; |
| 434 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); | 434 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 } // namespace webrtc | 437 } // namespace webrtc |
| 438 | 438 |
| 439 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 439 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ |
| OLD | NEW |