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

Side by Side Diff: webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.h

Issue 1881003003: Reland Remove the deprecated EncodeInternal interface from AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renamed ApproximateEncodedBytes to SufficientOutputBufferSize in Opus 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // The Vad pointer is mainly for testing. If a NULL pointer is passed, the 45 // The Vad pointer is mainly for testing. If a NULL pointer is passed, the
46 // AudioEncoderCng creates (and destroys) a Vad object internally. If an 46 // AudioEncoderCng creates (and destroys) a Vad object internally. If an
47 // object is passed, the AudioEncoderCng assumes ownership of the Vad 47 // object is passed, the AudioEncoderCng assumes ownership of the Vad
48 // object. 48 // object.
49 Vad* vad = nullptr; 49 Vad* vad = nullptr;
50 }; 50 };
51 51
52 explicit AudioEncoderCng(Config&& config); 52 explicit AudioEncoderCng(Config&& config);
53 ~AudioEncoderCng() override; 53 ~AudioEncoderCng() override;
54 54
55 size_t MaxEncodedBytes() const override;
56 int SampleRateHz() const override; 55 int SampleRateHz() const override;
57 size_t NumChannels() const override; 56 size_t NumChannels() const override;
58 int RtpTimestampRateHz() const override; 57 int RtpTimestampRateHz() const override;
59 size_t Num10MsFramesInNextPacket() const override; 58 size_t Num10MsFramesInNextPacket() const override;
60 size_t Max10MsFramesInAPacket() const override; 59 size_t Max10MsFramesInAPacket() const override;
61 int GetTargetBitrate() const override; 60 int GetTargetBitrate() const override;
62 EncodedInfo EncodeImpl(uint32_t rtp_timestamp, 61 EncodedInfo EncodeImpl(uint32_t rtp_timestamp,
63 rtc::ArrayView<const int16_t> audio, 62 rtc::ArrayView<const int16_t> audio,
64 rtc::Buffer* encoded) override; 63 rtc::Buffer* encoded) override;
65 void Reset() override; 64 void Reset() override;
(...skipping 20 matching lines...) Expand all
86 bool last_frame_active_; 85 bool last_frame_active_;
87 std::unique_ptr<Vad> vad_; 86 std::unique_ptr<Vad> vad_;
88 std::unique_ptr<CNG_enc_inst, CngInstDeleter> cng_inst_; 87 std::unique_ptr<CNG_enc_inst, CngInstDeleter> cng_inst_;
89 88
90 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderCng); 89 RTC_DISALLOW_COPY_AND_ASSIGN(AudioEncoderCng);
91 }; 90 };
92 91
93 } // namespace webrtc 92 } // namespace webrtc
94 93
95 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_AUDIO_ENCODER_CNG_H_ 94 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_CNG_AUDIO_ENCODER_CNG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698