/external/ppp/pppd/ |
D | demand.c | 138 struct packet *pkt, *nextpkt; in demand_discard() local 148 for (pkt = pend_q; pkt != NULL; pkt = nextpkt) { in demand_discard() 149 nextpkt = pkt->next; in demand_discard() 150 free(pkt); in demand_discard() 273 struct packet *pkt; local 283 pkt = (struct packet *) malloc(sizeof(struct packet) + len); 284 if (pkt != NULL) { 285 pkt->length = len; 286 pkt->next = NULL; 287 memcpy(pkt->data, frame, len); [all …]
|
D | chap-new.c | 123 unsigned char *pkt, int len); 129 unsigned char *pkt, int len); 131 unsigned char *pkt, int len); 133 static void chap_input(int unit, unsigned char *pkt, int pktlen); 310 unsigned char *pkt, int len) in chap_handle_response() argument 324 response = pkt; in chap_handle_response() 325 GETCHAR(response_len, pkt); in chap_handle_response() 327 name = (char *)pkt + response_len; in chap_handle_response() 439 unsigned char *pkt, int len) in chap_respond() argument 450 if (len < 2 || len < pkt[0] + 1) in chap_respond() [all …]
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd.c | 104 PktMsg pkt; member 113 PktMsg pkt; member 205 mDNSlocal void HdrNToH(PktMsg *pkt) in HdrNToH() argument 208 mDNSu8 *ptr = (mDNSu8 *)&pkt->msg.h.numQuestions; in HdrNToH() 209 pkt->msg.h.numQuestions = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); in HdrNToH() 210 pkt->msg.h.numAnswers = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); in HdrNToH() 211 pkt->msg.h.numAuthorities = (mDNSu16)((mDNSu16)ptr[4] << 8 | ptr[5]); in HdrNToH() 212 pkt->msg.h.numAdditionals = (mDNSu16)((mDNSu16)ptr[6] << 8 | ptr[7]); in HdrNToH() 216 mDNSlocal void HdrHToN(PktMsg *pkt) in HdrHToN() argument 218 mDNSu16 numQuestions = pkt->msg.h.numQuestions; in HdrHToN() [all …]
|
/external/libvpx/libvpx/test/ |
D | superframe_test.cc | 45 const vpx_codec_cx_pkt_t *pkt) { in MutateEncoderOutputHook() argument 46 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in MutateEncoderOutputHook() 47 return pkt; in MutateEncoderOutputHook() 49 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); in MutateEncoderOutputHook() 50 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; in MutateEncoderOutputHook() 55 pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook() 56 buffer[pkt->data.frame.sz - index_sz] == marker) { in MutateEncoderOutputHook() 60 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; in MutateEncoderOutputHook() 61 memcpy(modified_buf_, pkt->data.frame.buf, in MutateEncoderOutputHook() 62 pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook() [all …]
|
D | encode_test_driver.cc | 29 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { in EncodeFrame() local 30 if (pkt->kind != VPX_CODEC_STATS_PKT) in EncodeFrame() 33 stats_->Append(*pkt); in EncodeFrame() 174 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { in RunLoop() local 175 pkt = MutateEncoderOutputHook(pkt); in RunLoop() 177 switch (pkt->kind) { in RunLoop() 182 (const uint8_t*)pkt->data.frame.buf, pkt->data.frame.sz); in RunLoop() 189 ASSERT_GE(pkt->data.frame.pts, last_pts_); in RunLoop() 190 last_pts_ = pkt->data.frame.pts; in RunLoop() 191 FramePktHook(pkt); in RunLoop() [all …]
|
D | resize_test.cc | 64 static void write_ivf_frame_header(const vpx_codec_cx_pkt_t *const pkt, in write_ivf_frame_header() argument 69 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in write_ivf_frame_header() 72 pts = pkt->data.frame.pts; in write_ivf_frame_header() 73 mem_put_le32(header, static_cast<unsigned int>(pkt->data.frame.sz)); in write_ivf_frame_header() 208 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { in PSNRPktHook() argument 210 frame0_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook() 211 EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); in PSNRPktHook() 214 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument 219 if (pkt->data.frame.pts == 0) in FramePktHook() 223 write_ivf_frame_header(pkt, outfile_); in FramePktHook() [all …]
|
D | tile_independence_test.cc | 58 void UpdateMD5(::libvpx_test::Decoder *dec, const vpx_codec_cx_pkt_t *pkt, in UpdateMD5() argument 61 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz); in UpdateMD5() 70 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument 71 UpdateMD5(fw_dec_, pkt, &md5_fw_order_); in FramePktHook() 72 UpdateMD5(inv_dec_, pkt, &md5_inv_order_); in FramePktHook()
|
D | encode_test_driver.h | 67 void Append(const vpx_codec_cx_pkt_t &pkt) { in Append() argument 68 buffer_.append(reinterpret_cast<char *>(pkt.data.twopass_stats.buf), in Append() 69 pkt.data.twopass_stats.sz); in Append() 202 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) {} in FramePktHook() argument 205 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {} in PSNRPktHook() argument 234 const vpx_codec_cx_pkt_t *pkt) { in MutateEncoderOutputHook() argument 235 return pkt; in MutateEncoderOutputHook()
|
D | datarate_test.cc | 50 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument 52 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; in FramePktHook() 70 const bool key_frame = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) in FramePktHook() 74 << pkt->data.frame.pts; in FramePktHook() 77 const size_t frame_size_in_bits = pkt->data.frame.sz * 8; in FramePktHook() 90 last_pts_ = pkt->data.frame.pts; in FramePktHook() 299 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument 301 vpx_codec_pts_t duration = pkt->data.frame.pts - last_pts_; in FramePktHook() 322 << pkt->data.frame.pts; in FramePktHook() 324 const size_t frame_size_in_bits = pkt->data.frame.sz * 8; in FramePktHook() [all …]
|
D | cq_test.cc | 78 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { in PSNRPktHook() argument 79 psnr_ += pow(10.0, pkt->data.psnr.psnr[0] / 10.0); in PSNRPktHook() 83 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument 84 file_size_ += pkt->data.frame.sz; in FramePktHook()
|
/external/libvpx/libvpx/vpx/src/ |
D | vpx_encoder.c | 258 const vpx_codec_cx_pkt_t *pkt = NULL; in vpx_codec_get_cx_data() local 268 pkt = ctx->iface->enc.get_cx_data(ctx->priv->alg_priv, iter); in vpx_codec_get_cx_data() 271 if (pkt && pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in vpx_codec_get_cx_data() 279 pkt->data.raw.buf != dst_buf && in vpx_codec_get_cx_data() 280 pkt->data.raw.sz + priv->enc.cx_data_pad_before + in vpx_codec_get_cx_data() 284 memcpy(dst_buf + priv->enc.cx_data_pad_before, pkt->data.raw.buf, in vpx_codec_get_cx_data() 285 pkt->data.raw.sz); in vpx_codec_get_cx_data() 286 *modified_pkt = *pkt; in vpx_codec_get_cx_data() 290 pkt = modified_pkt; in vpx_codec_get_cx_data() 293 if (dst_buf == pkt->data.raw.buf) { in vpx_codec_get_cx_data() [all …]
|
/external/libvpx/libvpx/examples/ |
D | twopass_encoder.c | 77 const vpx_codec_cx_pkt_t *pkt = NULL; in get_frame_stats() local 83 while ((pkt = vpx_codec_get_cx_data(ctx, &iter)) != NULL) { in get_frame_stats() 84 if (pkt->kind == VPX_CODEC_STATS_PKT) { in get_frame_stats() 85 const uint8_t *const pkt_buf = pkt->data.twopass_stats.buf; in get_frame_stats() 86 const size_t pkt_size = pkt->data.twopass_stats.sz; in get_frame_stats() 102 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local 108 while ((pkt = vpx_codec_get_cx_data(ctx, &iter)) != NULL) { in encode_frame() 109 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame() 110 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame() 112 if (!vpx_video_writer_write_frame(writer, pkt->data.frame.buf, in encode_frame() [all …]
|
D | vp8_multi_resolution_encoder.c | 139 const vpx_codec_cx_pkt_t *pkt) in write_ivf_frame_header() argument 144 if(pkt->kind != VPX_CODEC_CX_FRAME_PKT) in write_ivf_frame_header() 147 pts = pkt->data.frame.pts; in write_ivf_frame_header() 148 mem_put_le32(header, pkt->data.frame.sz); in write_ivf_frame_header() 348 const vpx_codec_cx_pkt_t *pkt[NUM_ENCODERS]; in main() local 379 while( (pkt[i] = vpx_codec_get_cx_data(&codec[i], &iter[i])) ) in main() 382 switch(pkt[i]->kind) { in main() 384 write_ivf_frame_header(outfile[i], pkt[i]); in main() 385 (void) fwrite(pkt[i]->data.frame.buf, 1, in main() 386 pkt[i]->data.frame.sz, outfile[i]); in main() [all …]
|
D | vp8cx_set_ref.c | 73 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local 79 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame() 80 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame() 81 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame() 83 pkt->data.frame.buf, in encode_frame() 84 pkt->data.frame.sz, in encode_frame() 85 pkt->data.frame.pts)) { in encode_frame()
|
D | simple_encoder.c | 128 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local 134 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame() 137 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame() 138 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame() 140 pkt->data.frame.buf, in encode_frame() 141 pkt->data.frame.sz, in encode_frame() 142 pkt->data.frame.pts)) { in encode_frame()
|
D | set_maps.c | 133 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local 139 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame() 140 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame() 141 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame() 143 pkt->data.frame.buf, in encode_frame() 144 pkt->data.frame.sz, in encode_frame() 145 pkt->data.frame.pts)) { in encode_frame()
|
/external/libvncserver/client_examples/ |
D | vnc2mpg.c | 196 AVPacket pkt; in write_video_frame() local 197 av_init_packet(&pkt); in write_video_frame() 199 pkt.flags |= PKT_FLAG_KEY; in write_video_frame() 200 pkt.stream_index= st->index; in write_video_frame() 201 pkt.data= (uint8_t *)picture_ptr; in write_video_frame() 202 pkt.size= sizeof(AVPicture); in write_video_frame() 204 ret = av_write_frame(oc, &pkt); in write_video_frame() 210 AVPacket pkt; in write_video_frame() local 211 av_init_packet(&pkt); in write_video_frame() 213 pkt.pts= c->coded_frame->pts; in write_video_frame() [all …]
|
/external/openssh/openbsd-compat/ |
D | getrrsetbyname-ldns.c | 74 ldns_pkt *pkt = NULL; in getrrsetbyname() local 112 pkt = ldns_resolver_query(ldns_res, domain, rdtype, rdclass, LDNS_RD); in getrrsetbyname() 115 if (!pkt || ldns_pkt_ancount(pkt) < 1) { in getrrsetbyname() 127 rrdata = ldns_pkt_rr_list_by_type(pkt, rdtype, LDNS_SECTION_ANSWER); in getrrsetbyname() 150 if (ldns_pkt_ad(pkt)) { in getrrsetbyname() 157 rrsigs = ldns_pkt_rr_list_by_type(pkt, LDNS_RR_TYPE_RRSIG, in getrrsetbyname() 197 for (i=0, index_ans=0, index_sig=0; i< pkt->_header->_ancount; i++) { in getrrsetbyname() 199 rr = ldns_rr_list_rr(ldns_pkt_answer(pkt), i); in getrrsetbyname() 243 ldns_pkt_free(pkt); in getrrsetbyname()
|
/external/mdnsresponder/mDNSPosix/ |
D | NetMonitor.c | 461 DNSQuestion *q, LargeCacheRecord *pkt) in FindUpdate() argument 467 ptr = GetLargeResourceRecord(m, query, ptr, end, q->InterfaceID, kDNSRecordTypePacketAuth, pkt); in FindUpdate() 469 …cordType != kDNSRecordTypePacketNegative && ResourceRecordAnswersQuestion(&pkt->r.resrec, q)) retu… in FindUpdate() 617 LargeCacheRecord pkt; in DisplayQuery() local 633 p2 = (mDNSu8 *)FindUpdate(m, msg, auth, end, &q, &pkt); in DisplayQuery() 637 DisplayResourceRecord(srcaddr, ucbit ? "(PU)" : "(PM)", &pkt.r.resrec); in DisplayQuery() 656 ptr = GetLargeResourceRecord(m, msg, ptr, end, InterfaceID, kDNSRecordTypePacketAns, &pkt); in DisplayQuery() 658 DisplayResourceRecord(srcaddr, "(KA)", &pkt.r.resrec); in DisplayQuery() 664 recordstat(entry, pkt.r.resrec.name, OP_query, pkt.r.resrec.rrtype); in DisplayQuery() 670 ptr = GetLargeResourceRecord(m, msg, ptr, end, InterfaceID, kDNSRecordTypePacketAuth, &pkt); in DisplayQuery() [all …]
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 204 sendPacket(PPPoEConnection *conn, int sock, PPPoEPacket *pkt, int size) in sendPacket() argument 209 pppoe_log_packet("Send ", pkt); in sendPacket() 211 err = send(sock, pkt, size, 0); in sendPacket() 216 err = sendto(sock, pkt, size, 0, &sa, sizeof(sa)); in sendPacket() 237 receivePacket(int sock, PPPoEPacket *pkt, int *size) in receivePacket() argument 239 if ((*size = recv(sock, pkt, sizeof(PPPoEPacket), 0)) < 0) { in receivePacket() 244 pppoe_log_packet("Recv ", pkt); in receivePacket()
|
/external/libvpx/libvpx/ |
D | webmenc.cc | 61 const vpx_codec_cx_pkt_t *pkt) { in write_webm_block() argument 64 int64_t pts_ns = pkt->data.frame.pts * 1000000000ll * in write_webm_block() 70 segment->AddFrame(static_cast<uint8_t*>(pkt->data.frame.buf), in write_webm_block() 71 pkt->data.frame.sz, in write_webm_block() 74 pkt->data.frame.flags & VPX_FRAME_IS_KEY); in write_webm_block()
|
/external/llvm/test/CodeGen/Generic/ |
D | 2003-05-30-BadPreselectPhi.ll | 5 ;; Function: struct task *handlerfn(struct packet *pkt) 17 define %struct..task* @handlerfn(%struct..packet* %pkt.2) { 19 %tmp.1 = icmp ne %struct..packet* %pkt.2, null ; <i1> [#uses=1] 28 call void @append( %struct..packet* %pkt.2, %struct..packet* %tmp.12 )
|
/external/libvpx/libvpx/vp8/ |
D | vp8_cx_iface.c | 944 vpx_codec_cx_pkt_t pkt; in vp8e_encode() local 951 pkt.kind = VPX_CODEC_CX_FRAME_PKT; in vp8e_encode() 952 pkt.data.frame.pts = in vp8e_encode() 955 pkt.data.frame.duration = (unsigned long) in vp8e_encode() 958 pkt.data.frame.flags = lib_flags << 16; in vp8e_encode() 961 pkt.data.frame.flags |= VPX_FRAME_IS_KEY; in vp8e_encode() 965 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE; in vp8e_encode() 972 pkt.data.frame.pts = ((cpi->last_time_stamp_seen in vp8e_encode() 975 pkt.data.frame.duration = 0; in vp8e_encode() 979 pkt.data.frame.flags |= VPX_FRAME_IS_DROPPABLE; in vp8e_encode() [all …]
|
/external/iputils/ |
D | traceroute6.c | 728 struct pkt_format *pkt = (struct pkt_format *) sendbuff; in send_probe() local 731 pkt->ident = htonl(ident); in send_probe() 732 pkt->seq = htonl(seq); in send_probe() 733 gettimeofday(&pkt->tv, &tz); in send_probe() 853 struct pkt_format *pkt; in packet_ok() local 855 pkt = (struct pkt_format *) (up + 1); in packet_ok() 857 if (ntohl(pkt->ident) == ident && in packet_ok() 858 ntohl(pkt->seq) == seq) in packet_ok() 860 *tv = pkt->tv; in packet_ok()
|
/external/libvpx/libvpx/vp9/ |
D | vp9_cx_iface.c | 924 vpx_codec_cx_pkt_t pkt; in encoder_encode() local 949 pkt.kind = VPX_CODEC_CX_FRAME_PKT; in encoder_encode() 950 pkt.data.frame.pts = ticks_to_timebase_units(timebase, dst_time_stamp); in encoder_encode() 951 pkt.data.frame.duration = in encoder_encode() 954 pkt.data.frame.flags = lib_flags << 16; in encoder_encode() 962 pkt.data.frame.flags |= VPX_FRAME_IS_KEY; in encoder_encode() 965 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE; in encoder_encode() 971 pkt.data.frame.pts = in encoder_encode() 973 pkt.data.frame.duration = 0; in encoder_encode() 977 pkt.data.frame.flags |= VPX_FRAME_IS_DROPPABLE; in encoder_encode() [all …]
|