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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void SendKeyFrame(); | 87 void SendKeyFrame(); |
88 | 88 |
89 uint32_t LastObservedBitrateBps() const; | 89 uint32_t LastObservedBitrateBps() const; |
90 int CodecTargetBitrate(uint32_t* bitrate) const; | 90 int CodecTargetBitrate(uint32_t* bitrate) const; |
91 // Loss protection. Must be called before SetEncoder() to have max packet size | 91 // Loss protection. Must be called before SetEncoder() to have max packet size |
92 // updated according to protection. | 92 // updated according to protection. |
93 // TODO(pbos): Set protection method on construction or extract vcm_ outside | 93 // TODO(pbos): Set protection method on construction or extract vcm_ outside |
94 // this class and set it on construction there. | 94 // this class and set it on construction there. |
95 void SetProtectionMethod(bool nack, bool fec); | 95 void SetProtectionMethod(bool nack, bool fec); |
96 | 96 |
97 // Buffering mode. | |
98 void SetSenderBufferingMode(int target_delay_ms); | |
99 | |
100 // Implements VideoEncoderRateObserver. | 97 // Implements VideoEncoderRateObserver. |
101 void OnSetRates(uint32_t bitrate_bps, int framerate) override; | 98 void OnSetRates(uint32_t bitrate_bps, int framerate) override; |
102 | 99 |
103 // Implements VCMPacketizationCallback. | 100 // Implements VCMPacketizationCallback. |
104 int32_t SendData(uint8_t payload_type, | 101 int32_t SendData(uint8_t payload_type, |
105 const EncodedImage& encoded_image, | 102 const EncodedImage& encoded_image, |
106 const RTPFragmentationHeader* fragmentation_header, | 103 const RTPFragmentationHeader* fragmentation_header, |
107 const RTPVideoHeader* rtp_video_hdr) override; | 104 const RTPVideoHeader* rtp_video_hdr) override; |
108 void OnEncoderImplementationName(const char* implementation_name) override; | 105 void OnEncoderImplementationName(const char* implementation_name) override; |
109 | 106 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 178 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
182 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 179 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
183 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); | 180 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); |
184 | 181 |
185 bool video_suspended_ GUARDED_BY(data_cs_); | 182 bool video_suspended_ GUARDED_BY(data_cs_); |
186 }; | 183 }; |
187 | 184 |
188 } // namespace webrtc | 185 } // namespace webrtc |
189 | 186 |
190 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 187 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
OLD | NEW |