OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ |
13 | 13 |
14 #include <functional> | 14 #include <functional> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/api/audio_codecs/audio_encoder.h" | 19 #include "webrtc/api/audio_codecs/audio_encoder.h" |
20 #include "webrtc/api/audio_codecs/audio_format.h" | 20 #include "webrtc/api/audio_codecs/audio_format.h" |
21 #include "webrtc/api/audio_codecs/opus/audio_encoder_opus_config.h" | 21 #include "webrtc/api/audio_codecs/opus/audio_encoder_opus_config.h" |
22 #include "webrtc/base/constructormagic.h" | |
23 #include "webrtc/base/optional.h" | |
24 #include "webrtc/base/protobuf_utils.h" | |
25 #include "webrtc/common_audio/smoothing_filter.h" | 22 #include "webrtc/common_audio/smoothing_filter.h" |
26 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" | 23 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" |
27 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h" | 24 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h" |
| 25 #include "webrtc/rtc_base/constructormagic.h" |
| 26 #include "webrtc/rtc_base/optional.h" |
| 27 #include "webrtc/rtc_base/protobuf_utils.h" |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 | 30 |
31 class RtcEventLog; | 31 class RtcEventLog; |
32 | 32 |
33 struct CodecInst; | 33 struct CodecInst; |
34 | 34 |
35 class AudioEncoderOpus final : public AudioEncoder { | 35 class AudioEncoderOpus final : public AudioEncoder { |
36 public: | 36 public: |
37 static void AppendSupportedEncoders(std::vector<AudioCodecSpec>* specs); | 37 static void AppendSupportedEncoders(std::vector<AudioCodecSpec>* specs); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 rtc::Optional<size_t> overhead_bytes_per_packet_; | 169 rtc::Optional<size_t> overhead_bytes_per_packet_; |
170 const std::unique_ptr<SmoothingFilter> bitrate_smoother_; | 170 const std::unique_ptr<SmoothingFilter> bitrate_smoother_; |
171 rtc::Optional<int64_t> bitrate_smoother_last_update_time_; | 171 rtc::Optional<int64_t> bitrate_smoother_last_update_time_; |
172 | 172 |
173 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); | 173 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); |
174 }; | 174 }; |
175 | 175 |
176 } // namespace webrtc | 176 } // namespace webrtc |
177 | 177 |
178 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ | 178 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ |
OLD | NEW |