/third_party/ffmpeg/libavcodec/ |
D | xiph.c | 26 int header_len[3]) in avpriv_split_xiph_headers() 33 header_len[i] = AV_RB16(extradata); in avpriv_split_xiph_headers() 36 extradata += header_len[i]; in avpriv_split_xiph_headers() 37 if (overall_len > extradata_size - header_len[i]) in avpriv_split_xiph_headers() 39 overall_len += header_len[i]; in avpriv_split_xiph_headers() 45 header_len[i] = 0; in avpriv_split_xiph_headers() 47 header_len[i] += 0xff; in avpriv_split_xiph_headers() 50 header_len[i] += *extradata; in avpriv_split_xiph_headers() 55 header_len[2] = extradata_size - overall_len; in avpriv_split_xiph_headers() 57 header_start[1] = header_start[0] + header_len[0]; in avpriv_split_xiph_headers() [all …]
|
D | opus_parser.c | 84 const uint8_t *buf, int buf_size, int *header_len) in opus_find_frame_end() argument 92 *header_len = 0; in opus_find_frame_end() 117 *header_len = payload - buf; in opus_find_frame_end() 150 if (payload_len + *header_len <= buf_size) { in opus_find_frame_end() 153 return payload_len + *header_len; in opus_find_frame_end() 171 int next, header_len; in opus_parse() local 173 next = opus_find_frame_end(ctx, avctx, buf, buf_size, &header_len); in opus_parse() 188 *poutbuf = buf + header_len; in opus_parse() 189 *poutbuf_size = buf_size - header_len; in opus_parse()
|
D | vorbis_parser.c | 188 int header_len[3]; in vorbis_parse_init() local 196 header_start, header_len)) < 0) { in vorbis_parse_init() 201 if ((ret = parse_id_header(s, header_start[0], header_len[0])) < 0) in vorbis_parse_init() 204 if ((ret = parse_setup_header(s, header_start[2], header_len[2])) < 0) in vorbis_parse_init()
|
D | brenderpix.c | 115 unsigned int header_len = bytestream2_get_be32(pgb); in pix_decode_header() local 123 if (header_len < 11) in pix_decode_header() 127 bytestream2_skip(pgb, header_len - 7); in pix_decode_header()
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtph263depay.c | 218 guint header_len; in gst_rtp_h263_depay_process() local 254 header_len = GST_RFC2190A_HEADER_LEN; in gst_rtp_h263_depay_process() 263 if (payload_len <= header_len) in gst_rtp_h263_depay_process() 270 header_len = GST_RFC2190B_HEADER_LEN; in gst_rtp_h263_depay_process() 281 if (payload_len <= header_len) in gst_rtp_h263_depay_process() 287 header_len = GST_RFC2190C_HEADER_LEN; in gst_rtp_h263_depay_process() 300 if (payload_len <= header_len) in gst_rtp_h263_depay_process() 309 payload_len, header_len, rtph263depay->leftover); in gst_rtp_h263_depay_process() 312 payload += header_len; in gst_rtp_h263_depay_process() 313 payload_len -= header_len; in gst_rtp_h263_depay_process() [all …]
|
D | gstrtph263pdepay.c | 338 guint header_len; in gst_rtp_h263p_depay_process() local 351 header_len = 2; in gst_rtp_h263p_depay_process() 353 if (payload_len < header_len) in gst_rtp_h263p_depay_process() 375 header_len++; in gst_rtp_h263p_depay_process() 378 header_len += PLEN; in gst_rtp_h263p_depay_process() 381 if ((!P && payload_len < header_len) || (P && payload_len < header_len - 2)) in gst_rtp_h263p_depay_process() 386 header_len -= 2; in gst_rtp_h263p_depay_process() 392 if (payload_len < header_len) in gst_rtp_h263p_depay_process() 398 payload_len -= header_len; in gst_rtp_h263p_depay_process() 409 gst_rtp_buffer_get_payload_subbuffer (rtp, header_len, payload_len); in gst_rtp_h263p_depay_process() [all …]
|
D | gstrtph261depay.c | 92 const guint header_len = GST_RTP_H261_PAYLOAD_HEADER_LEN; in gst_rtp_h261_depay_process() local 110 if (payload_len < header_len + 1) { in gst_rtp_h261_depay_process() 120 payload_len, header_len, header->sbit, header->ebit, marker); in gst_rtp_h261_depay_process() 122 payload += header_len; in gst_rtp_h261_depay_process() 123 payload_len -= header_len; in gst_rtp_h261_depay_process() 151 gst_rtp_buffer_get_payload_subbuffer (rtp, header_len, payload_len)); in gst_rtp_h261_depay_process() 156 gst_rtp_buffer_get_payload_subbuffer (rtp, header_len, in gst_rtp_h261_depay_process()
|
D | gstrtpmp4apay.c | 387 guint header_len; in gst_rtp_mp4a_pay_handle_buffer() local 391 header_len = 0; in gst_rtp_mp4a_pay_handle_buffer() 397 header_len++; in gst_rtp_mp4a_pay_handle_buffer() 400 header_len++; in gst_rtp_mp4a_pay_handle_buffer() 403 packet_len = gst_rtp_buffer_calc_packet_len (header_len + size, 0, 0); in gst_rtp_mp4a_pay_handle_buffer() 406 payload_len -= header_len; in gst_rtp_mp4a_pay_handle_buffer() 410 ", header_len %d, packet_len %d, payload_len %d", size, header_len, in gst_rtp_mp4a_pay_handle_buffer() 415 header_len, 0, 0); in gst_rtp_mp4a_pay_handle_buffer()
|
D | gstrtpjpegdepay.c | 499 gint payload_len, header_len; in gst_rtp_jpeg_depay_process() local 521 header_len = 0; in gst_rtp_jpeg_depay_process() 558 header_len += 8; in gst_rtp_jpeg_depay_process() 578 header_len += 4; in gst_rtp_jpeg_depay_process() 605 header_len += 4; in gst_rtp_jpeg_depay_process() 617 header_len += length; in gst_rtp_jpeg_depay_process() 687 GST_DEBUG_OBJECT (rtpjpegdepay, "pushing data at offset %d", header_len); in gst_rtp_jpeg_depay_process() 688 outbuf = gst_rtp_buffer_get_payload_subbuffer (rtp, header_len, -1); in gst_rtp_jpeg_depay_process()
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | rtph261.c | 51 const gint header_len = 4; in create_h261_payload() local 60 memcpy (data, &header, header_len); in create_h261_payload() 64 data[header_len + 0] = (word >> 24) & 0xff; in create_h261_payload() 65 data[header_len + 1] = (word >> 16) & 0xff; in create_h261_payload() 66 data[header_len + 2] = (word >> 8) & 0xff; in create_h261_payload() 67 data[header_len + 3] = (word >> 0) & 0xff; in create_h261_payload()
|
D | rtpvp8.c | 442 const gint header_len = 12 + 5; /* RTP + VP8 payload header */ in GST_START_TEST() local 459 const gint expected = MIN (output_bytes_left, 28 - header_len); in GST_START_TEST() 460 const gint packet_len = header_len + expected; in GST_START_TEST() 480 const gint expected = MIN (output_bytes_left, 28 - header_len); in GST_START_TEST() 481 const gint packet_len = header_len + expected; in GST_START_TEST() 501 const gint expected = MIN (output_bytes_left, 28 - header_len); in GST_START_TEST() 502 const gint packet_len = header_len + expected; in GST_START_TEST()
|
/third_party/boost/libs/spirit/classic/example/intermediate/ |
D | ipv4.cpp | 137 char packet_len, header_len; member 142 : packet_len(0),header_len(0){} in ipv4_data() 160 anychar_p[var(self.data.header_len) = arg1] in definition() 161 >> for_p(var(i) = 0, var(i) < var(self.data.header_len), ++var(i)) in definition() 249 cout << "header length = " << as_byte(data.header_len) << endl; in parse_ipv4()
|
D | ipv4_opt.cpp | 49 char packet_len, header_len; member 54 : packet_len(0),header_len(0){} in ipv4_data() 72 anychar_p[var(data.header_len) = arg1] in ipv4() 73 >> for_p(var(i) = 0, var(i) < var(data.header_len), ++var(i)) in ipv4() 158 cout << "header length = " << as_byte(data.header_len) << endl; in parse_ipv4()
|
/third_party/gstreamer/gstplugins_bad/sys/dvb/ |
D | camswclient.c | 129 guint header_len; in send_ca_pmt() local 134 header_len = 3 + length_field_len; in send_ca_pmt() 135 buffer_size = header_len + ca_pmt_size; in send_ca_pmt() 138 memcpy (buffer + header_len, ca_pmt, ca_pmt_size); in send_ca_pmt()
|
/third_party/ffmpeg/libavformat/ |
D | oggenc.c | 52 int header_len[3]; member 275 int *header_len, AVDictionary **m, int framing_bit, in ogg_write_vorbiscomment() argument 297 *header_len = size; in ogg_write_vorbiscomment() 311 oggstream->header_len[0] = 51; in ogg_build_flac_headers() 327 p = ogg_write_vorbiscomment(4, bitexact, &oggstream->header_len[1], m, 0, NULL, 0); in ogg_build_flac_headers() 332 bytestream_put_be24(&p, oggstream->header_len[1] - 4); in ogg_build_flac_headers() 353 oggstream->header_len[0] = SPEEX_HEADER_SIZE; in ogg_build_speex_headers() 358 p = ogg_write_vorbiscomment(0, bitexact, &oggstream->header_len[1], m, 0, NULL, 0); in ogg_build_speex_headers() 383 oggstream->header_len[0] = par->extradata_size; in ogg_build_opus_headers() 387 … p = ogg_write_vorbiscomment(8, bitexact, &oggstream->header_len[1], m, 0, chapters, nb_chapters); in ogg_build_opus_headers() [all …]
|
D | mpeg.c | 233 int len, size, startcode, c, flags, header_len; in mpegps_read_pes_header() local 386 header_len = avio_r8(s->pb); in mpegps_read_pes_header() 388 if (header_len > len) in mpegps_read_pes_header() 390 len -= header_len; in mpegps_read_pes_header() 393 header_len -= 5; in mpegps_read_pes_header() 396 header_len -= 5; in mpegps_read_pes_header() 399 if (flags & 0x3f && header_len == 0) { in mpegps_read_pes_header() 405 header_len--; in mpegps_read_pes_header() 410 if (pes_ext & 0x40 || skip > header_len) { in mpegps_read_pes_header() 415 header_len -= skip; in mpegps_read_pes_header() [all …]
|
D | nutenc.c | 114 if (len == nut->header_len[i] && !memcmp(out, nut->header[i], len)) { in find_header_idx() 139 nut->header_len[i] = headers[i - 1][0]; in build_elision_headers() 421 put_v(bc, nut->header_len[i]); in write_mainheader() 422 avio_write(bc, nut->header[i], nut->header_len[i]); in write_mainheader() 802 if (pkt->size < nut->header_len[fc->header_idx] || in get_needed_flags() 805 nut->header_len[fc->header_idx])) in get_needed_flags() 821 if (pkt->size >= nut->header_len[i] in find_best_header_idx() 822 && nut->header_len[i] > best_len in find_best_header_idx() 823 && !memcmp(pkt->data, nut->header[i], nut->header_len[i])) { in find_best_header_idx() 825 best_len = nut->header_len[i]; in find_best_header_idx() [all …]
|
D | sdp.c | 353 int headers_len, header_len[3], config_len; in xiph_extradata2config() local 370 header_len) < 0) { in xiph_extradata2config() 375 headers_len = header_len[0] + header_len[2]; in xiph_extradata2config() 401 config[10] = header_len[0]; in xiph_extradata2config() 403 memcpy(config + 12, header_start[0], header_len[0]); in xiph_extradata2config() 404 memcpy(config + 12 + header_len[0], header_start[2], header_len[2]); in xiph_extradata2config()
|
D | mpegenc.c | 637 int size, payload_size, startcode, id, stuffing_size, i, header_len; in flush_packet() local 752 header_len = 3; in flush_packet() 754 header_len += 3; /* PES extension */ in flush_packet() 755 header_len += 1; /* obligatory stuffing byte */ in flush_packet() 757 header_len = 0; in flush_packet() 761 header_len += 5 + 5; in flush_packet() 763 header_len += 5; in flush_packet() 766 header_len++; in flush_packet() 769 payload_size = packet_size - header_len; in flush_packet() 793 header_len -= timestamp_len; in flush_packet() [all …]
|
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/ |
D | npy_header.cc | 123 const size_t header_len = header_str.length(); in GenerateNpyHeader() local 127 size_t total_len = kMagicLen + version_len + length_len + header_len + 1; in GenerateNpyHeader() 131 total_len = kMagicLen + version_len + length_len + header_len + 1; in GenerateNpyHeader() 135 const size_t padding_header_len = header_len + pad_len + 1; in GenerateNpyHeader()
|
/third_party/python/PC/ |
D | launcher.c | 1310 int header_len; in maybe_handle_shebang() local 1360 header_len = (int) (p - start); in maybe_handle_shebang() 1365 start, header_len, shebang_line, in maybe_handle_shebang() 1369 if (header_len % 2 != 0) { in maybe_handle_shebang() 1371 of bytes: %d\n", header_len); in maybe_handle_shebang() 1375 for (i = header_len; i > 0; i -= 2) { in maybe_handle_shebang() 1379 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang() 1383 if ((header_len % 2) != 0) { in maybe_handle_shebang() 1385 header_len); in maybe_handle_shebang() 1390 memcpy(shebang_line, start, header_len); in maybe_handle_shebang() [all …]
|
/third_party/gettext/gettext-tools/libgettextpo/ |
D | gettext-po.c | 382 size_t header_len = strlen (header); in po_header_set_field() local 408 header_part3_len = header + header_len - oldvalue_end; in po_header_set_field() 433 newline = (header_len > 0 && header[header_len - 1] != '\n' ? 1 : 0); in po_header_set_field() 434 result_len = header_len + newline + field_len + 2 + value_len + 1; in po_header_set_field() 436 memcpy (result, header, header_len); in po_header_set_field() 438 *(result + header_len) = '\n'; in po_header_set_field() 439 memcpy (result + header_len + newline, field, field_len); in po_header_set_field() 440 *(result + header_len + newline + field_len) = ':'; in po_header_set_field() 441 *(result + header_len + newline + field_len + 1) = ' '; in po_header_set_field() 442 memcpy (result + header_len + newline + field_len + 2, value, value_len); in po_header_set_field() [all …]
|
/third_party/mbedtls/library/ |
D | ssl_cli.c | 3483 size_t header_len; in ssl_write_client_key_exchange() local 3499 header_len = 6; in ssl_write_client_key_exchange() 3503 &ssl->out_msg[header_len], content_len, in ssl_write_client_key_exchange() 3544 header_len = 4; in ssl_write_client_key_exchange() 3588 ssl->out_msg[header_len] = (unsigned char) own_pubkey_ecpoint_len; in ssl_write_client_key_exchange() 3589 memcpy( ssl->out_msg + header_len + 1, in ssl_write_client_key_exchange() 3627 header_len = 4; in ssl_write_client_key_exchange() 3641 &ssl->out_msg[header_len], 1000, in ssl_write_client_key_exchange() 3703 header_len = 4; in ssl_write_client_key_exchange() 3706 if( header_len + 2 + content_len > MBEDTLS_SSL_OUT_CONTENT_LEN ) in ssl_write_client_key_exchange() [all …]
|
/third_party/libusb/libusb/ |
D | core.c | 2568 int global_debug, header_len, text_len; in log_v() local 2621 header_len = snprintf(buf, sizeof(buf), in log_v() 2625 header_len = snprintf(buf, sizeof(buf), in log_v() 2629 if (header_len < 0 || header_len >= (int)sizeof(buf)) { in log_v() 2632 header_len = 0; in log_v() 2635 text_len = vsnprintf(buf + header_len, sizeof(buf) - (size_t)header_len, in log_v() 2637 if (text_len < 0 || text_len + header_len >= (int)sizeof(buf)) { in log_v() 2640 text_len = (int)sizeof(buf) - header_len; in log_v() 2642 if (header_len + text_len + (int)sizeof(USBI_LOG_LINE_END) >= (int)sizeof(buf)) { in log_v() 2644 text_len -= (header_len + text_len + (int)sizeof(USBI_LOG_LINE_END)) - (int)sizeof(buf); in log_v() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtp/ |
D | gstrtpbuffer.c | 321 guint header_len; in gst_rtp_buffer_map() local 345 header_len = GST_RTP_HEADER_LEN; in gst_rtp_buffer_map() 346 if (G_UNLIKELY (size < header_len)) in gst_rtp_buffer_map() 363 header_len += csrc_count * sizeof (guint32); in gst_rtp_buffer_map() 365 rtp->size[0] = header_len; in gst_rtp_buffer_map() 376 if (!gst_buffer_find_memory (buffer, header_len, 4, &idx, &length, &skip)) in gst_rtp_buffer_map() 397 header_len += rtp->size[1]; in gst_rtp_buffer_map() 426 if (G_UNLIKELY (bufsize < padding + header_len)) in gst_rtp_buffer_map() 434 rtp->data[2] = rtp->map[0].data + header_len; in gst_rtp_buffer_map() 435 rtp->size[2] = bufsize - header_len - padding; in gst_rtp_buffer_map() [all …]
|