OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_INCLUDE_AUDIO_NETWORK_
ADAPTOR_CONFIG_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_INCLUDE_AUDIO_NETWORK_
ADAPTOR_CONFIG_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_INCLUDE_AUDIO_NETWORK_
ADAPTOR_CONFIG_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_INCLUDE_AUDIO_NETWORK_
ADAPTOR_CONFIG_H_ |
13 | 13 |
14 #include "webrtc/api/optional.h" | 14 #include "webrtc/api/optional.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 | 17 |
18 struct AudioEncoderRuntimeConfig { | 18 struct AudioEncoderRuntimeConfig { |
19 AudioEncoderRuntimeConfig(); | 19 AudioEncoderRuntimeConfig(); |
20 AudioEncoderRuntimeConfig(const AudioEncoderRuntimeConfig& other); | 20 AudioEncoderRuntimeConfig(const AudioEncoderRuntimeConfig& other); |
| 21 AudioEncoderRuntimeConfig& operator=(const AudioEncoderRuntimeConfig& other); |
21 ~AudioEncoderRuntimeConfig(); | 22 ~AudioEncoderRuntimeConfig(); |
22 rtc::Optional<int> bitrate_bps; | 23 rtc::Optional<int> bitrate_bps; |
23 rtc::Optional<int> frame_length_ms; | 24 rtc::Optional<int> frame_length_ms; |
24 // Note: This is what we tell the encoder. It doesn't have to reflect | 25 // Note: This is what we tell the encoder. It doesn't have to reflect |
25 // the actual NetworkMetrics; it's subject to our decision. | 26 // the actual NetworkMetrics; it's subject to our decision. |
26 rtc::Optional<float> uplink_packet_loss_fraction; | 27 rtc::Optional<float> uplink_packet_loss_fraction; |
27 rtc::Optional<bool> enable_fec; | 28 rtc::Optional<bool> enable_fec; |
28 rtc::Optional<bool> enable_dtx; | 29 rtc::Optional<bool> enable_dtx; |
29 | 30 |
30 // Some encoders can encode fewer channels than the actual input to make | 31 // Some encoders can encode fewer channels than the actual input to make |
31 // better use of the bandwidth. |num_channels| sets the number of channels | 32 // better use of the bandwidth. |num_channels| sets the number of channels |
32 // to encode. | 33 // to encode. |
33 rtc::Optional<size_t> num_channels; | 34 rtc::Optional<size_t> num_channels; |
34 }; | 35 }; |
35 | 36 |
36 } // namespace webrtc | 37 } // namespace webrtc |
37 | 38 |
38 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_INCLUDE_AUDIO_NETWO
RK_ADAPTOR_CONFIG_H_ | 39 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_INCLUDE_AUDIO_NETWO
RK_ADAPTOR_CONFIG_H_ |
OLD | NEW |