Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: webrtc/video/vie_encoder.h

Issue 1715823002: Nuke SetSenderBufferingMode. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/vie_channel.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/video/vie_channel.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698