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