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

Side by Side Diff: content/renderer/media/media_stream_impl.cc

Issue 10035054: Merge VideoCaptureDevice::Capability with media::VideoCaptureCapability (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix a namespace issue Created 8 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 // 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
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/media/capture_video_decoder_unittest.cc ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698