/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtp_payload_registry_unittest.cc | 41 RtpUtility::Payload* ExpectReturnOfTypicalAudioPayload(uint8_t payload_type, in ExpectReturnOfTypicalAudioPayload() argument 55 CreatePayloadType(kTypicalPayloadName, payload_type, in ExpectReturnOfTypicalAudioPayload() 66 uint8_t payload_type = 97; in TEST_F() local 68 ExpectReturnOfTypicalAudioPayload(payload_type, kTypicalRate); in TEST_F() 72 kTypicalPayloadName, payload_type, kTypicalFrequency, in TEST_F() 78 rtp_payload_registry_->PayloadTypeToPayload(payload_type); in TEST_F() 86 EXPECT_EQ(0, rtp_payload_registry_->DeRegisterReceivePayload(payload_type)); in TEST_F() 87 EXPECT_FALSE(rtp_payload_registry_->PayloadTypeToPayload(payload_type)); in TEST_F() 121 uint8_t payload_type = 97; in TEST_F() local 125 ExpectReturnOfTypicalAudioPayload(payload_type, kTypicalRate); in TEST_F() [all …]
|
D | rtp_receiver_audio.cc | 63 int8_t payload_type) const { in TelephoneEventPayloadType() 65 return telephone_event_payload_type_ == payload_type; in TelephoneEventPayloadType() 68 bool RTPReceiverAudio::CNGPayloadType(int8_t payload_type, in CNGPayloadType() argument 75 if (cng_nb_payload_type_ == payload_type) { in CNGPayloadType() 82 } else if (cng_wb_payload_type_ == payload_type) { in CNGPayloadType() 93 } else if (cng_swb_payload_type_ == payload_type) { in CNGPayloadType() 100 } else if (cng_fb_payload_type_ == payload_type) { in CNGPayloadType() 108 if (g722_payload_type_ == payload_type) { in CNGPayloadType() 117 bool RTPReceiverAudio::ShouldReportCsrcChanges(uint8_t payload_type) const { in ShouldReportCsrcChanges() 119 return !TelephoneEventPayloadType(payload_type); in ShouldReportCsrcChanges() [all …]
|
D | rtp_payload_registry.cc | 41 const int8_t payload_type, in RegisterReceivePayload() argument 46 assert(payload_type >= 0); in RegisterReceivePayload() 51 switch (payload_type) { in RegisterReceivePayload() 63 << payload_type; in RegisterReceivePayload() 74 payload_type_map_.find(payload_type); in RegisterReceivePayload() 96 << static_cast<int>(payload_type); in RegisterReceivePayload() 106 payload_name, payload_type, frequency, channels, rate); in RegisterReceivePayload() 108 payload_type_map_[payload_type] = payload; in RegisterReceivePayload() 112 red_payload_type_ = payload_type; in RegisterReceivePayload() 114 ulpfec_payload_type_ = payload_type; in RegisterReceivePayload() [all …]
|
D | rtp_receiver_impl.cc | 97 const int8_t payload_type, in RegisterReceivePayload() argument 108 payload_name, payload_type, frequency, channels, rate, in RegisterReceivePayload() 111 if (rtp_media_receiver_->OnNewPayloadTypeCreated(payload_name, payload_type, in RegisterReceivePayload() 114 << static_cast<int>(payload_type); in RegisterReceivePayload() 122 const int8_t payload_type) { in DeRegisterReceivePayload() argument 124 return rtp_payload_registry_->DeRegisterReceivePayload(payload_type); in DeRegisterReceivePayload() 327 int8_t payload_type = rtp_header.payloadType; in CheckPayloadChanged() local 336 if (payload_type != last_received_payload_type) { in CheckPayloadChanged() 337 if (rtp_payload_registry_->red_payload_type() == payload_type) { in CheckPayloadChanged() 339 payload_type = first_payload_byte & 0x7f; in CheckPayloadChanged() [all …]
|
D | rtp_receiver_audio.h | 43 bool TelephoneEventPayloadType(const int8_t payload_type) const; 49 bool CNGPayloadType(const int8_t payload_type, 65 bool ShouldReportCsrcChanges(uint8_t payload_type) const override; 69 int8_t payload_type, 74 int8_t payload_type, 90 void CheckPayloadChanged(int8_t payload_type,
|
D | rtp_sender.cc | 344 int32_t RTPSender::DeRegisterSendPayload(int8_t payload_type) { in DeRegisterSendPayload() argument 348 payload_type_map_.find(payload_type); in DeRegisterSendPayload() 359 void RTPSender::SetSendPayloadType(int8_t payload_type) { in SetSendPayloadType() argument 361 payload_type_ = payload_type; in SetSendPayloadType() 425 void RTPSender::SetRtxPayloadType(int payload_type, in SetRtxPayloadType() argument 428 RTC_DCHECK_LE(payload_type, 127); in SetRtxPayloadType() 430 if (payload_type < 0) { in SetRtxPayloadType() 431 LOG(LS_ERROR) << "Invalid RTX payload type: " << payload_type; in SetRtxPayloadType() 435 rtx_payload_type_map_[associated_payload_type] = payload_type; in SetRtxPayloadType() 436 rtx_payload_type_ = payload_type; in SetRtxPayloadType() [all …]
|
D | rtp_receiver_video.cc | 40 bool RTPReceiverVideo::ShouldReportCsrcChanges(uint8_t payload_type) const { in ShouldReportCsrcChanges() 47 int8_t payload_type, in OnNewPayloadTypeCreated() argument 114 int8_t payload_type, in InvokeOnInitializeDecoder() argument 119 callback->OnInitializeDecoder(payload_type, payload_name, in InvokeOnInitializeDecoder() 122 << static_cast<int>(payload_type); in InvokeOnInitializeDecoder()
|
D | rtp_sender.h | 55 int8_t payload_type, 118 const int8_t payload_type, const uint32_t frequency, 121 int32_t DeRegisterSendPayload(const int8_t payload_type); 123 void SetSendPayloadType(int8_t payload_type); 151 int8_t payload_type, 235 void SetRtxPayloadType(int payload_type, int associated_payload_type); 240 int8_t payload_type, 277 int32_t SetRED(int8_t payload_type); 280 int32_t RED(int8_t *payload_type) const; 316 int32_t CheckPayloadType(int8_t payload_type, RtpVideoCodecTypes* video_type); [all …]
|
D | rtp_sender_unittest.cc | 924 const uint8_t payload_type = 127; in TEST_F() local 925 ASSERT_EQ(0, rtp_sender_->RegisterPayload(payload_name, payload_type, 90000, in TEST_F() 931 0, rtp_sender_->SendOutgoingData(kVideoFrameKey, payload_type, 1234, 4321, in TEST_F() 956 ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kVideoFrameDelta, payload_type, in TEST_F() 999 const uint8_t payload_type = 127; in TEST_F() local 1000 ASSERT_EQ(0, rtp_sender_->RegisterPayload(payload_name, payload_type, 90000, in TEST_F() 1007 0, rtp_sender_->SendOutgoingData(kVideoFrameKey, payload_type, 1234, 4321, in TEST_F() 1015 ASSERT_EQ(0, rtp_sender_->SendOutgoingData(kVideoFrameDelta, payload_type, in TEST_F() 1058 const uint8_t payload_type = 127; in TEST_F() local 1059 ASSERT_EQ(0, rtp_sender_->RegisterPayload(payload_name, payload_type, 90000, in TEST_F() [all …]
|
/external/webrtc/webrtc/modules/video_coding/ |
D | codec_database.cc | 88 uint8_t payload_type) in VCMExtDecoderMapItem() argument 89 : payload_type(payload_type), in VCMExtDecoderMapItem() 286 bool VCMCodecDataBase::DeregisterExternalEncoder(uint8_t payload_type, in DeregisterExternalEncoder() argument 290 if (encoder_payload_type_ != payload_type) { in DeregisterExternalEncoder() 293 if (send_codec_.plType == payload_type) { in DeregisterExternalEncoder() 306 uint8_t payload_type, in RegisterExternalEncoder() argument 311 encoder_payload_type_ = payload_type; in RegisterExternalEncoder() 395 bool VCMCodecDataBase::DeregisterExternalDecoder(uint8_t payload_type) { in DeregisterExternalDecoder() argument 396 ExternalDecoderMap::iterator it = dec_external_map_.find(payload_type); in DeregisterExternalDecoder() 410 DeregisterReceiveCodec(payload_type); in DeregisterExternalDecoder() [all …]
|
D | codec_database.h | 39 uint8_t payload_type); 41 uint8_t payload_type; member 75 uint8_t payload_type, 81 bool DeregisterExternalEncoder(uint8_t payload_type, bool* was_send_codec); 88 bool DeregisterExternalDecoder(uint8_t payload_type); 92 uint8_t payload_type); 100 bool DeregisterReceiveCodec(uint8_t payload_type); 143 const VCMDecoderMapItem* FindDecoderItem(uint8_t payload_type) const; 146 uint8_t payload_type) const;
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
D | acm_receiver.cc | 303 uint8_t payload_type, in AddCodec() argument 324 auto it = decoders_.find(payload_type); in AddCodec() 336 if (neteq_->RemovePayloadType(payload_type) != NetEq::kOK) { in AddCodec() 337 LOG(LERROR) << "Cannot remove payload " << static_cast<int>(payload_type); in AddCodec() 346 ret_val = neteq_->RegisterPayloadType(neteq_decoder, name, payload_type); in AddCodec() 349 audio_decoder, neteq_decoder, name, payload_type, sample_rate_hz); in AddCodec() 353 << static_cast<int>(payload_type) in AddCodec() 360 decoder.payload_type = payload_type; in AddCodec() 363 decoders_[payload_type] = decoder; in AddCodec() 391 if (neteq_->RemovePayloadType(cur->second.payload_type) == 0) { in RemoveAllCodecs() [all …]
|
D | acm_receiver.h | 44 uint8_t payload_type; member 118 uint8_t payload_type, 206 int RemoveCodec(uint8_t payload_type); 244 int DecoderByPayloadType(uint8_t payload_type, 279 uint8_t payload_type) const
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
D | neteq_rtpplay.cc | 269 bool IsComfortNoise(uint8_t payload_type) { in IsComfortNoise() argument 270 return payload_type == FLAGS_cn_nb || payload_type == FLAGS_cn_wb || in IsComfortNoise() 271 payload_type == FLAGS_cn_swb32 || payload_type == FLAGS_cn_swb48; in IsComfortNoise() 274 int CodecSampleRate(uint8_t payload_type) { in CodecSampleRate() argument 275 if (payload_type == FLAGS_pcmu || payload_type == FLAGS_pcma || in CodecSampleRate() 276 payload_type == FLAGS_ilbc || payload_type == FLAGS_pcm16b || in CodecSampleRate() 277 payload_type == FLAGS_cn_nb) in CodecSampleRate() 279 if (payload_type == FLAGS_isac || payload_type == FLAGS_pcm16b_wb || in CodecSampleRate() 280 payload_type == FLAGS_g722 || payload_type == FLAGS_cn_wb) in CodecSampleRate() 282 if (payload_type == FLAGS_isac_swb || payload_type == FLAGS_pcm16b_swb32 || in CodecSampleRate() [all …]
|
D | rtp_generator.cc | 18 uint32_t RtpGenerator::GetRtpHeader(uint8_t payload_type, in GetRtpHeader() argument 28 rtp_header->header.payloadType = payload_type; in GetRtpHeader() 47 uint32_t TimestampJumpRtpGenerator::GetRtpHeader(uint8_t payload_type, in GetRtpHeader() argument 51 payload_type, payload_length_samples, rtp_header); 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() 118 int MakeRedHeader(int payload_type, in MakeRedHeader() argument 123 rtp_data[0] = 0x80 | (payload_type & 0x7F); // Set the first bit to 1. in MakeRedHeader() 152 int payload_type = i; in TEST() local 158 payload_type, timestamp_offset, block_length, last_block, payload_ptr); in TEST()
|
/external/webrtc/webrtc/modules/rtp_rtcp/include/ |
D | rtp_payload_registry.h | 62 const int8_t payload_type, 69 const int8_t payload_type); 76 int8_t* payload_type) const; 84 void SetRtxPayloadType(int payload_type, int associated_payload_type); 109 bool GetPayloadSpecifics(uint8_t payload_type, PayloadUnion* payload) const; 111 int GetPayloadTypeFrequency(uint8_t payload_type) const; 116 bool PayloadTypeToPayload(const uint8_t payload_type, in PayloadTypeToPayload() argument 119 const_cast<RtpUtility::Payload*>(PayloadTypeToPayload(payload_type)); in PayloadTypeToPayload() 122 const RtpUtility::Payload* PayloadTypeToPayload(uint8_t payload_type) const;
|
/external/webrtc/talk/session/media/ |
D | bundlefilter.cc | 47 int payload_type = 0; in DemuxPacket() local 48 if (!GetRtpPayloadType(data, len, &payload_type)) { in DemuxPacket() 51 return FindPayloadType(payload_type); in DemuxPacket() 54 void BundleFilter::AddPayloadType(int payload_type) { in AddPayloadType() argument 55 payload_types_.insert(payload_type); in AddPayloadType()
|
/external/webrtc/webrtc/video/ |
D | payload_router_unittest.cc | 44 int8_t payload_type = 96; in TEST_F() local 46 EXPECT_CALL(rtp, SendOutgoingData(frame_type, payload_type, 0, 0, _, 1, NULL, in TEST_F() 49 EXPECT_FALSE(payload_router_->RoutePayload(frame_type, payload_type, 0, 0, in TEST_F() 53 EXPECT_CALL(rtp, SendOutgoingData(frame_type, payload_type, 0, 0, _, 1, NULL, in TEST_F() 56 EXPECT_TRUE(payload_router_->RoutePayload(frame_type, payload_type, 0, 0, in TEST_F() 60 EXPECT_CALL(rtp, SendOutgoingData(frame_type, payload_type, 0, 0, _, 1, NULL, in TEST_F() 63 EXPECT_FALSE(payload_router_->RoutePayload(frame_type, payload_type, 0, 0, in TEST_F() 67 EXPECT_CALL(rtp, SendOutgoingData(frame_type, payload_type, 0, 0, _, 1, NULL, in TEST_F() 70 EXPECT_TRUE(payload_router_->RoutePayload(frame_type, payload_type, 0, 0, in TEST_F() 75 EXPECT_CALL(rtp, SendOutgoingData(frame_type, payload_type, 0, 0, _, 1, NULL, in TEST_F() [all …]
|
D | replay.cc | 43 static bool ValidatePayloadType(const char* flagname, int32_t payload_type) { in ValidatePayloadType() argument 44 return payload_type > 0 && payload_type <= 127; in ValidatePayloadType() 46 DEFINE_int32(payload_type, 0, "Payload type"); 62 int32_t payload_type) { in ValidateOptionalPayloadType() argument 63 return payload_type == -1 || ValidatePayloadType(flagname, payload_type); in ValidateOptionalPayloadType() 238 encoder_settings.payload_type = flags::PayloadType(); in RtpReplay()
|
D | video_receive_stream.cc | 40 ss << ", payload_type: " << payload_type; in ToString() 90 ss << ", payload_type: " << kv.second.payload_type; in ToString() 112 codec.plType = decoder.payload_type; in CreateDecoderVideoCodec() 191 RTC_DCHECK(it->second.payload_type != 0); in VideoReceiveStream() 194 vie_channel_->SetRtxReceivePayloadType(it->second.payload_type, it->first); in VideoReceiveStream() 265 RTC_CHECK(decoder_payload_types.find(decoder.payload_type) == in VideoReceiveStream() 267 << "Duplicate payload type (" << decoder.payload_type in VideoReceiveStream() 269 decoder_payload_types.insert(decoder.payload_type); in VideoReceiveStream() 270 vie_channel_->RegisterExternalDecoder(decoder.payload_type, in VideoReceiveStream()
|
/external/webrtc/talk/media/base/ |
D | rtputils.cc | 147 return (GetRtpPayloadType(data, len, &(header->payload_type)) && in GetRtpHeader() 180 if (!IsValidRtpPayloadType(header.payload_type) || in SetRtpHeader() 185 SetUint8(data, kRtpPayloadTypeOffset, header.payload_type & 0x7F) && in SetRtpHeader() 199 bool IsValidRtpPayloadType(int payload_type) { in IsValidRtpPayloadType() argument 200 return payload_type >= 0 && payload_type <= 127; in IsValidRtpPayloadType()
|
/external/webrtc/webrtc/call/ |
D | packet_injection_tests.cc | 36 uint8_t payload_type, in InjectIncorrectPacket() argument 45 video_receive_configs_[0].decoders[0].payload_type = payload_type; in InjectIncorrectPacket() 60 EXPECT_EQ(payload_type, header.payloadType); in InjectIncorrectPacket()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/red/ |
D | audio_encoder_copy_red_unittest.cc | 41 config.payload_type = red_payload_type_; in AudioEncoderCopyRedTest() 288 helper.info_.payload_type = primary_payload_type; in TEST_F() 296 EXPECT_EQ(primary_payload_type, encoded_info_.redundant[0].payload_type); in TEST_F() 297 EXPECT_EQ(red_payload_type_, encoded_info_.payload_type); in TEST_F() 300 helper.info_.payload_type = secondary_payload_type; in TEST_F() 303 EXPECT_EQ(secondary_payload_type, encoded_info_.redundant[0].payload_type); in TEST_F() 304 EXPECT_EQ(primary_payload_type, encoded_info_.redundant[1].payload_type); in TEST_F() 305 EXPECT_EQ(red_payload_type_, encoded_info_.payload_type); in TEST_F()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/ |
D | audio_encoder_cng_unittest.cc | 47 config_.payload_type = kCngPayloadType; in AudioEncoderCngTest() 180 encoded_info_.payload_type = 0; in CheckMixedActivePassive() 184 return encoded_info_.payload_type != kCngPayloadType; in CheckMixedActivePassive() 272 EXPECT_EQ(kCngPayloadType, encoded_info_.payload_type); in TEST_F() 348 encoded_info_.payload_type = 0; in TEST_F() 350 EXPECT_EQ(kCngPayloadType, encoded_info_.payload_type); in TEST_F() 364 EXPECT_EQ(kCngPayloadType, encoded_info_.payload_type); in TEST_F() 373 encoded_info_.payload_type = 0; in TEST_F() 386 EXPECT_EQ(kCngPayloadType, encoded_info_.payload_type); in TEST_F()
|