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

Side by Side Diff: webrtc/modules/video_coding/video_coding_impl.h

Issue 1737013002: Reland of move ignored return code from modules. (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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const VideoContentMetrics* _contentMetrics, 86 const VideoContentMetrics* _contentMetrics,
87 const CodecSpecificInfo* codecSpecificInfo); 87 const CodecSpecificInfo* codecSpecificInfo);
88 88
89 int32_t IntraFrameRequest(int stream_index); 89 int32_t IntraFrameRequest(int stream_index);
90 int32_t EnableFrameDropper(bool enable); 90 int32_t EnableFrameDropper(bool enable);
91 91
92 void SuspendBelowMinBitrate(); 92 void SuspendBelowMinBitrate();
93 bool VideoSuspended() const; 93 bool VideoSuspended() const;
94 94
95 int64_t TimeUntilNextProcess(); 95 int64_t TimeUntilNextProcess();
96 int32_t Process(); 96 void Process();
97 97
98 private: 98 private:
99 void SetEncoderParameters(EncoderParameters params) 99 void SetEncoderParameters(EncoderParameters params)
100 EXCLUSIVE_LOCKS_REQUIRED(encoder_crit_); 100 EXCLUSIVE_LOCKS_REQUIRED(encoder_crit_);
101 101
102 Clock* const clock_; 102 Clock* const clock_;
103 103
104 rtc::scoped_ptr<CriticalSectionWrapper> process_crit_sect_; 104 rtc::scoped_ptr<CriticalSectionWrapper> process_crit_sect_;
105 rtc::CriticalSection encoder_crit_; 105 rtc::CriticalSection encoder_crit_;
106 VCMGenericEncoder* _encoder; 106 VCMGenericEncoder* _encoder;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 int max_packet_age_to_nack, 165 int max_packet_age_to_nack,
166 int max_incomplete_time_ms); 166 int max_incomplete_time_ms);
167 167
168 void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode); 168 void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode);
169 int SetMinReceiverDelay(int desired_delay_ms); 169 int SetMinReceiverDelay(int desired_delay_ms);
170 170
171 int32_t SetReceiveChannelParameters(int64_t rtt); 171 int32_t SetReceiveChannelParameters(int64_t rtt);
172 int32_t SetVideoProtection(VCMVideoProtection videoProtection, bool enable); 172 int32_t SetVideoProtection(VCMVideoProtection videoProtection, bool enable);
173 173
174 int64_t TimeUntilNextProcess(); 174 int64_t TimeUntilNextProcess();
175 int32_t Process(); 175 void Process();
176 176
177 void RegisterPreDecodeImageCallback(EncodedImageCallback* observer); 177 void RegisterPreDecodeImageCallback(EncodedImageCallback* observer);
178 void TriggerDecoderShutdown(); 178 void TriggerDecoderShutdown();
179 179
180 protected: 180 protected:
181 int32_t Decode(const webrtc::VCMEncodedFrame& frame) 181 int32_t Decode(const webrtc::VCMEncodedFrame& frame)
182 EXCLUSIVE_LOCKS_REQUIRED(_receiveCritSect); 182 EXCLUSIVE_LOCKS_REQUIRED(_receiveCritSect);
183 int32_t RequestKeyFrame(); 183 int32_t RequestKeyFrame();
184 int32_t RequestSliceLossIndication(const uint64_t pictureID) const; 184 int32_t RequestSliceLossIndication(const uint64_t pictureID) const;
185 185
(...skipping 27 matching lines...) Expand all
213 213
214 VCMProcessTimer _receiveStatsTimer; 214 VCMProcessTimer _receiveStatsTimer;
215 VCMProcessTimer _retransmissionTimer; 215 VCMProcessTimer _retransmissionTimer;
216 VCMProcessTimer _keyRequestTimer; 216 VCMProcessTimer _keyRequestTimer;
217 QpParser qp_parser_; 217 QpParser qp_parser_;
218 }; 218 };
219 219
220 } // namespace vcm 220 } // namespace vcm
221 } // namespace webrtc 221 } // namespace webrtc
222 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ 222 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/test/vcm_payload_sink_factory.cc ('k') | webrtc/modules/video_coding/video_coding_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698