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

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 1226123005: Define Stream base classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 5 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 if (config_.renderer != nullptr) 313 if (config_.renderer != nullptr)
314 config_.renderer->RenderFrame( 314 config_.renderer->RenderFrame(
315 video_frame, 315 video_frame,
316 video_frame.render_time_ms() - clock_->TimeInMilliseconds()); 316 video_frame.render_time_ms() - clock_->TimeInMilliseconds());
317 317
318 stats_proxy_->OnRenderedFrame(); 318 stats_proxy_->OnRenderedFrame();
319 319
320 return 0; 320 return 0;
321 } 321 }
322 322
323 void VideoReceiveStream::SignalNetworkState(Call::NetworkState state) { 323 void VideoReceiveStream::SignalNetworkState(NetworkState state) {
324 if (state == Call::kNetworkUp) 324 if (state == kNetworkUp)
325 SetRtcpMode(config_.rtp.rtcp_mode); 325 SetRtcpMode(config_.rtp.rtcp_mode);
326 if (state == Call::kNetworkDown) 326 if (state == kNetworkDown)
327 vie_channel_->SetRTCPMode(kRtcpOff); 327 vie_channel_->SetRTCPMode(kRtcpOff);
328 } 328 }
329 329
330 void VideoReceiveStream::SetRtcpMode(newapi::RtcpMode mode) { 330 void VideoReceiveStream::SetRtcpMode(newapi::RtcpMode mode) {
331 switch (mode) { 331 switch (mode) {
332 case newapi::kRtcpCompound: 332 case newapi::kRtcpCompound:
333 vie_channel_->SetRTCPMode(kRtcpCompound); 333 vie_channel_->SetRTCPMode(kRtcpCompound);
334 break; 334 break;
335 case newapi::kRtcpReducedSize: 335 case newapi::kRtcpReducedSize:
336 vie_channel_->SetRTCPMode(kRtcpNonCompound); 336 vie_channel_->SetRTCPMode(kRtcpNonCompound);
337 break; 337 break;
338 } 338 }
339 } 339 }
340 } // namespace internal 340 } // namespace internal
341 } // namespace webrtc 341 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698