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

Unified Diff: webrtc/modules/audio_coding/main/acm2/codec_owner.cc

Issue 1431103002: Move the Rent-A-Codec™ from CodecOwner to CodecManager (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@rac-dyn
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/main/acm2/codec_owner.cc
diff --git a/webrtc/modules/audio_coding/main/acm2/codec_owner.cc b/webrtc/modules/audio_coding/main/acm2/codec_owner.cc
index 43f684ec7f55fd0e86bfca097a43afa13fea4a50..6b9809f836fdc9081c88508bdd2147c74353d874 100644
--- a/webrtc/modules/audio_coding/main/acm2/codec_owner.cc
+++ b/webrtc/modules/audio_coding/main/acm2/codec_owner.cc
@@ -77,17 +77,6 @@ void CreateCngEncoder(int cng_payload_type,
}
} // namespace
-bool CodecOwner::SetEncoders(const CodecInst& speech_inst,
- int cng_payload_type,
- ACMVADMode vad_mode,
- int red_payload_type) {
- AudioEncoder* speech_encoder = rent_a_codec_.RentEncoder(speech_inst);
- if (!speech_encoder)
- return false;
- SetEncoders(speech_encoder, cng_payload_type, vad_mode, red_payload_type);
- return true;
-}
-
void CodecOwner::SetEncoders(AudioEncoder* external_speech_encoder,
int cng_payload_type,
ACMVADMode vad_mode,
@@ -110,10 +99,6 @@ void CodecOwner::ChangeCngAndRed(int cng_payload_type,
CreateCngEncoder(cng_payload_type, vad_mode, encoder, &cng_encoder_);
}
-AudioDecoder* CodecOwner::GetIsacDecoder() {
- return rent_a_codec_.RentIsacDecoder();
-}
-
AudioEncoder* CodecOwner::Encoder() {
const auto& const_this = *this;
return const_cast<AudioEncoder*>(const_this.Encoder());
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/codec_owner.h ('k') | webrtc/modules/audio_coding/main/acm2/codec_owner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698