| /external/chromium_org/components/usb_service/ |
| usb_device_handle_impl.cc | 264 PlatformUsbIsoPacketDescriptor packet = &handle->iso_packet_desc[i]; local 265 if (packet->actual_length > 0) { 267 // all the data the packet can hold. 269 CHECK(packet_buffer_start + packet->actual_length <= 273 packet->actual_length); 275 actual_length += packet->actual_length; 278 packet_buffer_start += packet->length;
|
| /external/chromium_org/media/audio/alsa/ |
| alsa_output.cc | 232 // Buffer size is at least twice of packet size. 344 // If stopped, simulate a 0-length packet. 360 scoped_refptr<media::DataBuffer> packet = local 374 // Adjust packet size for downmix. 382 frames_filled, bytes_per_sample_, packet->writable_data()); 385 packet->set_data_size(packet_size); 386 // Add the packet to the buffer. 387 buffer_->Append(packet);
|
| /external/chromium_org/media/formats/webm/chromeos/ |
| webm_encoder.cc | 149 const vpx_codec_cx_pkt_t* packet; local 150 while (!has_errors_ && (packet = vpx_codec_get_cx_data(&codec, &iter))) { 151 if (packet->kind == VPX_CODEC_CX_FRAME_PKT) 152 WriteWebmBlock(packet); 222 void WebmEncoder::WriteWebmBlock(const vpx_codec_cx_pkt_t* packet) { 223 bool is_keyframe = packet->data.frame.flags & VPX_FRAME_IS_KEY; 224 int64_t pts_ms = 1000 * packet->data.frame.pts * fps_.den / fps_.num; 226 DVLOG(1) << "Video packet @" << pts_ms << " ms " 227 << packet->data.frame.sz << " bytes " 232 uint32 block_length = (packet->data.frame.sz + 4) | 0x10000000 [all...] |
| /external/chromium_org/net/tools/quic/ |
| quic_dispatcher_test.cc | 124 scoped_ptr<QuicEncryptedPacket> packet(ConstructEncryptedPacket( 126 data_ = string(packet->data(), packet->length()); 127 dispatcher_.ProcessPacket(server_address_, client_address, *packet); 130 void ValidatePacket(const QuicEncryptedPacket& packet) { 131 EXPECT_EQ(data_.length(), packet.AsStringPiece().length()); 132 EXPECT_EQ(data_, packet.AsStringPiece()); 198 const QuicEncryptedPacket& packet)); 216 // Close the connection by sending public reset packet. 217 QuicPublicResetPacket packet; local [all...] |
| quic_time_wait_list_manager_test.cc | 114 QuicEncryptedPacket* packet) { 116 connection_id, version, packet); 125 QuicEncryptedPacket packet(NULL, 0); 130 packet); 153 scoped_ptr<QuicPacket> packet( 154 BuildUnsizedDataPacket(&framer_, header, frames).packet); 155 EXPECT_TRUE(packet != NULL); 158 *packet); 193 QuicPublicResetPacket packet = visitor.public_reset_packet(); variable 194 return connection_id_ == packet.public_header.connection_id & [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/media/base/ |
| filemediaengine_unittest.cc | 61 virtual bool SendPacket(talk_base::Buffer* packet, 63 if (!packet) return false; 66 media_channel_->OnPacketReceived(packet, talk_base::PacketTime()); 70 packet->data(), packet->length())) { 78 virtual bool SendRtcp(talk_base::Buffer* packet, 187 RtpDumpPacket packet; local 189 while (talk_base::SR_SUCCESS == reader->ReadPacket(&packet)) { 192 if (!packet.GetRtpSsrc(&ssrc)) { 371 // Each sent packet is dumped to net_dump and is also feed to the channe [all...] |
| testutils.cc | 74 const RawRtpPacket& packet, uint16 seq, uint32 ts, uint32 ssc) const { 77 ver_to_cc == packet.ver_to_cc && 78 m_to_pt == packet.m_to_pt && 80 0 == memcmp(payload, packet.payload, sizeof(payload)); 106 bool RawRtcpPacket::EqualsTo(const RawRtcpPacket& packet) const { 107 return ver_to_count == packet.ver_to_count && 108 type == packet.type && 109 length == packet.length && 110 0 == memcmp(payload, packet.payload, sizeof(payload)); 170 RtpDumpPacket packet; local [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
| relayserver_unittest.cc | 135 talk_base::TestClient::Packet* packet = client->NextPacket(); local 136 if (packet) { 137 talk_base::ByteBuffer buf(packet->buf, packet->size); 140 delete packet; 146 talk_base::TestClient::Packet* packet = client->NextPacket(); local 147 if (packet) { 148 raw = std::string(packet->buf, packet->size) [all...] |
| /external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/r200/ |
| r200_state_init.c | 54 /* New (1.3) state mechanism. 3 commands (packet, scalar, vector) in 62 } packet[RADEON_MAX_STATE_PACKETS] = { variable in typeref:struct:__anon18109 168 return CP_PACKET0(packet[id].start, packet[id].len - 1); 490 OUT_BATCH(CP_PACKET0(packet[0].start, 3)); 750 /* Fill in the packet headers: [all...] |
| /external/chromium_org/third_party/opus/src/tests/ |
| test_opus_decode.c | 62 unsigned char *packet; local 69 packet=malloc(sizeof(unsigned char)*MAX_PACKET); 70 if(packet==NULL)test_failed(); 131 out_samples = opus_decode(dec[t], packet, 0, outbuf, 120/factor, fec); 136 out_samples = opus_decode(dec[t], packet, 0, outbuf, 0, fec); 138 out_samples = opus_decode(dec[t], packet, 0, 0, 0, fec); 143 out_samples = opus_decode(dec[t], packet, -1, outbuf, MAX_FRAME_SAMP, fec); 145 out_samples = opus_decode(dec[t], packet, INT_MIN, outbuf, MAX_FRAME_SAMP, fec); 147 out_samples = opus_decode(dec[t], packet, -1, outbuf, -1, fec); 151 out_samples = opus_decode(dec[t], packet, 1, outbuf, MAX_FRAME_SAMP, fec?-1:2) [all...] |
| /external/chromium_org/third_party/skia/experimental/Networking/ |
| SkSockets.cpp | 90 char packet[PACKET_SIZE]; local 95 memset(packet, 0, PACKET_SIZE); 105 int retval = read(i, packet + bytesReadInPacket, 113 continue; //incomplete packet or frame, keep tring 133 continue; //incomplete packet, keep trying 137 memcpy(&h.done, packet, sizeof(bool)); 138 memcpy(&h.bytes, packet + sizeof(bool), sizeof(int)); 139 memcpy(&h.type, packet + sizeof(bool) + sizeof(int), sizeof(DataType)); 141 //SkDebugf("bad packet\n"); 145 //SkDebugf("read packet(done:%d, bytes:%d) from fd:%d in %d tries\n" 177 char packet[PACKET_SIZE]; local [all...] |
| /external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
| 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 53 Packet* CreateRedPayload(int num_payloads, 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) 109 Packet* packet = new Packet; local 125 Packet* packet = new Packet; local 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/pacing/ |
| paced_sender.cc | 20 // Time limit in milliseconds between packet bursts. 27 // Max time that the first packet in the queue can sit in the queue if no 37 struct Packet { 38 Packet(uint32_t ssrc, uint16_t seq_number, int64_t capture_time_ms, 64 Packet front() const { 69 Packet& packet = packet_list_.front(); local 70 uint16_t sequence_number = packet.sequence_number_; 75 void push_back(const Packet& packet) { 286 paced_sender::Packet packet = GetNextPacketFromList(packet_list); local 372 paced_sender::Packet packet = packets->front(); local [all...] |
| /external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/ |
| rtcp_packet.cc | 88 void CreateHeader(uint8_t count_or_format, // Depends on packet type. 114 // | sender's packet count | 138 // | SSRC of packet sender | 251 // Bye packet (BYE) (RFC 3550). 277 // Application-Defined packet (APP) (RFC 3550). 305 // Common packet format: 312 // | SSRC of packet sender | 445 void RtcpPacket::Append(RtcpPacket* packet) { 446 assert(packet); 447 appended_packets_.push_back(packet); 452 uint8_t packet[IP_PACKET_SIZE]; local [all...] |
| rtp_fec_unittest.cc | 28 typedef std::list<ForwardErrorCorrection::Packet*> PacketList; 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 683 ForwardErrorCorrection::Packet* packet; local [all...] |
| /external/chromium_org/third_party/webrtc/modules/video_coding/main/source/ |
| jitter_buffer_unittest.cc | 19 #include "webrtc/modules/video_coding/main/source/packet.h" 144 VCMPacket packet; local 145 packet.dataPtr = data_buffer_; 146 bool packet_available = stream_generator_->PopPacket(&packet, index); 151 return jitter_buffer_->InsertPacket(packet, &retransmitted); 155 VCMPacket packet; local 156 packet.dataPtr = data_buffer_; 157 bool packet_available = stream_generator_->GetPacket(&packet, index); 162 return jitter_buffer_->InsertPacket(packet, &retransmitted); 268 // Insert the packet to the jitter buffer and get a frame 1863 VCMPacket packet; local 1899 VCMPacket packet; local 1905 VCMPacket packet; local [all...] |
| session_info.cc | 13 #include "webrtc/modules/video_coding/main/source/packet.h" 121 VCMPacket& packet = *packet_it; local 124 int packet_size = packet.sizeBytes; 125 packet_size += (packet.insertStartCode ? kH264StartCodeLengthBytes : 0); 127 // Calculate the offset into the frame buffer for this packet. 132 // Set the data pointer to pointing to the start of this packet in the 134 const uint8_t* data = packet.dataPtr; 135 packet.dataPtr = frame_buffer + offset; 136 packet.sizeBytes = packet_size; 141 if (packet.insertStartCode) [all...] |
| /external/chromium_org/third_party/webrtc/modules/video_coding/main/test/ |
| test_callbacks.cc | 64 // will call the VCMReceiver input packet 241 // Take first packet in list 265 // Insert outgoing packet into list 271 // Simulate receive time = network delay + packet jitter 282 RtpPacket* packet = NULL; local 286 // Take first packet in list 287 packet = _rtpPackets.front(); 288 int64_t timeToReceive = packet->receiveTime - now; 300 if (!parser->Parse(packet->data, packet->length, &header)) [all...] |
| /external/chromium_org/third_party/webrtc/video_engine/test/libvietest/testbed/ |
| tb_external_transport.cc | 208 // Packet loss. 383 VideoPacket* packet = NULL; local 388 // Take first packet in queue 389 packet = _rtpPackets.front(); 391 if (packet) 393 timeToReceive = packet->receiveTime - NowMs(); 413 if (packet) 418 ssrc = ((packet->packetBuffer[8]) << 24); 419 ssrc += (packet->packetBuffer[9] << 16); 420 ssrc += (packet->packetBuffer[10] << 8) [all...] |
| /external/chromium_org/ui/events/gesture_detection/ |
| touch_disposition_gesture_filter_unittest.cc | 113 const GestureEventDataPacket& packet) { 116 for (size_t i = 0; i < packet.gesture_count(); ++i) 117 touch_packet.Push(packet.gesture(i)); 128 SendGesturePacket(const GestureEventDataPacket& packet) { 129 return queue_->OnGesturePacket(packet); 421 // But other events in the same packet are still suppressed. 823 GestureEventDataPacket packet; local 825 SendGesturePacket(packet)); [all...] |
| /external/deqp/modules/egl/ |
| teglColorClearCase.cpp | 324 ClearPacket& packet = packets[threadNdx][packetNdx]; local 327 packet.wait = semaphores[packetNdx*numThreads + threadNdx]; 328 packet.signal = semaphores[packetNdx*numThreads + threadNdx + 1]; 330 for (int clearNdx = 0; clearNdx < DE_LENGTH_OF_ARRAY(packet.clears); clearNdx++) 334 packet.clears[clearNdx] = ClearOp(0, 0, width, height, RGBA::black); 336 packet.clears[clearNdx] = computeRandomClear(rnd, width, height); 372 const ClearPacket& packet = packets[threadNdx][packetNdx]; local 373 for (int clearNdx = 0; clearNdx < DE_LENGTH_OF_ARRAY(packet.clears); clearNdx++) 376 packet.clears[clearNdx].x, packet.clears[clearNdx].y, 0 [all...] |
| /external/deqp/modules/gles31/functional/ |
| es31fFboTestUtil.cpp | 207 rr::VertexPacket& packet = *packets[packetNdx]; local 209 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); 210 packet.outputs[0] = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx); 370 rr::VertexPacket& packet = *packets[packetNdx]; local 371 const tcu::Vec2 a_coord = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx).xy() [all...] |
| /external/dnsmasq/contrib/wrt/ |
| 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.op = BOOTREQUEST [all...] |
| dhcp_release.c | 252 struct dhcp_packet packet; local 253 unsigned char *p = packet.options; 275 /* This voodoo fakes up a packet coming from the correct interface, which really matters for 288 memset(&packet, 0, sizeof(packet)); 290 packet.hlen = parse_hex(argv[3], packet.chaddr, DHCP_CHADDR_MAX, &mac_type); 292 packet.htype = ARPHRD_ETHER; 294 packet.htype = mac_type; 296 packet.op = BOOTREQUEST [all...] |
| /external/eigen/Eigen/src/Core/ |
| Block.h | 251 inline PacketScalar packet(Index rowId, Index colId) const function in class:Eigen::internal::BlockImpl_dense 253 return m_xpr.template packet<Unaligned> 265 inline PacketScalar packet(Index index) const function in class:Eigen::internal::BlockImpl_dense 267 return m_xpr.template packet<Unaligned>
|