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 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // in nonadaptive mode.) | 49 // in nonadaptive mode.) |
50 bool enforce_frame_size = false; | 50 bool enforce_frame_size = false; |
51 }; | 51 }; |
52 | 52 |
53 explicit AudioEncoderIsacT(const Config& config); | 53 explicit AudioEncoderIsacT(const Config& config); |
54 explicit AudioEncoderIsacT( | 54 explicit AudioEncoderIsacT( |
55 const CodecInst& codec_inst, | 55 const CodecInst& codec_inst, |
56 const rtc::scoped_refptr<LockedIsacBandwidthInfo>& bwinfo); | 56 const rtc::scoped_refptr<LockedIsacBandwidthInfo>& bwinfo); |
57 ~AudioEncoderIsacT() override; | 57 ~AudioEncoderIsacT() override; |
58 | 58 |
59 size_t MaxEncodedBytes() const override; | |
60 int SampleRateHz() const override; | 59 int SampleRateHz() const override; |
61 size_t NumChannels() const override; | 60 size_t NumChannels() const override; |
62 size_t Num10MsFramesInNextPacket() const override; | 61 size_t Num10MsFramesInNextPacket() const override; |
63 size_t Max10MsFramesInAPacket() const override; | 62 size_t Max10MsFramesInAPacket() const override; |
64 int GetTargetBitrate() const override; | 63 int GetTargetBitrate() const override; |
65 EncodedInfo EncodeImpl(uint32_t rtp_timestamp, | 64 EncodedInfo EncodeImpl(uint32_t rtp_timestamp, |
66 rtc::ArrayView<const int16_t> audio, | 65 rtc::ArrayView<const int16_t> audio, |
67 rtc::Buffer* encoded) override; | 66 rtc::Buffer* encoded) override; |
68 void Reset() override; | 67 void Reset() override; |
69 | 68 |
(...skipping 19 matching lines...) Expand all Loading... |
89 | 88 |
90 // Timestamp of the previously encoded packet. | 89 // Timestamp of the previously encoded packet. |
91 uint32_t last_encoded_timestamp_; | 90 uint32_t last_encoded_timestamp_; |
92 | 91 |
93 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT); | 92 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT); |
94 }; | 93 }; |
95 | 94 |
96 } // namespace webrtc | 95 } // namespace webrtc |
97 | 96 |
98 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_ | 97 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_ |
OLD | NEW |