/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
H A D | payload_splitter_unittest.cc | 21 #include "webrtc/modules/audio_coding/neteq/packet.h" 49 // Creates a RED packet, with |num_payloads| payloads, with payload types given 56 Packet* packet = new Packet; local 57 packet->header.payloadType = kRedPayloadType; 58 packet->header.timestamp = kBaseTimestamp; 59 packet->header.sequenceNumber = kSequenceNumber; 60 packet->payload_length = (kPayloadLength + 1) + 62 uint8_t* payload = new uint8_t[packet->payload_length]; 90 packet->payload = payload; 91 return packet; 109 Packet* packet = new Packet; local 125 Packet* packet = new Packet; local 137 VerifyPacket(const Packet* packet, int payload_length, uint8_t payload_type, uint16_t sequence_number, uint32_t timestamp, uint8_t payload_value, bool primary = true) argument 166 Packet* packet = CreateRedPayload(2, payload_types, kTimestampOffset); local 193 Packet* packet = CreateRedPayload(1, payload_types, kTimestampOffset); local 233 Packet* packet = CreateRedPayload(3, payload_types, kTimestampOffset); local 300 Packet* packet = CreatePacket(i, 10, 0); local 320 Packet* packet = packet_list.front(); local 334 Packet* packet = CreateRedPayload(3, payload_types, kTimestampOffset); local 595 Packet* packet = CreatePacket(kPayloadType, payload_length_bytes, 0); local 619 Packet* packet = (*it); local 665 Packet* packet = CreatePacket(kPayloadType, kPayloadLengthBytes, 0); local 696 Packet* packet = CreatePacket(kPayloadType, kPayloadLengthBytes, 0); local 729 Packet* packet = CreateOpusFecPacket(0, 10, 0xFF); local [all...] |
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/ |
H A D | fec_receiver_unittest.cc | 63 void VerifyReconstructedMediaPacket(const RtpPacket* packet, int times) { argument 64 // Verify that the content of the reconstructed packet is equal to the 65 // content of |packet|, and that the same content is received |times| number 67 EXPECT_CALL(rtp_data_callback_, OnRecoveredPacket(_, packet->length)) 68 .With(Args<0, 1>(ElementsAreArray(packet->data, 69 packet->length))) 73 void BuildAndAddRedMediaPacket(RtpPacket* packet) { argument 74 RtpPacket* red_packet = generator_->BuildMediaRedPacket(packet); 81 void BuildAndAddRedFecPacket(Packet* packet) { argument 82 RtpPacket* red_packet = generator_->BuildFecRedPacket(packet); [all...] |
H A D | producer_fec.cc | 147 ForwardErrorCorrection::Packet* packet = new ForwardErrorCorrection::Packet; local 148 packet->length = payload_length + rtp_header_length; 149 memcpy(packet->data, data_buffer, packet->length); 150 media_packets_fec_.push_back(packet); 189 // Returns true if the media packet list for the FEC is at least 216 // Build FEC packet. The FEC packets in |fec_packets_| doesn't 218 // media packet.
|
H A D | rtcp_packet_unittest.cc | 51 RawPacket packet = rr.Build(); local 53 parser.Parse(packet.buffer(), packet.buffer_length()); 73 RawPacket packet = rr.Build(); local 75 parser.Parse(packet.buffer(), packet.buffer_length()); 99 RawPacket packet = rr.Build(); local 101 parser.Parse(packet.buffer(), packet.buffer_length()); 118 RawPacket packet local 140 RawPacket packet = sr.Build(); local 160 RawPacket packet = sr.Build(); local 173 RawPacket packet = ij.Build(); local 184 RawPacket packet = ij.Build(); local 197 RawPacket packet = ij.Build(); local 214 RawPacket packet = app.Build(); local 236 RawPacket packet = app.Build(); local 252 RawPacket packet = sdes.Build(); local 270 RawPacket packet = sdes.Build(); local 283 RawPacket packet = sdes.Build(); local 297 RawPacket packet = pli.Build(); local 316 RawPacket packet = sli.Build(); local 335 RawPacket packet = nack.Build(); local 356 RawPacket packet = nack.Build(); local 378 RawPacket packet = rpsi.Build(); local 393 RawPacket packet = rpsi.Build(); local 407 RawPacket packet = rpsi.Build(); local 421 RawPacket packet = rpsi.Build(); local 436 RawPacket packet = rpsi.Build(); local 449 RawPacket packet = fir.Build(); local 467 RawPacket packet = rr.Build(); local 482 RawPacket packet = empty.Build(); local 502 RawPacket packet = sr.Build(); local 516 RawPacket packet = bye.Build(); local 531 RawPacket packet = bye.Build(); local 552 uint8_t packet[kRrLength + kReportBlockLength + kFirLength]; local 573 uint8_t packet[kRrLength + kReportBlockLength - 1]; local 592 uint8_t packet[kRrLength + kReportBlockLength - 1]; local 609 RawPacket packet = remb.Build(); local 629 RawPacket packet = tmmbr.Build(); local 643 RawPacket packet = tmmbn.Build(); local 656 RawPacket packet = tmmbn.Build(); local 673 RawPacket packet = tmmbn.Build(); local 691 RawPacket packet = xr.Build(); local 706 RawPacket packet = xr.Build(); local 728 RawPacket packet = xr.Build(); local 745 RawPacket packet = xr.Build(); local 765 RawPacket packet = xr.Build(); local 790 RawPacket packet = xr.Build(); local 833 RawPacket packet = xr.Build(); local 873 RawPacket packet = xr.Build(); local 894 RawPacket packet = xr.Build(); local [all...] |
H A D | rtcp_sender_unittest.cc | 234 virtual int SendRTCPPacket(int /*ch*/, const void *packet, int packet_len) { argument 235 RTCPUtility::RTCPParserV2 rtcpParser((uint8_t*)packet, 316 // Helper function: Incoming RTCP has a specific packet type. 371 // Make sure RTP packet has been received. 387 // Transmission time offset packet should be received. 398 // Transmission time offset packet should not be received. 446 // No packet sent. 480 // We now expect the packet to show up in the rtcp_packet_info_ of 503 // We now expect the packet to show up in the rtcp_packet_info_ of
|
H A D | rtp_fec_unittest.cc | 33 T* packet = NULL; local 35 packet = my_list->front(); 36 delete packet; 55 // Media packet "i" is lost if media_loss_mask_[i] = 1, 59 // FEC packet "i" is lost if fec_loss_mask_[i] = 1, 63 // Construct the media packet list, up to |num_media_packets| packets. 64 // Returns the next sequence number after the last media packet. 65 // (this will be the sequence of the first FEC packet) 69 // Construct the received packet list: a subset of the media and FEC packets. 72 // Add packet fro 849 ForwardErrorCorrection::Packet* packet; local [all...] |
H A D | rtp_format_h264_unittest.cc | 53 const uint8_t* packet, 59 EXPECT_EQ(kFuIndicator, packet[0]) << "FUA index: " << fua_index; 68 EXPECT_EQ(fu_header, packet[1]) << "FUA index: " << fua_index; 74 ::testing::ElementsAreArray(&packet[2], expected_sizes[fua_index])) 95 scoped_ptr<uint8_t[]> packet(new uint8_t[max_payload_size]); 100 ASSERT_TRUE(packetizer->NextPacket(packet.get(), &length, &last)); 101 VerifyFua(i, frame.get(), offset, packet.get(), length, expected_sizes); 106 EXPECT_FALSE(packetizer->NextPacket(packet.get(), &length, &last)); 126 const uint8_t* packet, 140 ::testing::ElementsAreArray(&packet[expected_payload_offse 50 VerifyFua(size_t fua_index, const uint8_t* expected_payload, int offset, const uint8_t* packet, size_t length, const std::vector<size_t>& expected_sizes) argument 198 uint8_t packet[kMaxPayloadSize] = {0}; local 235 uint8_t packet[kMaxPayloadSize] = {0}; local 270 uint8_t packet[kMaxPayloadSize] = {0}; local 322 uint8_t packet[kMaxPayloadSize] = {0}; local 409 uint8_t packet[2] = {0x05, 0xFF}; // F=0, NRI=0, Type=5. local 422 uint8_t packet[16] = {kStapA, // F=0, NRI=0, Type=24. local 438 uint8_t packet[16] = {kStapA, // F=0, NRI=0, Type=24. local [all...] |
H A D | rtp_format_vp8_unittest.cc | 258 // Frag start only true for first packet in equal size mode. 284 // EqualSize mode => First packet full; other not. 287 // Frag start only true for first packet in equal size mode. 317 // Expect one single packet of payload_size() + 4 bytes header. 346 // Expect one single packet of payload_size() + 3 bytes header. 376 // Expect one single packet of payload_size() + 3 bytes header. 410 uint8_t packet[4] = {0}; local 411 packet[0] = 0x14; // Binary 0001 0100; S = 1, PartID = 4. 412 packet[1] = 0x01; // P frame. 417 ExpectPacket(packet 430 uint8_t packet[10] = {0}; local 463 uint8_t packet[13] = {0}; local 481 uint8_t packet[10] = {0}; local 500 uint8_t packet[10] = {0}; local 518 uint8_t packet[10] = {0}; local 537 uint8_t packet[4] = {0}; local 552 uint8_t packet[20] = {0}; local [all...] |
H A D | rtp_packet_history.cc | 48 LOG(LS_WARNING) << "Purging packet history in order to re-set status."; 114 int32_t RTPPacketHistory::PutRTPPacket(const uint8_t* packet, argument 128 assert(packet); 134 LOG(LS_WARNING) << "Failed to store RTP packet with length: " 139 const uint16_t seq_num = (packet[2] << 8) + packet[3]; 141 // Store packet 144 std::copy(packet, packet + packet_length, it->begin()); 183 uint8_t* packet, 180 GetPacketAndSetSendTime(uint16_t sequence_number, uint32_t min_elapsed_time_ms, bool retransmit, uint8_t* packet, uint16_t* packet_length, int64_t* stored_time_ms) argument 224 GetPacket(int index, uint8_t* packet, uint16_t* packet_length, int64_t* stored_time_ms) const argument 238 GetBestFittingPacket(uint8_t* packet, uint16_t* packet_length, int64_t* stored_time_ms) argument [all...] |
H A D | rtp_payload_registry.cc | 244 const uint8_t* packet, 251 const uint8_t* rtx_header = packet + header.headerLength; 254 // Copy the packet into the restored packet, except for the RTX header. 255 memcpy(*restored_packet, packet, header.headerLength); 257 packet + header.headerLength + kRtxHeaderSize, 276 LOG(LS_WARNING) << "Incorrect RTX configuration, dropping packet."; 243 RestoreOriginalPacket(uint8_t** restored_packet, const uint8_t* packet, int* packet_length, uint32_t original_ssrc, const RTPHeader& header) const argument
|
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/ |
H A D | frame_buffer.cc | 16 #include "webrtc/modules/video_coding/main/source/packet.h" 84 // Insert packet 86 VCMFrameBuffer::InsertPacket(const VCMPacket& packet, argument 90 assert(!(NULL == packet.dataPtr && packet.sizeBytes > 0)); 91 if (packet.dataPtr != NULL) { 92 _payloadType = packet.payloadType; 96 // First packet (empty and/or media) inserted into this frame. 98 _timeStamp = packet.timestamp; 99 // We only take the ntp timestamp of the first packet o [all...] |
/external/chromium_org/third_party/webrtc/test/ |
H A D | fake_network_pipe.cc | 65 // The packet data. 69 // The time the packet was sent out on the network. 71 // The time the packet should arrive at the reciver. 114 // Too many packet on the link, drop this one. 133 NetworkPacket* packet = new NetworkPacket(data, data_length, time_now, local 135 capacity_link_.push(packet); 163 // Time to get this packet. 164 NetworkPacket* packet = capacity_link_.front(); local 169 delete packet; 174 // earlier than the last packet i 193 NetworkPacket* packet = delay_link_.front(); local 204 NetworkPacket* packet = packets_to_deliver.front(); local [all...] |
/external/chromium_org/third_party/webrtc/video/ |
H A D | call.cc | 104 virtual DeliveryStatus DeliverPacket(const uint8_t* packet, 110 DeliveryStatus DeliverRtcp(const uint8_t* packet, size_t length); 111 DeliveryStatus DeliverRtp(const uint8_t* packet, size_t length); 346 PacketReceiver::DeliveryStatus Call::DeliverRtcp(const uint8_t* packet, argument 349 // Do NOT broadcast! Also make sure it's a valid packet. 351 // there's no receiver of the packet. 359 if (it->second->DeliverRtcp(packet, length)) 370 if (it->second->DeliverRtcp(packet, length)) 377 PacketReceiver::DeliveryStatus Call::DeliverRtp(const uint8_t* packet, argument 383 const uint8_t* ptr = &packet[ 397 DeliverPacket(const uint8_t* packet, size_t length) argument [all...] |
H A D | rampup_tests.cc | 106 // Just trigger if there was any rtx padding packet. 116 bool StreamObserver::SendRtp(const uint8_t* packet, size_t length) { argument 119 EXPECT_TRUE(rtp_parser_->Parse(packet, static_cast<int>(length), &header)); 140 packet, 153 bool StreamObserver::SendRtcp(const uint8_t* packet, size_t length) { argument 265 const uint8_t* packet, size_t length) { 268 EXPECT_TRUE(rtp_parser_->Parse(packet, static_cast<int>(length), &header)); 279 bool LowRateStreamObserver::SendRtcp(const uint8_t* packet, size_t length) { argument 264 DeliverPacket( const uint8_t* packet, size_t length) argument
|
H A D | replay.cc | 239 test::RtpFileReader::Packet packet; local 240 if (!rtp_reader->NextPacket(&packet)) 243 switch (call->Receiver()->DeliverPacket(packet.data, packet.length)) { 249 parser->Parse(packet.data, packet.length, &header); 259 if (last_time_ms != 0 && last_time_ms != packet.time_ms) { 260 SleepMs(packet.time_ms - last_time_ms); 262 last_time_ms = packet.time_ms;
|
H A D | video_send_stream.cc | 196 // 28 to match packet overhead in ModuleRtpRtcpImpl. 404 bool VideoSendStream::DeliverRtcp(const uint8_t* packet, size_t length) { argument 406 channel_, packet, static_cast<int>(length)) == 0;
|
/external/chromium_org/ui/events/gesture_detection/ |
H A D | touch_disposition_gesture_filter.cc | 21 const GestureEventDataPacket& packet) { 27 packet.timestamp(), 28 packet.touch_location().x(), 29 packet.touch_location().y(), 30 packet.raw_touch_location().x(), 31 packet.raw_touch_location().y(), 33 gfx::RectF(packet.touch_location(), gfx::SizeF()), 150 const GestureEventDataPacket& packet) { 151 if (packet.gesture_source() == GestureEventDataPacket::UNDEFINED || 152 packet 18 CreateGesture(EventType type, int motion_event_id, MotionEvent::ToolType primary_tool_type, const GestureEventDataPacket& packet) argument 149 OnGesturePacket( const GestureEventDataPacket& packet) argument 205 const GestureEventDataPacket packet = sequence.front(); local 216 FilterAndSendPacket( const GestureEventDataPacket& packet) argument [all...] |
H A D | touch_disposition_gesture_filter_unittest.cc | 119 const GestureEventDataPacket& packet) { 122 for (size_t i = 0; i < packet.gesture_count(); ++i) 123 touch_packet.Push(packet.gesture(i)); 134 SendGesturePacket(const GestureEventDataPacket& packet) { argument 135 return queue_->OnGesturePacket(packet); 455 // But other events in the same packet are still suppressed. 859 GestureEventDataPacket packet; local 861 SendGesturePacket(packet)); 118 SendTouchGestures(const MotionEvent& touch, const GestureEventDataPacket& packet) argument
|
/external/deqp/modules/glshared/ |
H A D | glsRandomShaderProgram.cpp | 193 const rr::VertexPacket* packet = packets[packetNdx]; local 194 const tcu::Vec4 attribValue = rr::readVertexAttribFloat(inputs[attribNdx], packet->instanceNdx, packet->vertexNdx); 212 rr::VertexPacket* packet = packets[packetNdx]; local 214 packet->position[0] = access.component(0).asFloat(ndx); 215 packet->position[1] = access.component(1).asFloat(ndx); 216 packet->position[2] = access.component(2).asFloat(ndx); 217 packet->position[3] = access.component(3).asFloat(ndx); 234 rr::VertexPacket* const packet = packets[packetNdx]; member in class:deqp::gls::rr 235 float* const dst = packet 271 const rr::FragmentPacket& packet = packets[packetOffset+packetNdx]; local [all...] |
/external/dnsmasq/contrib/wrt/ |
H A D | dhcp_lease_time.c | 76 return NULL; /* malformed packet */ 83 return NULL; /* malformed packet */ 86 return NULL; /* malformed packet */ 137 struct dhcp_packet packet; local 138 unsigned char *p = packet.options; 157 memset(&packet, 0, sizeof(packet)); 159 packet.hlen = 0; 160 packet.htype = 0; 162 packet [all...] |
/external/eigen/Eigen/src/Core/ |
H A D | CwiseBinaryOp.h | 179 EIGEN_STRONG_INLINE PacketScalar packet(Index rowId, Index colId) const function in class:Eigen::CwiseBinaryOpImpl 181 return derived().functor().packetOp(derived().lhs().template packet<LoadMode>(rowId, colId), 182 derived().rhs().template packet<LoadMode>(rowId, colId)); 192 EIGEN_STRONG_INLINE PacketScalar packet(Index index) const function in class:Eigen::CwiseBinaryOpImpl 194 return derived().functor().packetOp(derived().lhs().template packet<LoadMode>(index), 195 derived().rhs().template packet<LoadMode>(index));
|
H A D | CwiseNullaryOp.h | 75 EIGEN_STRONG_INLINE PacketScalar packet(Index rowId, Index colId) const function in class:Eigen::CwiseNullaryOp 86 EIGEN_STRONG_INLINE PacketScalar packet(Index index) const function in class:Eigen::CwiseNullaryOp
|
H A D | DenseCoeffsBase.h | 198 * \returns the packet of coefficients starting at the given row and column. It is your responsibility 199 * to ensure that a packet really starts there. This method is only available on expressions having the 204 * starting at an address which is a multiple of the packet size. 208 EIGEN_STRONG_INLINE PacketReturnType packet(Index row, Index col) const function in class:Eigen::DenseCoeffsBase 212 return derived().template packet<LoadMode>(row,col); 220 return packet<LoadMode>(rowIndexByOuterInner(outer, inner), 225 * \returns the packet of coefficients starting at the given index. It is your responsibility 226 * to ensure that a packet really starts there. This method is only available on expressions having the 231 * starting at an address which is a multiple of the packet size. 235 EIGEN_STRONG_INLINE PacketReturnType packet(Inde function in class:Eigen::DenseCoeffsBase [all...] |
H A D | Reverse.h | 145 inline const PacketScalar packet(Index row, Index col) const function in class:Eigen::Reverse 147 return reverse_packet::run(m_matrix.template packet<LoadMode>( 162 inline const PacketScalar packet(Index index) const function in class:Eigen::Reverse 164 return internal::preverse(m_matrix.template packet<LoadMode>( m_matrix.size() - index - PacketSize ));
|
/external/eigen/Eigen/src/Core/products/ |
H A D | CoeffBasedProduct.h | 26 * on the generic Assign mechanism to evaluate the product per coeff (or packet). 97 * of Product. If the Product itself is not a packet-access expression, there is still a chance that the inner 170 /* Allow index-based non-packet access. It is impossible though to allow index-based packed access, 183 EIGEN_STRONG_INLINE const PacketScalar packet(Index row, Index col) const function in class:Eigen::CoeffBasedProduct 284 pres = padd(pres, pmul( lhs.template packet<Aligned>(row, UnrollingIndex) , rhs.template packet<Aligned>(UnrollingIndex, col) )); 294 pres = pmul(lhs.template packet<Aligned>(row, 0) , rhs.template packet<Aligned>(0, col)); 376 res = pmadd(pset1<Packet>(lhs.coeff(row, UnrollingIndex)), rhs.template packet<LoadMode>(UnrollingIndex, col), res); 387 res = pmadd(lhs.template packet<LoadMod [all...] |