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

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

Issue 9701008: change default capture resolution to 640x480 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11 matching lines...) Expand all
22 #include "content/renderer/p2p/socket_dispatcher.h" 22 #include "content/renderer/p2p/socket_dispatcher.h"
23 #include "jingle/glue/thread_wrapper.h" 23 #include "jingle/glue/thread_wrapper.h"
24 #include "media/base/message_loop_factory.h" 24 #include "media/base/message_loop_factory.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amDescriptor.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amDescriptor.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistr y.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaStreamRegistr y.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amSource.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amSource.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
29 29
30 namespace { 30 namespace {
31 31
32 const int kVideoCaptureWidth = 352; 32 const int kVideoCaptureWidth = 640;
33 const int kVideoCaptureHeight = 288; 33 const int kVideoCaptureHeight = 480;
34 const int kVideoCaptureFramePerSecond = 30; 34 const int kVideoCaptureFramePerSecond = 30;
35 35
36 } // namespace 36 } // namespace
37 37
38 // The MediaStreamMananger label for a stream is globally unique. The track 38 // The MediaStreamMananger label for a stream is globally unique. The track
39 // session id is globally unique for the set of audio tracks and video tracks 39 // session id is globally unique for the set of audio tracks and video tracks
40 // respectively. An audio track and a video track can have the same session id 40 // respectively. An audio track and a video track can have the same session id
41 // (without being related). Hence we create a unique track label from the stream 41 // (without being related). Hence we create a unique track label from the stream
42 // label, track type and track session id: 42 // label, track type and track session id:
43 // <MediaStreamManager-label>#{audio,video}-<session-ID>. 43 // <MediaStreamManager-label>#{audio,video}-<session-ID>.
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 471 }
472 472
473 MediaStreamImpl::VideoRendererWrapper::VideoRendererWrapper() {} 473 MediaStreamImpl::VideoRendererWrapper::VideoRendererWrapper() {}
474 474
475 MediaStreamImpl::VideoRendererWrapper::~VideoRendererWrapper() {} 475 MediaStreamImpl::VideoRendererWrapper::~VideoRendererWrapper() {}
476 476
477 void MediaStreamImpl::VideoRendererWrapper::SetVideoDecoder( 477 void MediaStreamImpl::VideoRendererWrapper::SetVideoDecoder(
478 RTCVideoDecoder* decoder) { 478 RTCVideoDecoder* decoder) {
479 rtc_video_decoder_ = decoder; 479 rtc_video_decoder_ = decoder;
480 } 480 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698