/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | codec_manager.cc | 25 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 …]
|
D | codec_manager.h | 38 bool RegisterEncoder(const CodecInst& send_codec);
|
D | audio_coding_module_impl.h | 45 int RegisterSendCodec(const CodecInst& send_codec) override;
|
D | audio_coding_module_impl.cc | 199 int AudioCodingModuleImpl::RegisterSendCodec(const CodecInst& send_codec) { in RegisterSendCodec() argument 201 if (!codec_manager_.RegisterEncoder(send_codec)) { in RegisterSendCodec()
|
/external/webrtc/webrtc/video/ |
D | vie_encoder.cc | 247 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/ |
D | codec_database.cc | 193 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 …]
|
D | codec_database.h | 58 bool SetSendCodec(const VideoCodec* send_codec, 136 bool RequiresEncoderReset(const VideoCodec& send_codec);
|
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/ |
D | file_test.cc | 64 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/ |
D | fakewebrtcvoiceengine.h | 167 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) {
|
D | webrtcvoiceengine.cc | 1480 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 …]
|
D | webrtcvoiceengine.h | 236 webrtc::CodecInst* send_codec); 239 bool SetSendCodec(int channel, const webrtc::CodecInst& send_codec);
|
D | webrtcvideoengine2.h | 164 bool GetSendCodec(VideoCodec* send_codec) override;
|
D | webrtcvideoengine2_unittest.cc | 2506 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/ |
D | TestStereo.cc | 832 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/ |
D | audio_coding_module.h | 203 virtual int32_t RegisterSendCodec(const CodecInst& send_codec) = 0;
|
/external/webrtc/talk/media/base/ |
D | fakemediaengine.h | 499 virtual bool GetSendCodec(VideoCodec* send_codec) { in GetSendCodec() argument 503 *send_codec = send_codecs_[0]; in GetSendCodec()
|
D | mediachannel.h | 1072 virtual bool GetSendCodec(VideoCodec* send_codec) = 0;
|
/external/webrtc/webrtc/voice_engine/ |
D | channel.cc | 1375 auto send_codec = audio_coding_->SendCodec(); in GetSendCodec() local 1376 if (send_codec) { in GetSendCodec() 1377 codec = *send_codec; in GetSendCodec()
|