/external/chromium_org/media/cast/rtp_receiver/rtp_parser/ |
D | rtp_parser.cc | 28 RtpCastHeader* rtp_header) { in ParsePacket() argument 31 if (!ParseCommon(packet, length, rtp_header)) return false; in ParsePacket() 32 if (rtp_header->webrtc.header.payloadType == parser_config_.payload_type && in ParsePacket() 33 rtp_header->webrtc.header.ssrc == parser_config_.ssrc) { in ParsePacket() 35 length - kRtpCommonHeaderLength, rtp_header); in ParsePacket() 43 RtpCastHeader* rtp_header) { in ParseCommon() argument 60 rtp_header->webrtc.header.markerBit = marker; in ParseCommon() 61 rtp_header->webrtc.header.payloadType = payload_type; in ParseCommon() 62 rtp_header->webrtc.header.sequenceNumber = sequence_number; in ParseCommon() 63 rtp_header->webrtc.header.timestamp = rtp_timestamp; in ParseCommon() [all …]
|
D | rtp_parser_unittest.cc | 100 RtpCastHeader rtp_header; in TEST_F() local 102 EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); in TEST_F() 120 RtpCastHeader rtp_header; in TEST_F() local 121 EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); in TEST_F() 133 RtpCastHeader rtp_header; in TEST_F() local 134 EXPECT_FALSE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); in TEST_F() 151 RtpCastHeader rtp_header; in TEST_F() local 152 EXPECT_TRUE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); in TEST_F() 165 RtpCastHeader rtp_header; in TEST_F() local 166 EXPECT_FALSE(rtp_parser_->ParsePacket(packet, kPacketLength, &rtp_header)); in TEST_F() [all …]
|
D | rtp_parser.h | 38 RtpCastHeader* rtp_header); 42 RtpCastHeader* rtp_header); 45 RtpCastHeader* rtp_header);
|
/external/chromium_org/media/cast/audio_receiver/ |
D | audio_decoder_unittest.cc | 59 RtpCastHeader rtp_header; in TEST_F() local 60 rtp_header.webrtc.header.payloadType = 127; in TEST_F() 61 rtp_header.webrtc.header.sequenceNumber = 1234; in TEST_F() 62 rtp_header.webrtc.header.timestamp = 0x87654321; in TEST_F() 63 rtp_header.webrtc.header.ssrc = 0x12345678; in TEST_F() 64 rtp_header.webrtc.header.paddingLength = 0; in TEST_F() 65 rtp_header.webrtc.header.headerLength = 12; in TEST_F() 66 rtp_header.webrtc.type.Audio.channel = 1; in TEST_F() 67 rtp_header.webrtc.type.Audio.isCNG = false; in TEST_F() 84 payload_size, rtp_header); in TEST_F() [all …]
|
D | audio_decoder.cc | 110 const RtpCastHeader& rtp_header) { in IncomingParsedRtpPacket() argument 114 rtp_header.webrtc); in IncomingParsedRtpPacket() 121 if (!frame_id_map_.InsertPacket(rtp_header, &complete)) return; in IncomingParsedRtpPacket() 124 cast_message_builder_.CompleteFrameReceived(rtp_header.frame_id, in IncomingParsedRtpPacket() 125 rtp_header.is_key_frame); in IncomingParsedRtpPacket() 127 frame_id_rtp_timestamp_map_[rtp_header.frame_id] = in IncomingParsedRtpPacket() 128 rtp_header.webrtc.header.timestamp; in IncomingParsedRtpPacket()
|
D | audio_receiver.cc | 41 const RtpCastHeader* rtp_header) OVERRIDE { in OnReceivedPayloadData() argument 43 *rtp_header); in OnReceivedPayloadData() 153 const RtpCastHeader& rtp_header) { in IncomingParsedRtpPacket() argument 156 rtp_header.webrtc.header.timestamp, rtp_header.frame_id, in IncomingParsedRtpPacket() 157 rtp_header.packet_id, rtp_header.max_packet_id, payload_size); in IncomingParsedRtpPacket() 163 first_incoming_rtp_timestamp_ = rtp_header.webrtc.header.timestamp; in IncomingParsedRtpPacket() 173 if (!decryptor_->SetCounter(GetAesNonce(rtp_header.frame_id, iv_mask_))) { in IncomingParsedRtpPacket() 185 rtp_header); in IncomingParsedRtpPacket() 203 rtp_header); in IncomingParsedRtpPacket()
|
D | audio_decoder.h | 46 const RtpCastHeader& rtp_header);
|
D | audio_receiver.h | 72 const RtpCastHeader& rtp_header);
|
/external/chromium_org/media/cast/net/rtp_sender/rtp_packetizer/ |
D | rtp_packetizer_unittest.cc | 36 void VerifyRtpHeader(const RtpCastTestHeader& rtp_header) { in VerifyRtpHeader() argument 37 VerifyCommonRtpHeader(rtp_header); in VerifyRtpHeader() 38 VerifyCastRtpHeader(rtp_header); in VerifyRtpHeader() 41 void VerifyCommonRtpHeader(const RtpCastTestHeader& rtp_header) { in VerifyCommonRtpHeader() argument 43 rtp_header.marker); in VerifyCommonRtpHeader() 44 EXPECT_EQ(kPayload, rtp_header.payload_type); in VerifyCommonRtpHeader() 45 EXPECT_EQ(sequence_number_, rtp_header.sequence_number); in VerifyCommonRtpHeader() 46 EXPECT_EQ(kTimestampMs * 90, rtp_header.rtp_timestamp); in VerifyCommonRtpHeader() 47 EXPECT_EQ(config_.ssrc, rtp_header.ssrc); in VerifyCommonRtpHeader() 48 EXPECT_EQ(0, rtp_header.num_csrcs); in VerifyCommonRtpHeader() [all …]
|
/external/chromium_org/media/cast/framer/ |
D | frame_buffer.cc | 25 const RtpCastHeader& rtp_header) { in InsertPacket() argument 28 frame_id_ = rtp_header.frame_id; in InsertPacket() 29 max_packet_id_ = rtp_header.max_packet_id; in InsertPacket() 30 is_key_frame_ = rtp_header.is_key_frame; in InsertPacket() 31 if (rtp_header.is_reference) { in InsertPacket() 32 last_referenced_frame_id_ = rtp_header.reference_frame_id; in InsertPacket() 34 last_referenced_frame_id_ = rtp_header.frame_id - 1; in InsertPacket() 37 rtp_timestamp_ = rtp_header.webrtc.header.timestamp; in InsertPacket() 40 if (rtp_header.frame_id != frame_id_) return; in InsertPacket() 43 if (packets_.find(rtp_header.packet_id) != packets_.end()) { in InsertPacket() [all …]
|
D | framer.cc | 30 const RtpCastHeader& rtp_header) { in InsertPacket() argument 32 if (!frame_id_map_.InsertPacket(rtp_header, &complete)) return false; in InsertPacket() 35 FrameList::iterator it = frames_.find(rtp_header.frame_id); in InsertPacket() 39 frame_buffer->InsertPacket(payload_data, payload_size, rtp_header); in InsertPacket() 40 frames_.insert(std::make_pair(rtp_header.frame_id, frame_buffer)); in InsertPacket() 43 it->second->InsertPacket(payload_data, payload_size, rtp_header); in InsertPacket() 48 VLOG(1) << "Complete frame " << static_cast<int>(rtp_header.frame_id); in InsertPacket() 49 cast_msg_builder_->CompleteFrameReceived(rtp_header.frame_id, in InsertPacket() 50 rtp_header.is_key_frame); in InsertPacket()
|
D | frame_id_map.cc | 65 bool FrameIdMap::InsertPacket(const RtpCastHeader& rtp_header, bool* complete) { in InsertPacket() argument 66 uint32 frame_id = rtp_header.frame_id; in InsertPacket() 68 if (rtp_header.is_reference) { in InsertPacket() 69 reference_frame_id = rtp_header.reference_frame_id; in InsertPacket() 74 if (rtp_header.is_key_frame && waiting_for_key_) { in InsertPacket() 80 << " packet:" << static_cast<int>(rtp_header.packet_id) in InsertPacket() 81 << " max packet:" << static_cast<int>(rtp_header.max_packet_id); in InsertPacket() 98 rtp_header.max_packet_id, in InsertPacket() 99 rtp_header.is_key_frame)); in InsertPacket() 103 *complete = retval.first->second->InsertPacket(rtp_header.packet_id); in InsertPacket() [all …]
|
D | frame_buffer.h | 25 const RtpCastHeader& rtp_header);
|
D | framer.h | 39 const RtpCastHeader& rtp_header);
|
D | frame_id_map.h | 57 bool InsertPacket(const RtpCastHeader& rtp_header, bool* complete);
|
/external/chromium_org/media/cast/rtp_receiver/ |
D | rtp_receiver.cc | 52 RtpCastHeader rtp_header; in ReceivedPacket() local 53 if (!parser_->ParsePacket(packet, length, &rtp_header)) return false; in ReceivedPacket() 55 stats_->UpdateStatistics(rtp_header); in ReceivedPacket()
|
D | rtp_receiver.h | 22 const RtpCastHeader* rtp_header) = 0;
|
/external/chromium_org/media/cast/video_receiver/ |
D | video_receiver.cc | 38 const RtpCastHeader* rtp_header) OVERRIDE { in OnReceivedPayloadData() argument 40 *rtp_header); in OnReceivedPayloadData() 385 const RtpCastHeader& rtp_header) { in IncomingParsedRtpPacket() argument 392 incoming_rtp_timestamp_ = rtp_header.webrtc.header.timestamp; in IncomingParsedRtpPacket() 398 rtp_header.webrtc.header.timestamp, rtp_header.frame_id, in IncomingParsedRtpPacket() 399 rtp_header.packet_id, rtp_header.max_packet_id, payload_size); in IncomingParsedRtpPacket() 401 bool complete = framer_->InsertPacket(payload_data, payload_size, rtp_header); in IncomingParsedRtpPacket()
|
D | video_receiver.h | 62 const RtpCastHeader& rtp_header);
|