/external/webrtc/modules/video_coding/ |
D | decoder_database.cc | 29 uint8_t payload_type) in VCMExtDecoderMapItem() argument 30 : payload_type(payload_type), in VCMExtDecoderMapItem() 46 bool VCMDecoderDataBase::DeregisterExternalDecoder(uint8_t payload_type) { in DeregisterExternalDecoder() argument 47 ExternalDecoderMap::iterator it = dec_external_map_.find(payload_type); in DeregisterExternalDecoder() 60 DeregisterReceiveCodec(payload_type); in DeregisterExternalDecoder() 69 uint8_t payload_type) { in RegisterExternalDecoder() argument 72 new VCMExtDecoderMapItem(external_decoder, payload_type); in RegisterExternalDecoder() 73 DeregisterExternalDecoder(payload_type); in RegisterExternalDecoder() 74 dec_external_map_[payload_type] = ext_decoder; in RegisterExternalDecoder() 91 bool VCMDecoderDataBase::DeregisterReceiveCodec(uint8_t payload_type) { in DeregisterReceiveCodec() argument [all …]
|
D | decoder_database.h | 36 uint8_t payload_type); 38 uint8_t payload_type; member 47 bool DeregisterExternalDecoder(uint8_t payload_type); 49 uint8_t payload_type); 54 bool DeregisterReceiveCodec(uint8_t payload_type); 77 const VCMDecoderMapItem* FindDecoderItem(uint8_t payload_type) const; 80 uint8_t payload_type) const;
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_sender_audio.cc | 64 const int8_t payload_type, in RegisterAudioPayload() argument 73 cngnb_payload_type_ = payload_type; in RegisterAudioPayload() 76 cngwb_payload_type_ = payload_type; in RegisterAudioPayload() 79 cngswb_payload_type_ = payload_type; in RegisterAudioPayload() 82 cngfb_payload_type_ = payload_type; in RegisterAudioPayload() 91 dtmf_payload_type_ = payload_type; in RegisterAudioPayload() 102 bool RTPSenderAudio::MarkerBit(AudioFrameType frame_type, int8_t payload_type) { in MarkerBit() argument 106 if (last_payload_type_ != payload_type) { in MarkerBit() 107 if (payload_type != -1 && (cngnb_payload_type_ == payload_type || in MarkerBit() 108 cngwb_payload_type_ == payload_type || in MarkerBit() [all …]
|
D | rtp_sender_audio_unittest.cc | 91 const uint8_t payload_type = 127; in TEST_F() local 93 payload_name, payload_type, 48000, 0, 1500)); in TEST_F() 97 payload_type, 4321, payload, in TEST_F() 111 const uint8_t payload_type = 127; in TEST_F() local 113 payload_name, payload_type, 48000, 0, 1500)); in TEST_F() 118 payload_type, 4321, payload, in TEST_F() 136 const uint8_t payload_type = 127; in TEST_F() local 138 payload_name, payload_type, 48000, 0, 1500)); in TEST_F() 142 AudioFrameType::kAudioFrameCN, payload_type, 4321, payload, in TEST_F() 154 const uint8_t payload_type = 127; in TEST_F() local [all …]
|
D | rtp_sender_audio.h | 38 int8_t payload_type, 44 int8_t payload_type, 50 int8_t payload_type, 71 bool MarkerBit(AudioFrameType frame_type, int8_t payload_type);
|
/external/webrtc/media/engine/ |
D | payload_type_mapper_unittest.cc | 98 int payload_type = *opt_payload_type; in TEST_F() local 100 EXPECT_EQ(used_payload_types.find(payload_type), used_payload_types.end()) in TEST_F() 102 used_payload_types.insert(payload_type); in TEST_F() 103 EXPECT_GE(payload_type, 0) << "Negative payload types are invalid"; in TEST_F() 104 EXPECT_LE(payload_type, 127) << "Payload types above 127 are invalid"; in TEST_F() 105 EXPECT_FALSE(payload_type >= 96 && has_been_below_96); in TEST_F() 106 if (payload_type < 96) in TEST_F() 109 EXPECT_EQ(payload_type, mapper_.FindMappingFor(format)) in TEST_F() 112 EXPECT_EQ(payload_type, mapper_.GetMappingFor(format)) in TEST_F() 132 int payload_type = *opt_payload_type; in TEST_F() local [all …]
|
D | payload_type_mapper.cc | 98 int payload_type = next_unused_payload_type_; in GetMappingFor() local 99 if (used_payload_types_.find(payload_type) == used_payload_types_.end()) { in GetMappingFor() 100 used_payload_types_.insert(payload_type); in GetMappingFor() 101 mappings_[format] = payload_type; in GetMappingFor() 103 return payload_type; in GetMappingFor()
|
/external/webrtc/modules/audio_coding/neteq/tools/ |
D | neteq_test_factory.cc | 51 uint8_t payload_type, in CodecSampleRate() argument 53 if (payload_type == config.pcmu || payload_type == config.pcma || in CodecSampleRate() 54 payload_type == config.ilbc || payload_type == config.pcm16b || in CodecSampleRate() 55 payload_type == config.cn_nb || payload_type == config.avt) in CodecSampleRate() 57 if (payload_type == config.isac || payload_type == config.pcm16b_wb || in CodecSampleRate() 58 payload_type == config.g722 || payload_type == config.cn_wb || in CodecSampleRate() 59 payload_type == config.avt_16) in CodecSampleRate() 61 if (payload_type == config.isac_swb || payload_type == config.pcm16b_swb32 || in CodecSampleRate() 62 payload_type == config.cn_swb32 || payload_type == config.avt_32) in CodecSampleRate() 64 if (payload_type == config.opus || payload_type == config.pcm16b_swb48 || in CodecSampleRate() [all …]
|
D | rtp_encode.cc | 48 payload_type, 112 uint8_t payload_type, in SendData() argument 133 static_cast<uint8_t>(payload_type & 0x7F), in SendData() 200 int payload_type) { in CreateEncoder() argument 209 return AudioEncoderOpus::MakeAudioEncoder(config, payload_type); in CreateEncoder() 219 return AudioEncoderG711::MakeAudioEncoder(config, payload_type); in CreateEncoder() 224 GetCodecConfig<AudioEncoderG722>(), payload_type); in CreateEncoder() 232 payload_type); in CreateEncoder() 237 GetCodecConfig<AudioEncoderIlbc>(), payload_type); in CreateEncoder() 242 GetCodecConfig<AudioEncoderIsac>(), payload_type); in CreateEncoder() [all …]
|
D | rtp_generator.cc | 18 uint32_t RtpGenerator::GetRtpHeader(uint8_t payload_type, in GetRtpHeader() argument 28 rtp_header->payloadType = payload_type; in GetRtpHeader() 46 uint32_t TimestampJumpRtpGenerator::GetRtpHeader(uint8_t payload_type, in GetRtpHeader() argument 49 uint32_t ret = RtpGenerator::GetRtpHeader(payload_type, in GetRtpHeader()
|
D | packet_unittest.cc | 23 void MakeRtpHeader(int payload_type, in MakeRtpHeader() argument 29 rtp_data[1] = static_cast<uint8_t>(payload_type); in MakeRtpHeader() 116 int MakeRedHeader(int payload_type, in MakeRedHeader() argument 121 rtp_data[0] = 0x80 | (payload_type & 0x7F); // Set the first bit to 1. in MakeRedHeader() 150 int payload_type = i; in TEST() local 155 payload_ptr += MakeRedHeader(payload_type, timestamp_offset, block_length, in TEST()
|
/external/webrtc/modules/audio_coding/acm2/ |
D | acm_receiver_unittest.cc | 63 AudioCodecInfo SetEncoder(int payload_type, in SetEncoder() argument 69 encoder_factory_->MakeAudioEncoder(payload_type, format, absl::nullopt); 77 config.payload_type = it->second; 107 uint8_t payload_type, in SendData() argument 115 rtp_header_.payloadType = payload_type; in SendData() 157 const int payload_type = rtc::checked_cast<int>(i); in TEST_F() local 159 InsertOnePacketOfSilence(SetEncoder(payload_type, codecs.at(i))); in TEST_F() 184 constexpr int payload_type = 17; in RunVerifyAudioFrame() local 185 receiver_->SetCodecs({{payload_type, codec}}); in RunVerifyAudioFrame() 187 const AudioCodecInfo info = SetEncoder(payload_type, codec); in RunVerifyAudioFrame() [all …]
|
D | acm_receiver.cc | 107 int payload_type = rtp_header.payloadType; in InsertPacket() local 108 auto format = neteq_->GetDecoderFormat(payload_type); in InsertPacket() 111 payload_type = incoming_payload[0] & 0x7f; in InsertPacket() 112 format = neteq_->GetDecoderFormat(payload_type); in InsertPacket() 115 RTC_LOG_F(LS_ERROR) << "Payload-type " << payload_type in InsertPacket() 129 last_decoder_ = DecoderInfo{/*payload_type=*/payload_type, in InsertPacket() 243 RTC_DCHECK_NE(-1, last_decoder_->payload_type); in LastDecoder() 244 return std::make_pair(last_decoder_->payload_type, last_decoder_->sdp_format); in LastDecoder()
|
/external/webrtc/audio/voip/ |
D | audio_egress.cc | 40 void AudioEgress::SetEncoder(int payload_type, in SetEncoder() argument 43 RTC_DCHECK_GE(payload_type, 0); in SetEncoder() 44 RTC_DCHECK_LE(payload_type, 127); in SetEncoder() 50 rtp_rtcp_->RegisterSendPayloadFrequency(payload_type, in SetEncoder() 52 rtp_sender_audio_.RegisterAudioPayload("audio", payload_type, in SetEncoder() 100 uint8_t payload_type, in SendData() argument 116 payload_type, in SendData() 124 if (!rtp_sender_audio_.SendAudio(frame_type, payload_type, rtp_timestamp, in SendData()
|
/external/webrtc/modules/audio_coding/neteq/ |
D | packet_buffer.cc | 141 if (decoder_database.IsComfortNoise(packet.payload_type)) { in InsertPacketList() 143 **current_cng_rtp_payload_type != packet.payload_type) { in InsertPacketList() 149 *current_cng_rtp_payload_type = packet.payload_type; in InsertPacketList() 150 } else if (!decoder_database.IsDtmf(packet.payload_type)) { in InsertPacketList() 153 **current_rtp_payload_type != packet.payload_type) || in InsertPacketList() 155 !EqualSampleRates(packet.payload_type, in InsertPacketList() 162 *current_rtp_payload_type = packet.payload_type; in InsertPacketList() 256 void PacketBuffer::DiscardPacketsWithPayloadType(uint8_t payload_type, in DiscardPacketsWithPayloadType() argument 258 buffer_.remove_if([payload_type, stats](const Packet& p) { in DiscardPacketsWithPayloadType() 259 if (p.payload_type != payload_type) { in DiscardPacketsWithPayloadType() [all …]
|
D | red_payload_splitter_unittest.cc | 84 packet.payload_type = kRedPayloadType; in CreateRedPayload() 127 Packet CreatePacket(uint8_t payload_type, in CreatePacket() argument 132 packet.payload_type = payload_type; in CreatePacket() 148 uint8_t payload_type, in VerifyPacket() argument 154 EXPECT_EQ(payload_type, packet.payload_type); in VerifyPacket() 166 uint8_t payload_type, in VerifyPacket() argument 171 return VerifyPacket(packet, payload_length, payload_type, sequence_number, in VerifyPacket()
|
D | red_payload_splitter.cc | 61 uint8_t payload_type; in SplitRed() member 74 new_header.payload_type = payload_ptr[0] & 0x7F; in SplitRed() 116 new_packet.payload_type = new_header.payload_type; in SplitRed() 151 uint8_t this_payload_type = it->payload_type; in CheckRedPayloads()
|
/external/webrtc/logging/rtc_event_log/ |
D | rtc_stream_config.cc | 34 int payload_type, in Codec() argument 37 payload_type(payload_type), in Codec() 42 payload_type == other.payload_type && in operator ==()
|
/external/webrtc/call/ |
D | audio_send_stream.cc | 66 int payload_type, in SendCodecSpec() argument 68 : payload_type(payload_type), format(format) {} in SendCodecSpec() 80 ss << ", payload_type: " << payload_type; in ToString() 91 payload_type == rhs.payload_type && format == rhs.format && in operator ==()
|
D | flexfec_receive_stream_impl.cc | 46 ss << "{payload_type: " << payload_type; in ToString() 68 if (payload_type < 0) in IsCompleteAndEnabled() 86 if (config.payload_type < 0) { in MaybeCreateFlexfecReceiver() 92 RTC_DCHECK_GE(config.payload_type, 0); in MaybeCreateFlexfecReceiver() 93 RTC_DCHECK_LE(config.payload_type, 127); in MaybeCreateFlexfecReceiver()
|
/external/webrtc/api/audio_codecs/ |
D | audio_encoder_factory_template.h | 37 int payload_type, 64 int payload_type, 69 return T::MakeAudioEncoder(*opt_config, payload_type, codec_pair_id); 71 return Helper<Ts...>::MakeAudioEncoder(payload_type, format, 92 int payload_type, 95 return Helper<Ts...>::MakeAudioEncoder(payload_type, format, codec_pair_id);
|
/external/webrtc/api/audio_codecs/g711/ |
D | audio_encoder_g711.cc | 63 int payload_type, in MakeAudioEncoder() argument 71 impl_config.payload_type = payload_type; in MakeAudioEncoder() 78 impl_config.payload_type = payload_type; in MakeAudioEncoder()
|
/external/webrtc/pc/ |
D | rtp_parameters_conversion_unittest.cc | 82 codec.payload_type = 120; in TEST() 105 codec.payload_type = 101; in TEST() 136 audio_codec.payload_type = 111; in TEST() 143 video_codec.payload_type = 102; in TEST() 166 codec.payload_type = 111; in TEST() 198 codec.payload_type = 102; in TEST() 225 codec.payload_type = -1000; in TEST() 230 codec.payload_type = 128; in TEST() 235 codec.payload_type = 127; in TEST() 247 codec.payload_type = 99; in TEST() [all …]
|
/external/webrtc/video/ |
D | video_stream_decoder_impl.cc | 83 VideoDecoder* VideoStreamDecoderImpl::GetDecoder(int payload_type) { in GetDecoder() argument 84 if (current_payload_type_ == payload_type) { in GetDecoder() 92 auto decoder_settings_it = decoder_settings_.find(payload_type); in GetDecoder() 94 RTC_LOG(LS_WARNING) << "Payload type " << payload_type in GetDecoder() 104 << payload_type << "."; in GetDecoder() 112 << payload_type << "."; in GetDecoder() 123 current_payload_type_.emplace(payload_type); in GetDecoder()
|
/external/webrtc/modules/audio_coding/codecs/opus/ |
D | audio_encoder_opus.cc | 231 int payload_type) { in MakeAudioEncoder() argument 233 return std::make_unique<AudioEncoderOpusImpl>(config, payload_type); in MakeAudioEncoder() 342 int payload_type) in AudioEncoderOpusImpl() argument 345 payload_type, in AudioEncoderOpusImpl() 354 int payload_type, in AudioEncoderOpusImpl() argument 357 : payload_type_(payload_type), in AudioEncoderOpusImpl() 371 RTC_DCHECK(0 <= payload_type && payload_type <= 127); in AudioEncoderOpusImpl() 375 RTC_CHECK(config.payload_type == -1 || config.payload_type == payload_type); in AudioEncoderOpusImpl() 381 AudioEncoderOpusImpl::AudioEncoderOpusImpl(int payload_type, in AudioEncoderOpusImpl() argument 383 : AudioEncoderOpusImpl(*SdpToConfig(format), payload_type) {} in AudioEncoderOpusImpl() [all …]
|