Home
last modified time | relevance | path

Searched refs:codec_inst (Results 1 – 23 of 23) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/acm2/
Dacm_codec_database.cc223 int ACMCodecDB::CodecNumber(const CodecInst& codec_inst) { in CodecNumber() argument
225 int codec_id = CodecId(codec_inst); in CodecNumber()
233 if (!RentACodec::IsPayloadTypeValid(codec_inst.pltype)) { in CodecNumber()
255 if (codec_inst.pacsize == packet_size_samples) { in CodecNumber()
266 if (codec_inst.pacsize < 1) { in CodecNumber()
272 if (STR_CASE_CMP("isac", codec_inst.plname) == 0) { in CodecNumber()
273 return IsISACRateValid(codec_inst.rate) ? codec_id : kInvalidRate; in CodecNumber()
274 } else if (STR_CASE_CMP("ilbc", codec_inst.plname) == 0) { in CodecNumber()
275 return IsILBCRateValid(codec_inst.rate, codec_inst.pacsize) in CodecNumber()
277 } else if (STR_CASE_CMP("opus", codec_inst.plname) == 0) { in CodecNumber()
[all …]
Drent_a_codec.cc60 const CodecInst& codec_inst) { in CodecIdByInst() argument
61 return CodecIdFromIndex(ACMCodecDB::CodecNumber(codec_inst)); in CodecIdByInst()
81 bool RentACodec::IsCodecValid(const CodecInst& codec_inst) { in IsCodecValid() argument
82 return ACMCodecDB::CodecNumber(codec_inst) >= 0; in IsCodecValid()
114 const CodecInst& codec_inst) { in RegisterCngPayloadType() argument
115 if (STR_CASE_CMP(codec_inst.plname, "CN") != 0) in RegisterCngPayloadType()
117 switch (codec_inst.plfreq) { in RegisterCngPayloadType()
122 (*pt_map)[codec_inst.plfreq] = codec_inst.pltype; in RegisterCngPayloadType()
131 const CodecInst& codec_inst) { in RegisterRedPayloadType() argument
132 if (STR_CASE_CMP(codec_inst.plname, "RED") != 0) in RegisterRedPayloadType()
[all …]
Dacm_codec_database.h61 static int CodecNumber(const CodecInst& codec_inst);
62 static int CodecId(const CodecInst& codec_inst);
64 static int ReceiverCodecNumber(const CodecInst& codec_inst);
Drent_a_codec.h167 static rtc::Optional<CodecId> CodecIdByInst(const CodecInst& codec_inst);
171 static bool IsCodecValid(const CodecInst& codec_inst);
192 const CodecInst& codec_inst);
194 const CodecInst& codec_inst);
202 AudioEncoder* RentEncoder(const CodecInst& codec_inst);
Drent_a_codec_unittest.cc143 CodecInst codec_inst = kDefaultCodecInst; in TEST() local
144 codec_inst.pacsize = kPacketSizeSamples; in TEST()
145 param.speech_encoder = rac.RentEncoder(codec_inst); in TEST()
207 const CodecInst codec_inst = { in TEST() local
210 EXPECT_FALSE(rent_a_codec.RentEncoder(codec_inst)); in TEST()
Dacm_receiver_unittest_oldapi.cc43 const auto codec_inst = RentACodec::CodecInstById(codec_id); in CodecIdInst() local
44 EXPECT_TRUE(codec_inst); in CodecIdInst()
45 inst = *codec_inst; in CodecIdInst()
Daudio_coding_module_unittest_oldapi.cc1631 CodecInst codec_inst; in TEST_F() local
1632 codec_inst.channels = 1; in TEST_F()
1633 codec_inst.pacsize = 160; in TEST_F()
1634 codec_inst.pltype = 0; in TEST_F()
1635 AudioEncoderPcmU encoder(codec_inst); in TEST_F()
1665 SetUpTestExternalEncoder(&mock_encoder, codec_inst.pltype)); in TEST_F()
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/
Daudio_encoder_pcm16b.cc30 AudioEncoderPcm16B::Config CreateConfig(const CodecInst& codec_inst) { in CreateConfig() argument
32 config.num_channels = codec_inst.channels; in CreateConfig()
33 config.sample_rate_hz = codec_inst.plfreq; in CreateConfig()
35 codec_inst.pacsize, rtc::CheckedDivExact(config.sample_rate_hz, 1000)); in CreateConfig()
36 config.payload_type = codec_inst.pltype; in CreateConfig()
48 AudioEncoderPcm16B::AudioEncoderPcm16B(const CodecInst& codec_inst) in AudioEncoderPcm16B() argument
49 : AudioEncoderPcm16B(CreateConfig(codec_inst)) {} in AudioEncoderPcm16B()
Daudio_encoder_pcm16b.h33 explicit AudioEncoderPcm16B(const CodecInst& codec_inst);
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/
Daudio_encoder_pcm.cc24 typename T::Config CreateConfig(const CodecInst& codec_inst) { in CreateConfig() argument
26 config.frame_size_ms = codec_inst.pacsize / 8; in CreateConfig()
27 config.num_channels = codec_inst.channels; in CreateConfig()
28 config.payload_type = codec_inst.pltype; in CreateConfig()
107 AudioEncoderPcmA::AudioEncoderPcmA(const CodecInst& codec_inst) in AudioEncoderPcmA() argument
108 : AudioEncoderPcmA(CreateConfig<AudioEncoderPcmA>(codec_inst)) {} in AudioEncoderPcmA()
120 AudioEncoderPcmU::AudioEncoderPcmU(const CodecInst& codec_inst) in AudioEncoderPcmU() argument
121 : AudioEncoderPcmU(CreateConfig<AudioEncoderPcmU>(codec_inst)) {} in AudioEncoderPcmU()
Daudio_encoder_pcm.h79 explicit AudioEncoderPcmA(const CodecInst& codec_inst);
101 explicit AudioEncoderPcmU(const CodecInst& codec_inst);
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/
Daudio_encoder_isac_t_impl.h22 const CodecInst& codec_inst, in CreateIsacConfig() argument
26 config.payload_type = codec_inst.pltype; in CreateIsacConfig()
27 config.sample_rate_hz = codec_inst.plfreq; in CreateIsacConfig()
29 rtc::CheckedDivExact(1000 * codec_inst.pacsize, config.sample_rate_hz); in CreateIsacConfig()
30 config.adaptive_mode = (codec_inst.rate == -1); in CreateIsacConfig()
31 if (codec_inst.rate != -1) in CreateIsacConfig()
32 config.bit_rate = codec_inst.rate; in CreateIsacConfig()
71 AudioEncoderIsacT<T>::AudioEncoderIsacT(const CodecInst& codec_inst, in AudioEncoderIsacT() argument
73 : AudioEncoderIsacT(CreateIsacConfig<T>(codec_inst, bwinfo)) {} in AudioEncoderIsacT()
Daudio_encoder_isac_t.h53 explicit AudioEncoderIsacT(const CodecInst& codec_inst,
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Daudio_encoder_ilbc.cc25 AudioEncoderIlbc::Config CreateConfig(const CodecInst& codec_inst) { in CreateConfig() argument
27 config.frame_size_ms = codec_inst.pacsize / 8; in CreateConfig()
28 config.payload_type = codec_inst.pltype; in CreateConfig()
52 AudioEncoderIlbc::AudioEncoderIlbc(const CodecInst& codec_inst) in AudioEncoderIlbc() argument
53 : AudioEncoderIlbc(CreateConfig(codec_inst)) {} in AudioEncoderIlbc()
Daudio_encoder_ilbc.h34 explicit AudioEncoderIlbc(const CodecInst& codec_inst);
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Daudio_encoder_g722.cc24 AudioEncoderG722::Config CreateConfig(const CodecInst& codec_inst) { in CreateConfig() argument
26 config.num_channels = codec_inst.channels; in CreateConfig()
27 config.frame_size_ms = codec_inst.pacsize / 16; in CreateConfig()
28 config.payload_type = codec_inst.pltype; in CreateConfig()
58 AudioEncoderG722::AudioEncoderG722(const CodecInst& codec_inst) in AudioEncoderG722() argument
59 : AudioEncoderG722(CreateConfig(codec_inst)) {} in AudioEncoderG722()
Daudio_encoder_g722.h34 explicit AudioEncoderG722(const CodecInst& codec_inst);
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Daudio_encoder_opus.cc26 AudioEncoderOpus::Config CreateConfig(const CodecInst& codec_inst) { in CreateConfig() argument
28 config.frame_size_ms = rtc::CheckedDivExact(codec_inst.pacsize, 48); in CreateConfig()
29 config.num_channels = codec_inst.channels; in CreateConfig()
30 config.bitrate_bps = codec_inst.rate; in CreateConfig()
31 config.payload_type = codec_inst.pltype; in CreateConfig()
96 AudioEncoderOpus::AudioEncoderOpus(const CodecInst& codec_inst) in AudioEncoderOpus() argument
97 : AudioEncoderOpus(CreateConfig(codec_inst)) {} in AudioEncoderOpus()
Daudio_encoder_opus.h54 explicit AudioEncoderOpus(const CodecInst& codec_inst);
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dmixing_test.cc62 const CodecInst& codec_inst) { in RunMixingTest() argument
86 codec_inst); in RunMixingTest()
163 const CodecInst& codec_inst) { in StartRemoteStreams() argument
169 StartRemoteStream(streams[i], codec_inst, 1234 + 2 * i); in StartRemoteStreams()
173 CodecInst codec_inst_stereo = codec_inst; in StartRemoteStreams()
182 void StartRemoteStream(int stream, const CodecInst& codec_inst, int port) { in StartRemoteStream() argument
183 EXPECT_EQ(0, voe_codec_->SetRecPayloadType(stream, codec_inst)); in StartRemoteStream()
190 EXPECT_EQ(0, voe_codec_->SetSendCodec(stream, codec_inst)); in StartRemoteStream()
/external/webrtc/webrtc/audio/
Daudio_send_stream.cc145 webrtc::CodecInst codec_inst = {0}; in GetStats() local
146 if (codec->GetSendCodec(config_.voe_channel_id, codec_inst) != -1) { in GetStats()
147 RTC_DCHECK_NE(codec_inst.pltype, -1); in GetStats()
148 stats.codec_name = codec_inst.plname; in GetStats()
158 if (codec_inst.plfreq / 1000 > 0) { in GetStats()
160 block.interarrival_jitter / (codec_inst.plfreq / 1000); in GetStats()
Daudio_receive_stream.cc197 webrtc::CodecInst codec_inst = {0}; in GetStats() local
198 if (codec->GetRecCodec(config_.voe_channel_id, codec_inst) == -1) { in GetStats()
207 if (codec_inst.pltype != -1) { in GetStats()
208 stats.codec_name = codec_inst.plname; in GetStats()
211 if (codec_inst.plfreq / 1000 > 0) { in GetStats()
212 stats.jitter_ms = call_stats.jitterSamples / (codec_inst.plfreq / 1000); in GetStats()
/external/webrtc/talk/media/webrtc/
Dwebrtcvoiceengine_unittest.cc440 webrtc::CodecInst codec_inst; in TEST_F() local
442 EXPECT_TRUE(cricket::WebRtcVoiceEngine::ToCodecInst(kPcmuCodec, &codec_inst)); in TEST_F()
444 EXPECT_TRUE(cricket::WebRtcVoiceEngine::ToCodecInst(kIsacCodec, &codec_inst)); in TEST_F()
447 &codec_inst)); in TEST_F()
451 EXPECT_TRUE(cricket::WebRtcVoiceEngine::ToCodecInst(codec, &codec_inst)); in TEST_F()
452 EXPECT_EQ(codec.id, codec_inst.pltype); in TEST_F()
456 EXPECT_TRUE(cricket::WebRtcVoiceEngine::ToCodecInst(codec, &codec_inst)); in TEST_F()
457 EXPECT_EQ(codec.id, codec_inst.pltype); in TEST_F()
458 EXPECT_EQ(8000, codec_inst.plfreq); in TEST_F()
462 EXPECT_TRUE(cricket::WebRtcVoiceEngine::ToCodecInst(codec, &codec_inst)); in TEST_F()
[all …]