OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/media_stream_impl.h" | 5 #include "content/renderer/media/media_stream_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 std::string msm_label = ExtractManagerStreamLabel(source_id); | 461 std::string msm_label = ExtractManagerStreamLabel(source_id); |
462 if (msm_label.empty()) | 462 if (msm_label.empty()) |
463 return NULL; | 463 return NULL; |
464 | 464 |
465 int video_session_id = | 465 int video_session_id = |
466 media_stream_dispatcher_->video_session_id(msm_label, 0); | 466 media_stream_dispatcher_->video_session_id(msm_label, 0); |
467 media::VideoCaptureCapability capability; | 467 media::VideoCaptureCapability capability; |
468 capability.width = kVideoCaptureWidth; | 468 capability.width = kVideoCaptureWidth; |
469 capability.height = kVideoCaptureHeight; | 469 capability.height = kVideoCaptureHeight; |
470 capability.frame_rate = kVideoCaptureFramePerSecond; | 470 capability.frame_rate = kVideoCaptureFramePerSecond; |
| 471 capability.color = media::VideoCaptureCapability::kI420; |
471 capability.expected_capture_delay = 0; | 472 capability.expected_capture_delay = 0; |
472 capability.color = media::VideoFrame::I420; | |
473 capability.interlaced = false; | 473 capability.interlaced = false; |
474 return new CaptureVideoDecoder( | 474 return new CaptureVideoDecoder( |
475 message_loop_factory->GetMessageLoopProxy("CaptureVideoDecoderThread"), | 475 message_loop_factory->GetMessageLoopProxy("CaptureVideoDecoderThread"), |
476 video_session_id, | 476 video_session_id, |
477 vc_manager_.get(), | 477 vc_manager_.get(), |
478 capability); | 478 capability); |
479 } | 479 } |
480 | 480 |
481 PeerConnectionHandlerBase* MediaStreamImpl::FindPeerConnectionBySource( | 481 PeerConnectionHandlerBase* MediaStreamImpl::FindPeerConnectionBySource( |
482 const std::string& source_id) { | 482 const std::string& source_id) { |
(...skipping 22 matching lines...) Expand all Loading... |
505 return rtc_video_decoder; | 505 return rtc_video_decoder; |
506 } | 506 } |
507 | 507 |
508 MediaStreamImpl::VideoRendererWrapper::VideoRendererWrapper( | 508 MediaStreamImpl::VideoRendererWrapper::VideoRendererWrapper( |
509 RTCVideoDecoder* decoder) | 509 RTCVideoDecoder* decoder) |
510 : rtc_video_decoder_(decoder) { | 510 : rtc_video_decoder_(decoder) { |
511 } | 511 } |
512 | 512 |
513 MediaStreamImpl::VideoRendererWrapper::~VideoRendererWrapper() { | 513 MediaStreamImpl::VideoRendererWrapper::~VideoRendererWrapper() { |
514 } | 514 } |
OLD | NEW |