/third_party/libcoap/tests/ |
D | test_oscore.c | 471 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == in t_oscore_c_4() 473 result = memcmp(&osc_pdu->token[-osc_pdu->hdr_size], protected_coap_request, in t_oscore_c_4() 474 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_4() 538 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == sizeof(protected)); in t_oscore_c_5() 539 result = memcmp(&osc_pdu->token[-osc_pdu->hdr_size], protected, in t_oscore_c_5() 540 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_5() 607 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == sizeof(protected)); in t_oscore_c_6() 608 result = memcmp(&osc_pdu->token[-osc_pdu->hdr_size], protected, in t_oscore_c_6() 609 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_6() 694 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == in t_oscore_c_7() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | dtsdec.c | 44 int marker, wide_hdr, hdr_size, framesize; in dts_probe() local 67 hdr_size = get_bits(&gb, 8 + 4 * wide_hdr) + 1; in dts_probe() 69 if (hdr_size & 3 || framesize & 3) in dts_probe() 71 if (hdr_size < 16 || framesize < hdr_size) in dts_probe() 73 if (pos - 2 + hdr_size > p->buf_size) in dts_probe() 75 if (av_crc(av_crc_get_table(AV_CRC_16_CCITT), 0xffff, buf + 3, hdr_size - 5)) in dts_probe()
|
D | rtpenc_jpeg.c | 190 int hdr_size = 8; in ff_rtp_send_jpeg() local 193 hdr_size += 4 + 64 * nb_qtables; in ff_rtp_send_jpeg() 196 len = FFMIN(size, s->max_payload_size - hdr_size); in ff_rtp_send_jpeg() 220 ff_rtp_send_data(s1, s->buf, len + hdr_size, size == len); in ff_rtp_send_jpeg()
|
D | rtpdec_jpeg.c | 37 int hdr_size; ///< size of the current frame header member 331 jpeg->hdr_size = jpeg_create_header(hdr, sizeof(hdr), type, width, in jpeg_parse_packet() 336 avio_write(jpeg->frame, hdr, jpeg->hdr_size); in jpeg_parse_packet() 353 if (off != avio_tell(jpeg->frame) - jpeg->hdr_size) { in jpeg_parse_packet()
|
D | wtvenc.c | 265 int hdr_size = 0; in write_stream_codec_info() local 295 hdr_size = avio_tell(pb) - hdr_pos_start; in write_stream_codec_info() 298 avio_seek(pb, -(hdr_size + 4), SEEK_CUR); in write_stream_codec_info() 299 avio_wl32(pb, hdr_size + 32); in write_stream_codec_info() 300 avio_seek(pb, hdr_size, SEEK_CUR); in write_stream_codec_info()
|
/third_party/mesa3d/include/android_stub/log/ |
D | log_read.h | 41 uint16_t hdr_size; /* sizeof(struct logger_entry) */ member 70 unsigned short hdr_size = entry.hdr_size; in msg() local 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() 74 return reinterpret_cast<char*>(buf) + hdr_size; in msg() 76 unsigned int len() { return entry.hdr_size + entry.len; } in len()
|
/third_party/ffmpeg/libavcodec/ |
D | 8svx.c | 93 int hdr_size = 2; in eightsvx_decode_frame() local 97 int chan_size = avpkt->size / avctx->channels - hdr_size; in eightsvx_decode_frame() 102 if (avpkt->size < (hdr_size + 1) * avctx->channels) { in eightsvx_decode_frame() 121 memcpy(esc->data[0], &avpkt->data[hdr_size], chan_size); in eightsvx_decode_frame() 123 memcpy(esc->data[1], &avpkt->data[2*hdr_size+chan_size], chan_size); in eightsvx_decode_frame() 151 return ((avctx->frame_number == 0)*hdr_size + buf_size)*avctx->channels; in eightsvx_decode_frame()
|
D | proresdec2.c | 204 int hdr_size, width, height, flags; in decode_frame_header() local 208 hdr_size = AV_RB16(buf); in decode_frame_header() 209 ff_dlog(avctx, "header size %d\n", hdr_size); in decode_frame_header() 210 if (hdr_size > data_size) { in decode_frame_header() 297 return hdr_size; in decode_frame_header() 303 int i, hdr_size, slice_count; in decode_picture_header() local 309 hdr_size = buf[0] >> 3; in decode_picture_header() 310 if (hdr_size < 8 || hdr_size > buf_size) { in decode_picture_header() 352 if (hdr_size + slice_count*2 > buf_size) { in decode_picture_header() 358 index_ptr = buf + hdr_size; in decode_picture_header() [all …]
|
D | proresenc_anatoliy.c | 543 int hdr_size = 6 + (ctx->need_alpha * 2); /* v data size is write when there is alpha */ in encode_slice() local 594 mb_count, buf + hdr_size, data_size - hdr_size, in encode_slice() 609 mb_count, buf + hdr_size, data_size - hdr_size, in encode_slice() 617 mb_count, buf + hdr_size, data_size - hdr_size, in encode_slice() 626 mb_count, buf + hdr_size, data_size - hdr_size, in encode_slice() 633 buf[0] = hdr_size << 3; in encode_slice() 645 buf + hdr_size + slice_size, in encode_slice() 646 data_size - hdr_size - slice_size, &a_data_size); in encode_slice() 652 return hdr_size + y_data_size + u_data_size + v_data_size + a_data_size; in encode_slice() 660 int hdr_size, sl_size, i; in prores_encode_picture() local [all …]
|
/third_party/libcoap/src/ |
D | coap_pdu.c | 50 pdu->hdr_size = 0; in coap_pdu_clear() 997 uint8_t *hdr = pdu->token - pdu->hdr_size; in coap_pdu_parse_header() 1001 assert(pdu->hdr_size == 4); in coap_pdu_parse_header() 1010 assert(pdu->hdr_size >= 2 && pdu->hdr_size <= 6); in coap_pdu_parse_header() 1012 pdu->code = hdr[pdu->hdr_size-1]; in coap_pdu_parse_header() 1015 assert(pdu->hdr_size == 2); in coap_pdu_parse_header() 1017 pdu->code = hdr[pdu->hdr_size-1]; in coap_pdu_parse_header() 1386 size_t hdr_size; in coap_pdu_parse() local 1390 hdr_size = coap_pdu_parse_header_size(proto, data); in coap_pdu_parse() 1391 if (!hdr_size || hdr_size > length) in coap_pdu_parse() [all …]
|
D | coap_resource.c | 539 context->unknown_pdu->hdr_size; 541 context->unknown_pdu->hdr_size; 894 memcpy(s->pdu->token - request->hdr_size, 895 request->token - request->hdr_size, request->hdr_size); 896 raw_packet.s = s->pdu->token - request->hdr_size; 897 raw_packet.length = s->pdu->used_size + request->hdr_size;
|
D | coap_net.c | 793 assert(pdu->hdr_size > 0); in coap_session_send_pdu() 797 pdu->token - pdu->hdr_size, in coap_session_send_pdu() 798 pdu->used_size + pdu->hdr_size); in coap_session_send_pdu() 1581 (size_t)bytes_written < pdu->used_size + pdu->hdr_size) { in coap_send_internal() 1767 assert(session->partial_write < q->pdu->used_size + q->pdu->hdr_size); in coap_write_session() 1769 q->pdu->token - q->pdu->hdr_size + session->partial_write, in coap_write_session() 1770 q->pdu->used_size + q->pdu->hdr_size - session->partial_write); in coap_write_session() 1774 (size_t)bytes_written < q->pdu->used_size + q->pdu->hdr_size - session->partial_write) { in coap_write_session() 1883 + session->partial_pdu->hdr_size in coap_read_session() 1886 memcpy(session->partial_pdu->token - session->partial_pdu->hdr_size in coap_read_session() [all …]
|
/third_party/mesa3d/src/freedreno/decode/ |
D | pgmdump.c | 539 int instrs_size, hdr_size, sect_size, nconsts = 0, level = 0, compact = 0; in dump_shaders_a3xx() local 544 vs_hdr = next_sect(state, &hdr_size); in dump_shaders_a3xx() 545 printf("hdr_size=%d\n", hdr_size); in dump_shaders_a3xx() 561 if (hdr_size > n) { in dump_shaders_a3xx() 563 instrs_size = hdr_size - n; in dump_shaders_a3xx() 564 hdr_size = n; in dump_shaders_a3xx() 585 printf("######## VS%d HEADER: (size %d)\n", i, hdr_size); in dump_shaders_a3xx() 586 dump_hex((void *)vs_hdr, hdr_size); in dump_shaders_a3xx() 620 int instrs_size, hdr_size, sect_size, nconsts = 0, level = 0, compact = 0; in dump_shaders_a3xx() local 625 fs_hdr = next_sect(state, &hdr_size); in dump_shaders_a3xx() [all …]
|
/third_party/gstreamer/gstplugins_bad/tests/examples/codecparsers/ |
D | parse-vp8.c | 326 guint hdr_size, frame_num = 0; in main() local 360 hdr_size = MIN (sizeof (buf), ivf_frame_hdr.frame_size); in main() 361 if (fread (buf, hdr_size, 1, fp) != 1) { in main() 366 hdr_size = ivf_frame_hdr.frame_size - hdr_size; in main() 367 if (hdr_size > 0 && fseek (fp, hdr_size, SEEK_CUR) != 0) { in main()
|
/third_party/alsa-utils/axfer/ |
D | container-au.c | 53 uint32_t hdr_size; member 94 if (be32toh(header.hdr_size) != sizeof(struct container_header)) in au_parser_pre_process() 130 header->hdr_size = htobe32(sizeof(struct container_header)); in build_container_header()
|
D | container-voc.c | 64 uint16_t hdr_size; member 320 uint16_t hdr_size; in parse_container_header() local 324 hdr_size = le16toh(header->hdr_size); in parse_container_header() 331 if (hdr_size != sizeof(*header)) in parse_container_header() 607 header->hdr_size = htole16(sizeof(*header)); in write_container_header()
|
/third_party/elfutils/libdw/ |
D | dwarf_getcfi_elf.c | 75 parse_eh_frame_hdr (const uint8_t *hdr, size_t hdr_size, GElf_Addr hdr_vaddr, in parse_eh_frame_hdr() argument 81 if (hdr_size < 4 || *h++ != 1) /* version */ in parse_eh_frame_hdr() 94 .d = { .d_buf = (void *) hdr, .d_size = hdr_size } in parse_eh_frame_hdr()
|
/third_party/skia/third_party/externals/libwebp/src/mux/ |
D | muxread.c | 114 const size_t hdr_size = ANMF_CHUNK_SIZE; in MuxImageParse() local 115 const WebPData temp = { bytes, hdr_size }; in MuxImageParse() 118 if (size < hdr_size) goto Fail; in MuxImageParse()
|
/third_party/libcoap/include/coap3/ |
D | coap_pdu_internal.h | 126 uint8_t hdr_size; /**< actual size used for protocol-specific member
|
/third_party/alsa-utils/aplay/ |
D | formats.h | 127 u_int hdr_size; /* size of header (min 24) */ member
|
/third_party/ntfs-3g/ntfsprogs/ |
D | mkntfs.c | 1436 u16 hdr_size; in insert_positioned_attr_in_mft_record() local 1487 hdr_size = 72; in insert_positioned_attr_in_mft_record() 1495 hdr_size = 64; in insert_positioned_attr_in_mft_record() 1509 asize = (((int)hdr_size + ((name_len + 7) & ~7) + mpa_size) + 7) & ~7; in insert_positioned_attr_in_mft_record() 1551 a->name_offset = cpu_to_le16(hdr_size); in insert_positioned_attr_in_mft_record() 1558 a->mapping_pairs_offset = cpu_to_le16(hdr_size + ((name_len + 7) & ~7)); in insert_positioned_attr_in_mft_record() 1564 memcpy((char*)a + hdr_size, uname, name_len << 1); in insert_positioned_attr_in_mft_record() 1594 err = ntfs_mapping_pairs_build(g_vol, (u8*)a + hdr_size + in insert_positioned_attr_in_mft_record() 1627 u16 hdr_size; in insert_non_resident_attr_in_mft_record() local 1689 hdr_size = 72; in insert_non_resident_attr_in_mft_record() [all …]
|
/third_party/python/Lib/ |
D | sndhdr.py | 104 hdr_size = func(h[4:8])
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | vp8l_enc.c | 1102 size_t init_byte_position, int* const hdr_size, int* const data_size) { in EncodeImageInternal() argument 1126 assert(hdr_size != NULL); in EncodeImageInternal() 1266 *hdr_size = hdr_size_tmp; in EncodeImageInternal() 1268 (int)(VP8LBitWriterNumBytes(bw) - init_byte_position - *hdr_size); in EncodeImageInternal() 1743 int hdr_size = 0; in EncodeStreamHook() local 1858 byte_position, &hdr_size, &data_size); in EncodeStreamHook() 1879 stats->lossless_hdr_size = hdr_size; in EncodeStreamHook()
|
/third_party/skia/third_party/externals/freetype/src/cff/ |
D | cffload.c | 253 idx->hdr_size = 5; in cff_index_init() 259 idx->hdr_size = 3; in cff_index_init() 283 idx->data_offset = idx->start + idx->hdr_size + size; in cff_index_init() 360 FT_STREAM_SEEK( idx->start + idx->hdr_size ) || in cff_index_load_offsets() 525 if ( FT_STREAM_SEEK( idx->start + idx->hdr_size + pos ) ) in cff_index_access_element()
|
/third_party/skia/third_party/externals/freetype/include/freetype/internal/ |
D | cfftypes.h | 72 FT_UInt hdr_size; member
|