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

Unified Diff: webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h

Issue 1673213002: AudioCodingModule: Add methods for injecting external encoder stacks (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: more docs Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h
diff --git a/webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h b/webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h
index 102396f70b372375ab7227783eef0f6df4622619..030591b484e7f3ae621095438051ade39964f666 100644
--- a/webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h
+++ b/webrtc/modules/audio_coding/acm2/audio_coding_module_impl.h
@@ -47,6 +47,8 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
void RegisterExternalSendCodec(
AudioEncoder* external_speech_encoder) override;
+ void VisitEncoder(const EncoderVisitor& ev) override;
+
// Get current send codec.
rtc::Optional<CodecInst> SendCodec() const override;
@@ -117,9 +119,9 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
// Get current playout frequency.
int PlayoutFrequency() const override;
- // Register possible receive codecs, can be called multiple times,
- // for codecs, CNG, DTMF, RED.
int RegisterReceiveCodec(const CodecInst& receive_codec) override;
+ int RegisterReceiveCodec(const CodecInst& receive_codec,
+ const DecoderFactory& df) override;
int RegisterExternalReceiveCodec(int rtp_payload_type,
AudioDecoder* external_decoder,
@@ -211,6 +213,10 @@ class AudioCodingModuleImpl final : public AudioCodingModule {
const std::string histogram_name_;
};
+ int RegisterReceiveCodecUnlocked(const CodecInst& codec,
+ const DecoderFactory& df)
+ EXCLUSIVE_LOCKS_REQUIRED(acm_crit_sect_);
+
int Add10MsDataInternal(const AudioFrame& audio_frame, InputData* input_data)
EXCLUSIVE_LOCKS_REQUIRED(acm_crit_sect_);
int Encode(const InputData& input_data)

Powered by Google App Engine
This is Rietveld 408576698