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

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: Addressed comments. 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 168 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
169 const rtc::PacketTime& packet_time) override; 169 const rtc::PacketTime& packet_time) override;
170 void OnReadyToSend(bool ready) override; 170 void OnReadyToSend(bool ready) override;
171 void OnNetworkRouteChanged(const std::string& transport_name, 171 void OnNetworkRouteChanged(const std::string& transport_name,
172 const NetworkRoute& network_route) override; 172 const NetworkRoute& network_route) override;
173 void SetInterface(NetworkInterface* iface) override; 173 void SetInterface(NetworkInterface* iface) override;
174 174
175 // Implemented for VideoMediaChannelTest. 175 // Implemented for VideoMediaChannelTest.
176 bool sending() const { return sending_; } 176 bool sending() const { return sending_; }
177 177
178 enum AdaptReasonEnum {
179 ADAPTREASON_NONE = 0,
180 ADAPTREASON_CPU = 1,
181 ADAPTREASON_BANDWIDTH = 2,
182 };
183
178 private: 184 private:
179 class WebRtcVideoReceiveStream; 185 class WebRtcVideoReceiveStream;
180 struct VideoCodecSettings { 186 struct VideoCodecSettings {
181 VideoCodecSettings(); 187 VideoCodecSettings();
182 188
183 bool operator==(const VideoCodecSettings& other) const; 189 bool operator==(const VideoCodecSettings& other) const;
184 bool operator!=(const VideoCodecSettings& other) const; 190 bool operator!=(const VideoCodecSettings& other) const;
185 191
186 VideoCodec codec; 192 VideoCodec codec;
187 webrtc::FecConfig fec; 193 webrtc::FecConfig fec;
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // TODO(deadbeef): Don't duplicate information between 532 // TODO(deadbeef): Don't duplicate information between
527 // send_params/recv_params, rtp_extensions, options, etc. 533 // send_params/recv_params, rtp_extensions, options, etc.
528 VideoSendParameters send_params_; 534 VideoSendParameters send_params_;
529 VideoOptions default_send_options_; 535 VideoOptions default_send_options_;
530 VideoRecvParameters recv_params_; 536 VideoRecvParameters recv_params_;
531 }; 537 };
532 538
533 } // namespace cricket 539 } // namespace cricket
534 540
535 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 541 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698