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

Side by Side Diff: media/cast/cast_config.cc

Issue 228313002: Cast: Use 2 threads for encoding on capable systems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/cast/cast_config.h" 5 #include "media/cast/cast_config.h"
6 6
7 namespace media { 7 namespace media {
8 namespace cast { 8 namespace cast {
9 9
10 VideoSenderConfig::VideoSenderConfig() 10 VideoSenderConfig::VideoSenderConfig()
11 : sender_ssrc(0), 11 : sender_ssrc(0),
12 incoming_feedback_ssrc(0), 12 incoming_feedback_ssrc(0),
13 rtcp_interval(kDefaultRtcpIntervalMs), 13 rtcp_interval(kDefaultRtcpIntervalMs),
14 rtcp_mode(kRtcpReducedSize), 14 rtcp_mode(kRtcpReducedSize),
15 use_external_encoder(false), 15 use_external_encoder(false),
16 width(0), 16 width(0),
17 height(0), 17 height(0),
18 congestion_control_back_off(kDefaultCongestionControlBackOff), 18 congestion_control_back_off(kDefaultCongestionControlBackOff),
19 max_qp(kDefaultMaxQp), 19 max_qp(kDefaultMaxQp),
20 min_qp(kDefaultMinQp), 20 min_qp(kDefaultMinQp),
21 max_frame_rate(kDefaultMaxFrameRate), 21 max_frame_rate(kDefaultMaxFrameRate),
22 max_number_of_video_buffers_used(kDefaultNumberOfVideoBuffers) {} 22 max_number_of_video_buffers_used(kDefaultNumberOfVideoBuffers),
23 number_of_encode_threads(1) {}
23 24
24 AudioSenderConfig::AudioSenderConfig() 25 AudioSenderConfig::AudioSenderConfig()
25 : sender_ssrc(0), 26 : sender_ssrc(0),
26 incoming_feedback_ssrc(0), 27 incoming_feedback_ssrc(0),
27 rtcp_interval(kDefaultRtcpIntervalMs), 28 rtcp_interval(kDefaultRtcpIntervalMs),
28 rtcp_mode(kRtcpReducedSize), 29 rtcp_mode(kRtcpReducedSize),
29 use_external_encoder(false), 30 use_external_encoder(false),
30 frequency(0), 31 frequency(0),
31 channels(0), 32 channels(0),
32 bitrate(0) {} 33 bitrate(0) {}
(...skipping 18 matching lines...) Expand all
51 rtp_payload_type(0), 52 rtp_payload_type(0),
52 use_external_decoder(false), 53 use_external_decoder(false),
53 max_frame_rate(kDefaultMaxFrameRate), 54 max_frame_rate(kDefaultMaxFrameRate),
54 decoder_faster_than_max_frame_rate(true) {} 55 decoder_faster_than_max_frame_rate(true) {}
55 56
56 PcmAudioFrame::PcmAudioFrame() {} 57 PcmAudioFrame::PcmAudioFrame() {}
57 PcmAudioFrame::~PcmAudioFrame() {} 58 PcmAudioFrame::~PcmAudioFrame() {}
58 59
59 } // namespace cast 60 } // namespace cast
60 } // namespace media 61 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698