/external/libvpx/libvpx/test/ |
superframe_test.cc | 44 const vpx_codec_cx_pkt_t *pkt) { 45 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) 46 return pkt; 48 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); 49 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; 54 pkt->data.frame.sz >= index_sz && 55 buffer[pkt->data.frame.sz - index_sz] == marker) { 59 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; 60 memcpy(modified_buf_, pkt->data.frame.buf, 61 pkt->data.frame.sz - index_sz) [all...] |
vp9_lossless_test.cc | 42 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { 43 if (pkt->data.psnr.psnr[0] < psnr_) 44 psnr_= pkt->data.psnr.psnr[0];
|
tile_independence_test.cc | 60 void UpdateMD5(::libvpx_test::Decoder *dec, const vpx_codec_cx_pkt_t *pkt, 63 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz); 72 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { 73 UpdateMD5(fw_dec_, pkt, &md5_fw_order_); 74 UpdateMD5(inv_dec_, pkt, &md5_inv_order_);
|
datarate_test.cc | 46 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { 48 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; 66 bool key_frame = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) ? true: false; 69 << pkt->data.frame.pts; 72 const int frame_size_in_bits = pkt->data.frame.sz * 8; 85 last_pts_ = pkt->data.frame.pts;
|
encode_test_driver.cc | 29 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { 30 if (pkt->kind != VPX_CODEC_STATS_PKT) 33 stats_->Append(*pkt); 171 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { 172 pkt = MutateEncoderOutputHook(pkt); 174 switch (pkt->kind) { 179 (const uint8_t*)pkt->data.frame.buf, pkt->data.frame.sz); 183 ASSERT_GE(pkt->data.frame.pts, last_pts_) [all...] |
altref_test.cc | 44 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { 45 if (pkt->data.frame.flags & VPX_FRAME_IS_INVISIBLE) ++altref_count_;
|
cq_test.cc | 55 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { 56 psnr_ += pow(10.0, pkt->data.psnr.psnr[0] / 10.0); 60 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { 61 file_size_ += pkt->data.frame.sz;
|
encode_test_driver.h | 64 void Append(const vpx_codec_cx_pkt_t &pkt) { 65 buffer_.append(reinterpret_cast<char *>(pkt.data.twopass_stats.buf), 66 pkt.data.twopass_stats.sz); 187 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) {} 190 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {} 211 const vpx_codec_cx_pkt_t *pkt) { 212 return pkt;
|
borders_test.cc | 41 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { 42 if (pkt->data.frame.flags & VPX_FRAME_IS_KEY) {
|
/external/qemu/ |
bt-vhci.c | 39 uint8_t *pkt; local 52 pkt = s->hdr; 54 switch (*pkt ++) { 59 pktlen = MIN(pkt[2] + 3, s->len); 60 s->info->cmd_send(s->info, pkt, pktlen); 62 pkt += pktlen; 69 pktlen = MIN(((pkt[3] << 8) | pkt[2]) + 4, s->len); 70 s->info->acl_send(s->info, pkt, pktlen); 72 pkt += pktlen [all...] |
bt-host.c | 50 uint8_t pkt = type; local 53 iv[0].iov_base = (void *)&pkt; 85 uint8_t *pkt; local 98 pkt = s->hdr; 100 switch (*pkt ++) { 105 pktlen = MIN(pkt[1] + 2, s->len); 106 s->hci.evt_recv(s->hci.opaque, pkt, pktlen); 108 pkt += pktlen; 120 pktlen = MIN(((pkt[3] << 8) | pkt[2]) + 4, s->len) [all...] |
/external/libvpx/libvpx/nestegg/test/ |
test.c | 81 nestegg_packet * pkt; local 157 r = nestegg_read_packet(ctx, &pkt); 159 nestegg_packet_track(pkt, &track); 160 nestegg_packet_count(pkt, &cnt); 161 nestegg_packet_tstamp(pkt, &tstamp); 165 nestegg_free_packet(pkt); 181 r = nestegg_read_packet(ctx, &pkt); 183 nestegg_packet_track(pkt, &track); 184 nestegg_packet_count(pkt, &cnt); 185 nestegg_packet_tstamp(pkt, &tstamp) [all...] |
/external/ppp/pppd/ |
demand.c | 138 struct packet *pkt, *nextpkt; local 148 for (pkt = pend_q; pkt != NULL; pkt = nextpkt) { 149 nextpkt = pkt->next; 150 free(pkt); 273 struct packet *pkt; local 283 pkt = (struct packet *) malloc(sizeof(struct packet) + len); 284 if (pkt != NULL) { 285 pkt->length = len 305 struct packet *pkt, *prev, *nextpkt; local [all...] |
chap-new.c | 121 unsigned char *pkt, int len); 127 unsigned char *pkt, int len); 129 unsigned char *pkt, int len); 131 static void chap_input(int unit, unsigned char *pkt, int pktlen); 311 unsigned char *pkt, int len) 328 response = pkt; 329 GETCHAR(response_len, pkt); 331 name = (char *)pkt + response_len; 424 unsigned char *pkt, int len) 435 if (len < 2 || len < pkt[0] + 1 [all...] |
chap-new.h | 108 int (*check_success)(unsigned char *pkt, int len, unsigned char *priv); 109 void (*handle_failure)(unsigned char *pkt, int len);
|
/external/qemu/hw/ |
bt-hci-csr.c | 181 static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt) 186 switch (*pkt ++) { 188 opc = le16_to_cpu(((struct hci_command_hdr *) pkt)->opcode); 191 pkt + sizeof(struct hci_command_hdr), 202 s->hci->cmd_send(s->hci, pkt, s->in_len - 1); 209 s->hci->acl_send(s->hci, pkt, s->in_len - 1); 213 s->hci->sco_send(s->hci, pkt, s->in_len - 1); 218 memcmp(pkt - 1, csrhci_neg_packet, s->in_hdr)) { 222 pkt += 2; 227 memcpy(rpkt, pkt, 7); rpkt += 7 336 uint8_t *pkt = csrhci_out_packet(s, (len + 2) & ~1); \/* Align *\/ local 348 uint8_t *pkt = csrhci_out_packet(s, (len + 2) & ~1); \/* Align *\/ local [all...] |
/external/mdnsresponder/mDNSShared/ |
dnsextd.c | 104 PktMsg pkt; member in struct:__anon24532 113 PktMsg pkt; member in struct:__anon24533 205 mDNSlocal void HdrNToH(PktMsg *pkt) 208 mDNSu8 *ptr = (mDNSu8 *)&pkt->msg.h.numQuestions; 209 pkt->msg.h.numQuestions = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); 210 pkt->msg.h.numAnswers = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); 211 pkt->msg.h.numAuthorities = (mDNSu16)((mDNSu16)ptr[4] << 8 | ptr[5]); 212 pkt->msg.h.numAdditionals = (mDNSu16)((mDNSu16)ptr[6] << 8 | ptr[7]); 216 mDNSlocal void HdrHToN(PktMsg *pkt) 218 mDNSu16 numQuestions = pkt->msg.h.numQuestions 423 PktMsg * pkt = NULL; local 919 PktMsg pkt; local 1295 PktMsg pkt; local 2716 PktMsg * pkt; local [all...] |
/external/libvpx/libvpx/examples/ |
encoder_tmpl.c | 93 const vpx_codec_cx_pkt_t *pkt) 98 if(pkt->kind != VPX_CODEC_CX_FRAME_PKT) 101 pts = pkt->data.frame.pts; 102 mem_put_le32(header, pkt->data.frame.sz); 155 const vpx_codec_cx_pkt_t *pkt; local 160 while( (pkt = vpx_codec_get_cx_data(&codec, &iter)) ) { 162 switch(pkt->kind) { 168 printf(pkt->kind == VPX_CODEC_CX_FRAME_PKT 169 && (pkt->data.frame.flags & VPX_FRAME_IS_KEY)? "K":".");
|
/external/qemu/slirp/ |
libslirp.h | 15 void slirp_input(const uint8_t *pkt, int pkt_len); 19 void slirp_output(const uint8_t *pkt, int pkt_len);
|
/external/libvpx/libvpx/vpx/src/ |
vpx_encoder.c | 259 const vpx_codec_cx_pkt_t *pkt = NULL; local 269 pkt = ctx->iface->enc.get_cx_data(ctx->priv->alg_priv, iter); 272 if (pkt && pkt->kind == VPX_CODEC_CX_FRAME_PKT) { 280 && pkt->data.raw.buf != dst_buf 281 && pkt->data.raw.sz 288 pkt->data.raw.buf, pkt->data.raw.sz); 289 *modified_pkt = *pkt; 293 pkt = modified_pkt 392 const vpx_codec_cx_pkt_t *pkt; local [all...] |
/frameworks/base/core/java/android/net/dhcp/ |
DhcpPacket.java | 823 DhcpPacket pkt = new DhcpDiscoverPacket( local 825 pkt.mRequestedParams = expectedParams; 826 return pkt.buildPacket(encap, DHCP_SERVER, DHCP_CLIENT); 838 DhcpPacket pkt = new DhcpOfferPacket( local 840 pkt.mGateway = gateway; 841 pkt.mDnsServers = dnsServers; 842 pkt.mLeaseTime = timeout; 843 pkt.mDomainName = domainName; 844 pkt.mServerIdentifier = dhcpServerIdentifier; 845 pkt.mSubnetMask = netMask 858 DhcpPacket pkt = new DhcpAckPacket( local 875 DhcpPacket pkt = new DhcpNakPacket(transactionId, clientIpAddr, local 889 DhcpPacket pkt = new DhcpRequestPacket(transactionId, clientIp, local [all...] |
/frameworks/base/services/common_time/ |
common_time_server.cpp | 626 UniversalTimeServicePacket pkt; local 627 if (pkt.deserializePacket(buf, recvBytes, mSyncGroupID) < 0) { 640 switch (pkt.packetType) { 642 result = handleWhoIsMasterRequest(&pkt.p.who_is_master_request, 647 result = handleWhoIsMasterResponse(&pkt.p.who_is_master_response, 652 result = handleSyncRequest(&pkt.p.sync_request, srcAddr); 656 result = handleSyncResponse(&pkt.p.sync_response, srcAddr); 660 result = handleMasterAnnouncement(&pkt.p.master_announcement, 670 pkt.packetType, srcEPStr); 772 WhoIsMasterResponsePacket pkt; 877 SyncResponsePacket pkt; local 1066 WhoIsMasterRequestPacket pkt; local 1109 SyncRequestPacket pkt; local 1151 MasterAnnouncementPacket pkt; local [all...] |
/external/bluetooth/bluedroid/stack/avdt/ |
avdt_defs.h | 145 #define AVDT_MSG_PRS_HDR(p, lbl, pkt, msg) \ 147 pkt = (*(p) >> 2) & 0x03; \ 162 #define AVDT_MSG_PRS_PKT_TYPE(p, pkt) \ 163 pkt = (*(p) >> 2) & 0x03; 180 #define AVDT_MSG_BLD_HDR(p, lbl, pkt, msg) \ 181 *(p)++ = (UINT8) ((lbl) << 4) | ((pkt) << 2) | (msg);
|
/external/libvpx/libvpx/ |
vp8_multi_resolution_encoder.c | 171 const vpx_codec_cx_pkt_t *pkt) 176 if(pkt->kind != VPX_CODEC_CX_FRAME_PKT) 179 pts = pkt->data.frame.pts; 180 mem_put_le32(header, pkt->data.frame.sz); 380 const vpx_codec_cx_pkt_t *pkt[NUM_ENCODERS]; local 411 while( (pkt[i] = vpx_codec_get_cx_data(&codec[i], &iter[i])) ) 414 switch(pkt[i]->kind) { 416 write_ivf_frame_header(outfile[i], pkt[i]); 417 (void) fwrite(pkt[i]->data.frame.buf, 1, 418 pkt[i]->data.frame.sz, outfile[i]) [all...] |
vp9_spatial_scalable_encoder.c | 128 const vpx_codec_cx_pkt_t *pkt) { 132 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) return; 134 pts = pkt->data.frame.pts; 135 mem_put_le32(header, pkt->data.frame.sz); 415 const vpx_codec_cx_pkt_t *pkt; local 440 while ((pkt = vpx_codec_get_cx_data(&codec, &iter))) { 442 switch (pkt->kind) { 445 write_ivf_frame_header(outfile[i], pkt); 446 (void)fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz [all...] |