OLD | NEW |
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 { | 7 namespace { |
8 | 8 |
9 const float kDefaultCongestionControlBackOff = 0.875f; | 9 const float kDefaultCongestionControlBackOff = 0.875f; |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 min_bitrate(kDefaultMinVideoKbps * 1000), | 51 min_bitrate(kDefaultMinVideoKbps * 1000), |
52 start_bitrate(kDefaultMaxVideoKbps * 1000), | 52 start_bitrate(kDefaultMaxVideoKbps * 1000), |
53 max_qp(kDefaultMaxQp), | 53 max_qp(kDefaultMaxQp), |
54 min_qp(kDefaultMinQp), | 54 min_qp(kDefaultMinQp), |
55 max_cpu_saver_qp(kDefaultMaxCpuSaverQp), | 55 max_cpu_saver_qp(kDefaultMaxCpuSaverQp), |
56 max_frame_rate(kDefaultMaxFrameRate), | 56 max_frame_rate(kDefaultMaxFrameRate), |
57 max_number_of_video_buffers_used(kDefaultNumberOfVideoBuffers), | 57 max_number_of_video_buffers_used(kDefaultNumberOfVideoBuffers), |
58 codec(CODEC_VIDEO_VP8), | 58 codec(CODEC_VIDEO_VP8), |
59 number_of_encode_threads(1) {} | 59 number_of_encode_threads(1) {} |
60 | 60 |
| 61 VideoSenderConfig::VideoSenderConfig(const VideoSenderConfig& other) = default; |
| 62 |
61 VideoSenderConfig::~VideoSenderConfig() {} | 63 VideoSenderConfig::~VideoSenderConfig() {} |
62 | 64 |
63 AudioSenderConfig::AudioSenderConfig() | 65 AudioSenderConfig::AudioSenderConfig() |
64 : ssrc(0), | 66 : ssrc(0), |
65 receiver_ssrc(0), | 67 receiver_ssrc(0), |
66 max_playout_delay( | 68 max_playout_delay( |
67 base::TimeDelta::FromMilliseconds(kDefaultRtpMaxDelayMs)), | 69 base::TimeDelta::FromMilliseconds(kDefaultRtpMaxDelayMs)), |
68 rtp_payload_type(0), | 70 rtp_payload_type(0), |
69 use_external_encoder(false), | 71 use_external_encoder(false), |
70 frequency(0), | 72 frequency(0), |
71 channels(0), | 73 channels(0), |
72 bitrate(kDefaultAudioEncoderBitrate), | 74 bitrate(kDefaultAudioEncoderBitrate), |
73 codec(CODEC_AUDIO_OPUS) {} | 75 codec(CODEC_AUDIO_OPUS) {} |
74 | 76 |
| 77 AudioSenderConfig::AudioSenderConfig(const AudioSenderConfig& other) = default; |
| 78 |
75 AudioSenderConfig::~AudioSenderConfig() {} | 79 AudioSenderConfig::~AudioSenderConfig() {} |
76 | 80 |
77 FrameReceiverConfig::FrameReceiverConfig() | 81 FrameReceiverConfig::FrameReceiverConfig() |
78 : receiver_ssrc(0), | 82 : receiver_ssrc(0), |
79 sender_ssrc(0), | 83 sender_ssrc(0), |
80 rtp_max_delay_ms(kDefaultRtpMaxDelayMs), | 84 rtp_max_delay_ms(kDefaultRtpMaxDelayMs), |
81 rtp_payload_type(0), | 85 rtp_payload_type(0), |
82 rtp_timebase(0), | 86 rtp_timebase(0), |
83 channels(0), | 87 channels(0), |
84 target_frame_rate(0), | 88 target_frame_rate(0), |
85 codec(CODEC_UNKNOWN) {} | 89 codec(CODEC_UNKNOWN) {} |
86 | 90 |
| 91 FrameReceiverConfig::FrameReceiverConfig(const FrameReceiverConfig& other) = |
| 92 default; |
| 93 |
87 FrameReceiverConfig::~FrameReceiverConfig() {} | 94 FrameReceiverConfig::~FrameReceiverConfig() {} |
88 | 95 |
89 } // namespace cast | 96 } // namespace cast |
90 } // namespace media | 97 } // namespace media |
OLD | NEW |