| 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 13 matching lines...) Expand all Loading... |
| 24 class FlexfecReceiveStream { | 24 class FlexfecReceiveStream { |
| 25 public: | 25 public: |
| 26 struct Stats { | 26 struct Stats { |
| 27 std::string ToString(int64_t time_ms) const; | 27 std::string ToString(int64_t time_ms) const; |
| 28 | 28 |
| 29 // TODO(brandtr): Add appropriate stats here. | 29 // TODO(brandtr): Add appropriate stats here. |
| 30 int flexfec_bitrate_bps; | 30 int flexfec_bitrate_bps; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 struct Config { | 33 struct Config { |
| 34 explicit Config(Transport* rtcp_send_transport) |
| 35 : rtcp_send_transport(rtcp_send_transport) {} |
| 36 |
| 34 std::string ToString() const; | 37 std::string ToString() const; |
| 35 | 38 |
| 39 // Returns true if all RTP information is available in order to |
| 40 // enable receiving FlexFEC. |
| 41 bool IsCompleteAndEnabled() const; |
| 42 |
| 36 // Payload type for FlexFEC. | 43 // Payload type for FlexFEC. |
| 37 int payload_type = -1; | 44 int payload_type = -1; |
| 38 | 45 |
| 39 // SSRC for FlexFEC stream to be received. | 46 // SSRC for FlexFEC stream to be received. |
| 40 uint32_t remote_ssrc = 0; | 47 uint32_t remote_ssrc = 0; |
| 41 | 48 |
| 42 // Vector containing a single element, corresponding to the SSRC of the | 49 // Vector containing a single element, corresponding to the SSRC of the |
| 43 // media stream being protected by this FlexFEC stream. The vector MUST have | 50 // media stream being protected by this FlexFEC stream. The vector MUST have |
| 44 // size 1. | 51 // size 1. |
| 45 // | 52 // |
| (...skipping 27 matching lines...) Expand all Loading... |
| 73 | 80 |
| 74 virtual Stats GetStats() const = 0; | 81 virtual Stats GetStats() const = 0; |
| 75 | 82 |
| 76 protected: | 83 protected: |
| 77 virtual ~FlexfecReceiveStream() = default; | 84 virtual ~FlexfecReceiveStream() = default; |
| 78 }; | 85 }; |
| 79 | 86 |
| 80 } // namespace webrtc | 87 } // namespace webrtc |
| 81 | 88 |
| 82 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ | 89 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ |
| OLD | NEW |