| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 29 matching lines...) Expand all Loading... |
| 40 ~TargetBitrate(); | 40 ~TargetBitrate(); |
| 41 | 41 |
| 42 void AddTargetBitrate(uint8_t spatial_layer, | 42 void AddTargetBitrate(uint8_t spatial_layer, |
| 43 uint8_t temporal_layer, | 43 uint8_t temporal_layer, |
| 44 uint32_t target_bitrate_kbps); | 44 uint32_t target_bitrate_kbps); |
| 45 | 45 |
| 46 const std::vector<BitrateItem>& GetTargetBitrates() const; | 46 const std::vector<BitrateItem>& GetTargetBitrates() const; |
| 47 | 47 |
| 48 bool Parse(const uint8_t* block, uint16_t block_length); | 48 bool Parse(const uint8_t* block, uint16_t block_length); |
| 49 | 49 |
| 50 size_t BlockLength() const; |
| 51 |
| 50 void Create(uint8_t* buffer) const; | 52 void Create(uint8_t* buffer) const; |
| 51 | 53 |
| 52 size_t BlockLength() const; | |
| 53 | |
| 54 private: | 54 private: |
| 55 std::vector<BitrateItem> bitrates_; | 55 std::vector<BitrateItem> bitrates_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace rtcp | 58 } // namespace rtcp |
| 59 } // namespace webrtc | 59 } // namespace webrtc |
| 60 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TARGET_BITRATE_H_ | 60 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TARGET_BITRATE_H_ |
| OLD | NEW |