Home
last modified time | relevance | path

Searched refs:speech_encoder (Results 1 – 12 of 12) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/acm2/
Drent_a_codec_unittest.cc37 param.speech_encoder = speech_encoder_; in CreateCodec()
114 param.speech_encoder = &external_encoder; in TEST()
145 param.speech_encoder = rac.RentEncoder(codec_inst); in TEST()
146 ASSERT_TRUE(param.speech_encoder); in TEST()
147 EXPECT_EQ(param.speech_encoder, rac.RentEncoderStack(&param)); in TEST()
154 param.speech_encoder = &external_encoder; in TEST()
163 MockAudioEncoder speech_encoder; in TestCngAndRedResetSpeechEncoder() local
164 EXPECT_CALL(speech_encoder, NumChannels()).WillRepeatedly(Return(1)); in TestCngAndRedResetSpeechEncoder()
165 EXPECT_CALL(speech_encoder, Max10MsFramesInAPacket()) in TestCngAndRedResetSpeechEncoder()
167 EXPECT_CALL(speech_encoder, SampleRateHz()).WillRepeatedly(Return(8000)); in TestCngAndRedResetSpeechEncoder()
[all …]
Drent_a_codec.cc185 config.speech_encoder = encoder; in CreateRedEncoder()
198 config.speech_encoder = encoder; in CreateCngEncoder()
255 RTC_DCHECK(param->speech_encoder); in RentEncoderStack()
259 if (!param->speech_encoder->SetFec(true)) in RentEncoderStack()
263 const bool success = param->speech_encoder->SetFec(false); in RentEncoderStack()
268 auto it = m.find(param->speech_encoder->SampleRateHz()); in RentEncoderStack()
274 param->use_cng && cng_pt && param->speech_encoder->NumChannels() == 1; in RentEncoderStack()
281 param->speech_encoder->Reset(); in RentEncoderStack()
283 encoder_stack_ = param->speech_encoder; in RentEncoderStack()
Dcodec_manager_unittest.cc52 cm.GetStackParams()->speech_encoder = enc0.get(); in TEST()
59 cm.GetStackParams()->speech_encoder = enc1.get(); in TEST()
67 cm.GetStackParams()->speech_encoder = enc0.get(); in TEST()
Dcodec_manager.cc116 codec_stack_params_.speech_encoder = nullptr; // Caller must recreate it. in RegisterEncoder()
161 codec_stack_params_.speech_encoder in SetVAD()
162 ? (codec_stack_params_.speech_encoder->NumChannels() != 1) in SetVAD()
Daudio_coding_module_impl.cc205 if (!sp->speech_encoder && codec_manager_.GetCodecInst()) { in RegisterSendCodec()
211 sp->speech_encoder = enc; in RegisterSendCodec()
213 if (sp->speech_encoder) in RegisterSendCodec()
222 sp->speech_encoder = external_speech_encoder; in RegisterExternalSendCodec()
233 auto* enc = codec_manager_.GetStackParams()->speech_encoder; in SendCodec()
460 if (sp->speech_encoder) in SetREDStatus()
485 if (sp->speech_encoder) in SetCodecFEC()
517 if (sp->speech_encoder) in SetVAD()
Drent_a_codec.h208 AudioEncoder* speech_encoder = nullptr; member
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/
Daudio_encoder_cng.cc39 if (!speech_encoder) in IsOk()
41 if (num_channels != speech_encoder->NumChannels()) in IsOk()
44 static_cast<int>(speech_encoder->Max10MsFramesInAPacket() * 10)) in IsOk()
53 : speech_encoder_(config.speech_encoder), in AudioEncoderCng()
Daudio_encoder_cng.h38 AudioEncoder* speech_encoder = nullptr; member
Daudio_encoder_cng_unittest.cc42 config_.speech_encoder = &mock_encoder_; in AudioEncoderCngTest()
443 config_.speech_encoder = NULL; in TEST_F()
/external/webrtc/webrtc/modules/audio_coding/codecs/red/
Daudio_encoder_copy_red.h31 AudioEncoder* speech_encoder; member
Daudio_encoder_copy_red_unittest.cc42 config.speech_encoder = &mock_encoder_; in AudioEncoderCopyRedTest()
327 config.speech_encoder = NULL; in TEST_F()
Daudio_encoder_copy_red.cc20 : speech_encoder_(config.speech_encoder), in AudioEncoderCopyRed()