Home
last modified time | relevance | path

Searched refs:send_codec (Results 1 – 18 of 18) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/acm2/
Dcodec_manager.cc25 int IsValidSendCodec(const CodecInst& send_codec) { in IsValidSendCodec() argument
27 if ((send_codec.channels != 1) && (send_codec.channels != 2)) { in IsValidSendCodec()
31 send_codec.channels); in IsValidSendCodec()
35 auto maybe_codec_id = RentACodec::CodecIdByInst(send_codec); in IsValidSendCodec()
43 if (!STR_CASE_CMP(send_codec.plname, "telephone-event")) { in IsValidSendCodec()
49 if (!RentACodec::IsSupportedNumChannels(*maybe_codec_id, send_codec.channels) in IsValidSendCodec()
53 send_codec.channels, send_codec.plname); in IsValidSendCodec()
75 bool CodecManager::RegisterEncoder(const CodecInst& send_codec) { in RegisterEncoder() argument
77 int codec_id = IsValidSendCodec(send_codec); in RegisterEncoder()
86 &codec_stack_params_.red_payload_types, send_codec)) { in RegisterEncoder()
[all …]
Dcodec_manager.h38 bool RegisterEncoder(const CodecInst& send_codec);
Daudio_coding_module_impl.h45 int RegisterSendCodec(const CodecInst& send_codec) override;
Daudio_coding_module_impl.cc199 int AudioCodingModuleImpl::RegisterSendCodec(const CodecInst& send_codec) { in RegisterSendCodec() argument
201 if (!codec_manager_.RegisterEncoder(send_codec)) { in RegisterSendCodec()
/external/webrtc/webrtc/video/
Dvie_encoder.cc247 VideoCodec send_codec; in GetPaddingNeededBps() local
257 send_codec = encoder_config_; in GetPaddingNeededBps()
266 if (send_codec.numberOfSimulcastStreams == 0) { in GetPaddingNeededBps()
267 pad_up_to_bitrate_bps = send_codec.minBitrate * 1000; in GetPaddingNeededBps()
269 SimulcastStream* stream_configs = send_codec.simulcastStream; in GetPaddingNeededBps()
271 stream_configs[send_codec.numberOfSimulcastStreams - 1].minBitrate * in GetPaddingNeededBps()
273 for (int i = 0; i < send_codec.numberOfSimulcastStreams - 1; ++i) { in GetPaddingNeededBps()
280 if (!video_is_suspended && send_codec.numberOfSimulcastStreams <= 1) in GetPaddingNeededBps()
580 VideoCodec send_codec; in OnNetworkChanged() local
587 send_codec = encoder_config_; in OnNetworkChanged()
[all …]
/external/webrtc/webrtc/modules/video_coding/
Dcodec_database.cc193 bool VCMCodecDataBase::SetSendCodec(const VideoCodec* send_codec, in SetSendCodec() argument
196 RTC_DCHECK(send_codec); in SetSendCodec()
201 RTC_DCHECK_GE(send_codec->plType, 1); in SetSendCodec()
203 RTC_DCHECK_LE(send_codec->startBitrate, 1000000u); in SetSendCodec()
204 RTC_DCHECK(send_codec->codecType != kVideoCodecUnknown); in SetSendCodec()
216 memcpy(&new_send_codec, send_codec, sizeof(new_send_codec)); in SetSendCodec()
220 new_send_codec.maxBitrate = (static_cast<int>(send_codec->height) * in SetSendCodec()
221 static_cast<int>(send_codec->width) * in SetSendCodec()
222 static_cast<int>(send_codec->maxFramerate)) / in SetSendCodec()
224 if (send_codec->startBitrate > new_send_codec.maxBitrate) { in SetSendCodec()
[all …]
Dcodec_database.h58 bool SetSendCodec(const VideoCodec* send_codec,
136 bool RequiresEncoderReset(const VideoCodec& send_codec);
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dfile_test.cc64 webrtc::CodecInst send_codec; in TEST_F() local
65 voe_codec_->GetSendCodec(channel_, send_codec); in TEST_F()
72 channel_, recording_filename.c_str(), &send_codec)); in TEST_F()
/external/webrtc/talk/media/webrtc/
Dfakewebrtcvoiceengine.h167 memset(&send_codec, 0, sizeof(send_codec)); in Channel()
186 webrtc::CodecInst send_codec; member
410 channels_[channel]->send_codec = codec;
416 codec = channels_[channel]->send_codec;
478 if (channels_[channel]->send_codec.channels == 2) {
490 if (_stricmp(channels_[channel]->send_codec.plname, "opus") != 0) {
506 if (_stricmp(channels_[channel]->send_codec.plname, "opus") != 0) {
525 if (_stricmp(channels_[channel]->send_codec.plname, "opus") != 0) {
Dwebrtcvoiceengine.cc1480 webrtc::CodecInst send_codec; in SetSendCodecs() local
1481 memset(&send_codec, 0, sizeof(send_codec)); in SetSendCodecs()
1510 if (!GetRedSendCodec(codec, codecs, &send_codec)) { in SetSendCodecs()
1522 send_codec = voe_codec; in SetSendCodecs()
1527 GetOpusConfig(codec, &send_codec, &enable_codec_fec, in SetSendCodecs()
1534 if (!WebRtcVoiceCodecs::SetPTimeAsPacketSize(&send_codec, ptime_ms)) { in SetSendCodecs()
1536 << send_codec.plname; in SetSendCodecs()
1557 if (!SetSendCodec(channel, send_codec)) in SetSendCodecs()
1571 if (IsCodec(send_codec, kOpusCodecName)) { in SetSendCodecs()
1601 send_codec_.reset(new webrtc::CodecInst(send_codec)); in SetSendCodecs()
[all …]
Dwebrtcvoiceengine.h236 webrtc::CodecInst* send_codec);
239 bool SetSendCodec(int channel, const webrtc::CodecInst& send_codec);
Dwebrtcvideoengine2.h164 bool GetSendCodec(VideoCodec* send_codec) override;
Dwebrtcvideoengine2_unittest.cc2506 cricket::VideoCodec send_codec(100, "VP8", 640, 480, 30, 0); in TEST_F() local
2508 parameters.codecs.push_back(send_codec); in TEST_F()
2583 cricket::VideoCodec send_codec(100, "VP8", 640, 480, 30, 0); in TEST_F() local
2585 parameters.codecs.push_back(send_codec); in TEST_F()
/external/webrtc/webrtc/modules/audio_coding/test/
DTestStereo.cc832 auto send_codec = acm_a_->SendCodec(); in DisplaySendReceiveCodec() local
834 ASSERT_TRUE(send_codec); in DisplaySendReceiveCodec()
835 printf("%s -> ", send_codec->plname); in DisplaySendReceiveCodec()
/external/webrtc/webrtc/modules/audio_coding/include/
Daudio_coding_module.h203 virtual int32_t RegisterSendCodec(const CodecInst& send_codec) = 0;
/external/webrtc/talk/media/base/
Dfakemediaengine.h499 virtual bool GetSendCodec(VideoCodec* send_codec) { in GetSendCodec() argument
503 *send_codec = send_codecs_[0]; in GetSendCodec()
Dmediachannel.h1072 virtual bool GetSendCodec(VideoCodec* send_codec) = 0;
/external/webrtc/webrtc/voice_engine/
Dchannel.cc1375 auto send_codec = audio_coding_->SendCodec(); in GetSendCodec() local
1376 if (send_codec) { in GetSendCodec()
1377 codec = *send_codec; in GetSendCodec()