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

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

Issue 1754283002: Make ReconfigureVideoEncoder void. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Drops incoming packets before they get to the encoder. 72 // Drops incoming packets before they get to the encoder.
73 void Pause(); 73 void Pause();
74 void Restart(); 74 void Restart();
75 75
76 // Codec settings. 76 // Codec settings.
77 int32_t RegisterExternalEncoder(VideoEncoder* encoder, 77 int32_t RegisterExternalEncoder(VideoEncoder* encoder,
78 uint8_t pl_type, 78 uint8_t pl_type,
79 bool internal_source); 79 bool internal_source);
80 int32_t DeRegisterExternalEncoder(uint8_t pl_type); 80 int32_t DeRegisterExternalEncoder(uint8_t pl_type);
81 int32_t SetEncoder(const VideoCodec& video_codec); 81 void SetEncoder(const VideoCodec& video_codec);
82 82
83 // Implementing VideoCaptureCallback. 83 // Implementing VideoCaptureCallback.
84 void DeliverFrame(VideoFrame video_frame) override; 84 void DeliverFrame(VideoFrame video_frame) override;
85 85
86 void SendKeyFrame(); 86 void SendKeyFrame();
87 87
88 uint32_t LastObservedBitrateBps() const; 88 uint32_t LastObservedBitrateBps() const;
89 int CodecTargetBitrate(uint32_t* bitrate) const; 89 int CodecTargetBitrate(uint32_t* bitrate) const;
90 // Loss protection. Must be called before SetEncoder() to have max packet size 90 // Loss protection. Must be called before SetEncoder() to have max packet size
91 // updated according to protection. 91 // updated according to protection.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); 171 uint8_t picture_id_sli_ GUARDED_BY(data_cs_);
172 bool has_received_rpsi_ GUARDED_BY(data_cs_); 172 bool has_received_rpsi_ GUARDED_BY(data_cs_);
173 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); 173 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_);
174 174
175 bool video_suspended_ GUARDED_BY(data_cs_); 175 bool video_suspended_ GUARDED_BY(data_cs_);
176 }; 176 };
177 177
178 } // namespace webrtc 178 } // namespace webrtc
179 179
180 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 180 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698