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_format.h" | 20 #include "webrtc/api/audio_codecs/audio_format.h" |
20 #include "webrtc/base/constructormagic.h" | 21 #include "webrtc/base/constructormagic.h" |
21 #include "webrtc/base/optional.h" | 22 #include "webrtc/base/optional.h" |
22 #include "webrtc/common_audio/smoothing_filter.h" | 23 #include "webrtc/common_audio/smoothing_filter.h" |
23 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" | 24 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" |
24 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h" | |
25 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h" | 25 #include "webrtc/modules/audio_coding/codecs/opus/opus_interface.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 | 28 |
29 class RtcEventLog; | 29 class RtcEventLog; |
30 | 30 |
31 struct CodecInst; | 31 struct CodecInst; |
32 | 32 |
33 class AudioEncoderOpus final : public AudioEncoder { | 33 class AudioEncoderOpus final : public AudioEncoder { |
34 public: | 34 public: |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 rtc::Optional<size_t> overhead_bytes_per_packet_; | 188 rtc::Optional<size_t> overhead_bytes_per_packet_; |
189 const std::unique_ptr<SmoothingFilter> bitrate_smoother_; | 189 const std::unique_ptr<SmoothingFilter> bitrate_smoother_; |
190 rtc::Optional<int64_t> bitrate_smoother_last_update_time_; | 190 rtc::Optional<int64_t> bitrate_smoother_last_update_time_; |
191 | 191 |
192 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); | 192 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderOpus); |
193 }; | 193 }; |
194 | 194 |
195 } // namespace webrtc | 195 } // namespace webrtc |
196 | 196 |
197 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ | 197 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_OPUS_AUDIO_ENCODER_OPUS_H_ |
OLD | NEW |