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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 1836043004: Cleanup the VideoAdapter (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, 165 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet,
166 const rtc::PacketTime& packet_time) override; 166 const rtc::PacketTime& packet_time) override;
167 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 167 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
168 const rtc::PacketTime& packet_time) override; 168 const rtc::PacketTime& packet_time) override;
169 void OnReadyToSend(bool ready) override; 169 void OnReadyToSend(bool ready) override;
170 void SetInterface(NetworkInterface* iface) override; 170 void SetInterface(NetworkInterface* iface) override;
171 171
172 // Implemented for VideoMediaChannelTest. 172 // Implemented for VideoMediaChannelTest.
173 bool sending() const { return sending_; } 173 bool sending() const { return sending_; }
174 174
175 enum AdaptReasonEnum {
nisse-webrtc 2016/04/01 07:09:35 Is this for stats only?
perkj_webrtc 2016/04/01 11:56:27 yes
176 ADAPTREASON_NONE = 0,
177 ADAPTREASON_CPU = 1,
178 ADAPTREASON_BANDWIDTH = 2,
179 };
180
175 private: 181 private:
176 class WebRtcVideoReceiveStream; 182 class WebRtcVideoReceiveStream;
177 struct VideoCodecSettings { 183 struct VideoCodecSettings {
178 VideoCodecSettings(); 184 VideoCodecSettings();
179 185
180 bool operator==(const VideoCodecSettings& other) const; 186 bool operator==(const VideoCodecSettings& other) const;
181 bool operator!=(const VideoCodecSettings& other) const; 187 bool operator!=(const VideoCodecSettings& other) const;
182 188
183 VideoCodec codec; 189 VideoCodec codec;
184 webrtc::FecConfig fec; 190 webrtc::FecConfig fec;
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // TODO(deadbeef): Don't duplicate information between 529 // TODO(deadbeef): Don't duplicate information between
524 // send_params/recv_params, rtp_extensions, options, etc. 530 // send_params/recv_params, rtp_extensions, options, etc.
525 VideoSendParameters send_params_; 531 VideoSendParameters send_params_;
526 VideoOptions default_send_options_; 532 VideoOptions default_send_options_;
527 VideoRecvParameters recv_params_; 533 VideoRecvParameters recv_params_;
528 }; 534 };
529 535
530 } // namespace cricket 536 } // namespace cricket
531 537
532 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 538 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698