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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Implements VideoSendStatisticsCallback. | 99 // Implements VideoSendStatisticsCallback. |
100 void SendStatistics(uint32_t bit_rate, | 100 void SendStatistics(uint32_t bit_rate, |
101 uint32_t frame_rate, | 101 uint32_t frame_rate, |
102 const std::string& encoder_name) override; | 102 const std::string& encoder_name) override; |
103 | 103 |
104 // virtual to test EncoderStateFeedback with mocks. | 104 // virtual to test EncoderStateFeedback with mocks. |
105 virtual void OnReceivedIntraFrameRequest(size_t stream_index); | 105 virtual void OnReceivedIntraFrameRequest(size_t stream_index); |
106 virtual void OnReceivedSLI(uint8_t picture_id); | 106 virtual void OnReceivedSLI(uint8_t picture_id); |
107 virtual void OnReceivedRPSI(uint64_t picture_id); | 107 virtual void OnReceivedRPSI(uint64_t picture_id); |
108 | 108 |
| 109 // Note that this method might return a value higher than the current BWE and |
| 110 // it's up to the caller to possibly limit the value. |
109 int GetPaddingNeededBps() const; | 111 int GetPaddingNeededBps() const; |
110 | 112 |
111 void OnBitrateUpdated(uint32_t bitrate_bps, | 113 void OnBitrateUpdated(uint32_t bitrate_bps, |
112 uint8_t fraction_lost, | 114 uint8_t fraction_lost, |
113 int64_t round_trip_time_ms); | 115 int64_t round_trip_time_ms); |
114 | 116 |
115 private: | 117 private: |
116 bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 118 bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
117 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 119 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
118 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 120 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
(...skipping 25 matching lines...) Expand all Loading... |
144 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); | 146 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); |
145 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 147 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
146 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 148 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
147 | 149 |
148 bool video_suspended_ GUARDED_BY(data_cs_); | 150 bool video_suspended_ GUARDED_BY(data_cs_); |
149 }; | 151 }; |
150 | 152 |
151 } // namespace webrtc | 153 } // namespace webrtc |
152 | 154 |
153 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 155 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |