Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/audio_encoder_isac_t.h

Issue 1883543002: Revert of Remove the deprecated EncodeInternal interface from AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
59 int SampleRateHz() const override; 60 int SampleRateHz() const override;
60 size_t NumChannels() const override; 61 size_t NumChannels() const override;
61 size_t Num10MsFramesInNextPacket() const override; 62 size_t Num10MsFramesInNextPacket() const override;
62 size_t Max10MsFramesInAPacket() const override; 63 size_t Max10MsFramesInAPacket() const override;
63 int GetTargetBitrate() const override; 64 int GetTargetBitrate() const override;
64 EncodedInfo EncodeImpl(uint32_t rtp_timestamp, 65 EncodedInfo EncodeImpl(uint32_t rtp_timestamp,
65 rtc::ArrayView<const int16_t> audio, 66 rtc::ArrayView<const int16_t> audio,
66 rtc::Buffer* encoded) override; 67 rtc::Buffer* encoded) override;
67 void Reset() override; 68 void Reset() override;
68 69
(...skipping 19 matching lines...) Expand all
88 89
89 // Timestamp of the previously encoded packet. 90 // Timestamp of the previously encoded packet.
90 uint32_t last_encoded_timestamp_; 91 uint32_t last_encoded_timestamp_;
91 92
92 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT); 93 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderIsacT);
93 }; 94 };
94 95
95 } // namespace webrtc 96 } // namespace webrtc
96 97
97 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_ 98 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_AUDIO_ENCODER_ISAC_T_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698