/third_party/ffmpeg/libavformat/ |
D | lmlm4.c | 41 unsigned int frame_type, packet_size; in lmlm4_probe() local 44 packet_size = AV_RB32(buf + 4); in lmlm4_probe() 46 if (!AV_RB16(buf) && frame_type <= LMLM4_MPEG1L2 && packet_size && in lmlm4_probe() 47 frame_type != LMLM4_INVALID && packet_size <= LMLM4_MAX_PACKET_SIZE) { in lmlm4_probe() 87 unsigned int frame_type, packet_size, padding, frame_size; in lmlm4_read_packet() local 91 packet_size = avio_rb32(pb); in lmlm4_read_packet() 92 padding = -packet_size & 511; in lmlm4_read_packet() 93 frame_size = packet_size - 8; in lmlm4_read_packet() 99 if (packet_size > LMLM4_MAX_PACKET_SIZE || packet_size<=8) { in lmlm4_read_packet() 100 av_log(s, AV_LOG_ERROR, "packet size %d is invalid\n", packet_size); in lmlm4_read_packet()
|
D | oggparsespeex.c | 33 int packet_size; member 79 spxp->packet_size = AV_RL32(p + 56); in speex_header() 81 if (spxp->packet_size < 0 || in speex_header() 83 spxp->packet_size * (int64_t)frames_per_packet > INT32_MAX / 256) { in speex_header() 84 … AV_LOG_ERROR, "invalid packet_size, frames_per_packet %d %d\n", spxp->packet_size, frames_per_pac… in speex_header() 85 spxp->packet_size = 0; in speex_header() 89 spxp->packet_size *= frames_per_packet; in speex_header() 118 int packet_size = spxp->packet_size; in speex_packet() local 126 packet_size * (ogg_page_packets(os) - 1); in speex_packet() 131 os->lastpts = os->lastdts = os->granule - packet_size * in speex_packet() [all …]
|
D | rawvideodec.c | 46 int packet_size; in rawvideo_read_header() local 98 packet_size = s->width * s->height * pgroup / xinc; in rawvideo_read_header() 104 packet_size = GET_PACKET_SIZE(s->width, s->height); in rawvideo_read_header() 106 packet_size = av_image_get_buffer_size(pix_fmt, s->width, s->height, 1); in rawvideo_read_header() 107 if (packet_size < 0) in rawvideo_read_header() 108 return packet_size; in rawvideo_read_header() 110 if (packet_size == 0) in rawvideo_read_header() 114 ctx->packet_size = packet_size; in rawvideo_read_header() 115 st->codecpar->bit_rate = av_rescale_q(ctx->packet_size, in rawvideo_read_header() 126 ret = av_get_packet(s->pb, pkt, s->packet_size); in rawvideo_read_packet() [all …]
|
D | serdec.c | 51 int packet_size; in ser_read_header() local 90 packet_size = av_image_get_buffer_size(st->codecpar->format, ser->width, ser->height, 1); in ser_read_header() 91 if (packet_size < 0) in ser_read_header() 92 return packet_size; in ser_read_header() 93 ser->end = 178 + st->nb_frames * packet_size; in ser_read_header() 94 s->packet_size = packet_size; in ser_read_header() 95 st->codecpar->bit_rate = av_rescale_q(s->packet_size, in ser_read_header() 112 ret = av_get_packet(s->pb, pkt, s->packet_size); in ser_read_packet() 113 pkt->pts = pkt->dts = (pkt->pos - ffformatcontext(s)->data_offset) / s->packet_size; in ser_read_packet()
|
D | bit.c | 81 int packet_size; in read_packet() local 90 packet_size = avio_rl16(pb) / 8; in read_packet() 91 if(packet_size > MAX_FRAME_SIZE) in read_packet() 94 ret = avio_read(pb, (uint8_t*)buf, (8 * packet_size) * sizeof(uint16_t)); in read_packet() 97 if(ret != 8 * packet_size * sizeof(uint16_t)) in read_packet() 100 if ((ret = av_new_packet(pkt, packet_size)) < 0) in read_packet() 103 init_put_bits(&pbo, pkt->data, packet_size); in read_packet() 104 for(j=0; j < packet_size; j++) in read_packet()
|
D | mspdec.c | 33 int packet_size; member 72 …cntx->packet_size = av_image_get_buffer_size(st->codecpar->format, st->codecpar->width, st->codecp… in msp_read_header() 74 cntx->packet_size = 2 * st->codecpar->height; in msp_read_header() 76 if (cntx->packet_size <= 0) in msp_read_header() 77 return cntx->packet_size < 0 ? cntx->packet_size : AVERROR_INVALIDDATA; in msp_read_header() 88 ret = av_get_packet(s->pb, pkt, cntx->packet_size); in msp_read_packet()
|
D | mpegenc.c | 67 int packet_size; /* required packet size */ member 317 if (ctx->packet_size) { in mpeg_mux_init() 318 if (ctx->packet_size < 20 || ctx->packet_size > (1 << 23) + 10) { in mpeg_mux_init() 320 ctx->packet_size); in mpeg_mux_init() 323 s->packet_size = ctx->packet_size; in mpeg_mux_init() 325 s->packet_size = 2048; in mpeg_mux_init() 542 s->pack_header_freq = 2 * bitrate / s->packet_size / 8; in mpeg_mux_init() 645 int packet_size; in flush_packet() local 677 int PES_bytes_to_fill = s->packet_size - size - 10; in flush_packet() 707 scr += s->packet_size * 90000LL / in flush_packet() [all …]
|
D | iss.c | 39 int packet_size; member 79 if (sscanf(token, "%d", &iss->packet_size) != 1) { in iss_read_header() 100 if (iss->packet_size <= 0) { in iss_read_header() 101 av_log(s, AV_LOG_ERROR, "packet_size %d is invalid\n", iss->packet_size); in iss_read_header() 126 st->codecpar->block_align = iss->packet_size; in iss_read_header() 135 int ret = av_get_packet(s->pb, pkt, iss->packet_size); in iss_read_packet() 137 if(ret != iss->packet_size) in iss_read_packet()
|
D | yuv4mpegdec.c | 255 …s->packet_size = av_image_get_buffer_size(st->codecpar->format, width, height, 1) + Y4M_FRAME_MAGI… in yuv4_read_header() 256 if ((int) s->packet_size < 0) in yuv4_read_header() 257 return s->packet_size; in yuv4_read_header() 260 st->duration = (avio_size(pb) - data_offset) / s->packet_size; in yuv4_read_header() 289 ret = av_get_packet(s->pb, pkt, s->packet_size - Y4M_FRAME_MAGIC_LEN); in yuv4_read_packet() 292 else if (ret != s->packet_size - Y4M_FRAME_MAGIC_LEN) { in yuv4_read_packet() 296 pkt->pts = (off - ffformatcontext(s)->data_offset) / s->packet_size; in yuv4_read_packet() 310 pos = pts * s->packet_size; in yuv4_read_seek()
|
D | dsfdec.c | 174 int64_t packet_size = dsf->audio_size - data_pos; in dsf_read_packet() local 175 int64_t skip_size = dsf->data_size - data_pos - packet_size; in dsf_read_packet() 179 if (packet_size <= 0 || skip_size <= 0) in dsf_read_packet() 182 if ((ret = av_new_packet(pkt, packet_size)) < 0) in dsf_read_packet() 186 ret = avio_read(pb, dst, packet_size / st->codecpar->ch_layout.nb_channels); in dsf_read_packet() 187 if (ret < packet_size / st->codecpar->ch_layout.nb_channels) in dsf_read_packet() 197 pkt->duration = packet_size / channels; in dsf_read_packet()
|
D | frmdec.c | 80 int packet_size, ret; in frm_read_packet() local 85 packet_size = av_image_get_buffer_size(par->format, par->width, par->height, 1); in frm_read_packet() 86 if (packet_size < 0) in frm_read_packet() 89 ret = av_get_packet(avctx->pb, pkt, packet_size); in frm_read_packet()
|
D | asfdec_o.c | 97 uint32_t packet_size; member 574 asf->packet_size = avio_rl32(pb); in asf_read_properties() 892 av_add_index_entry(st, asf->first_packet_offset + asf->packet_size * in asf_read_simple_index() 894 asf->packet_size, 0, AVINDEX_KEYFRAME); in asf_read_simple_index() 1003 if (avio_tell(pb) >= asf->packet_offset + asf->packet_size - asf->pad_len) { in asf_read_subpayload() 1007 if (avio_tell(pb) != asf->packet_offset + asf->packet_size) { in asf_read_subpayload() 1008 if (!asf->packet_size) in asf_read_subpayload() 1012 avio_tell(pb), asf->packet_offset + asf->packet_size); in asf_read_subpayload() 1013 avio_seek(pb, asf->packet_offset + asf->packet_size, SEEK_SET); in asf_read_subpayload() 1075 if (pay_len > asf->packet_size) { in asf_read_multiple_payload() [all …]
|
D | rtpdec_h264.c | 102 int packet_size; in ff_h264_parse_sprop_parameter_sets() local 116 packet_size = av_base64_decode(decoded_packet, base64packet, in ff_h264_parse_sprop_parameter_sets() 118 if (packet_size > 0) { in ff_h264_parse_sprop_parameter_sets() 120 packet_size + sizeof(start_sequence) + in ff_h264_parse_sprop_parameter_sets() 133 decoded_packet, packet_size); in ff_h264_parse_sprop_parameter_sets() 135 packet_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in ff_h264_parse_sprop_parameter_sets() 137 *size_ptr += sizeof(start_sequence) + packet_size; in ff_h264_parse_sprop_parameter_sets()
|
D | xa.c | 105 unsigned int packet_size; in xa_read_packet() local 111 packet_size = 15*st->codecpar->ch_layout.nb_channels; in xa_read_packet() 113 ret = av_get_packet(pb, pkt, packet_size); in xa_read_packet() 118 xa->sent_bytes += packet_size; in xa_read_packet()
|
D | v210.c | 61 ctx->packet_size = GET_PACKET_SIZE(s->width, s->height); in v210_read_header() 62 st->codecpar->bit_rate = av_rescale_q(ctx->packet_size, in v210_read_header() 73 ret = av_get_packet(s->pb, pkt, s->packet_size); in v210_read_packet() 74 pkt->pts = pkt->dts = pkt->pos / s->packet_size; in v210_read_packet()
|
D | qcp.c | 124 s->packet_size = avio_rl16(pb); in qcp_read_header() 155 if (s->packet_size) { in qcp_read_packet() 156 pkt_size = s->packet_size - 1; in qcp_read_packet() 184 s->packet_size = 0; in qcp_read_packet()
|
D | omadec.c | 327 int packet_size = st->codecpar->block_align; in read_packet() local 330 int ret = av_get_packet(s->pb, pkt, packet_size); in read_packet() 332 if (ret < packet_size) in read_packet() 351 if (ret == packet_size) in read_packet() 353 (packet_size >> 3), oc->iv, 1); in read_packet() 365 int packet_size; in aal_read_packet() local 378 packet_size = avio_rb16(s->pb); in aal_read_packet() 382 ret = av_get_packet(s->pb, pkt, packet_size); in aal_read_packet() 383 if (ret < packet_size) in aal_read_packet()
|
D | cafenc.c | 260 int packet_size = samples_per_packet(par); in caf_write_trailer() local 261 if (!packet_size) { in caf_write_trailer() 262 packet_size = st->duration / (caf->packets - 1); in caf_write_trailer() 264 avio_wb32(pb, packet_size); in caf_write_trailer() 270 avio_wb64(pb, caf->packets * packet_size); ///< mNumberValidFrames in caf_write_trailer()
|
D | asfenc.c | 229 int packet_size; member 449 avio_wl32(pb, s->packet_size); /* packet size */ in asf_write_header1() 450 avio_wl32(pb, s->packet_size); /* packet size */ in asf_write_header1() 751 s->packet_size = asf->packet_size; in asf_write_header() 775 ffio_init_context(&asf->pb, asf->packet_buf, s->packet_size, 1, in asf_write_header() 848 put_chunk(s, 0x4424, s->packet_size, 0); in flush_packet() 856 packet_filled_size = asf->packet_size - asf->packet_size_left; in flush_packet() 860 avio_write(s->pb, asf->packet_buf, s->packet_size - packet_hdr_size); in flush_packet() 868 ffio_init_context(&asf->pb, asf->packet_buf, s->packet_size, 1, in flush_packet() 914 const int multi_payload_constant = (asf->packet_size - MULTI_PAYLOAD_HEADERS); in put_frame() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | libopencore-amr.c | 107 int packet_size, ret; in amr_nb_decode_frame() local 118 packet_size = block_size[dec_mode] + 1; in amr_nb_decode_frame() 120 if (packet_size > buf_size) { in amr_nb_decode_frame() 122 buf_size, packet_size); in amr_nb_decode_frame() 127 packet_size, buf[0], buf[1], buf[2], buf[3]); in amr_nb_decode_frame() 133 return packet_size; in amr_nb_decode_frame() 339 int packet_size; in amr_wb_decode_frame() local 348 packet_size = block_size[mode]; in amr_wb_decode_frame() 350 if (packet_size > buf_size) { in amr_wb_decode_frame() 352 buf_size, packet_size + 1); in amr_wb_decode_frame() [all …]
|
D | libopusenc.c | 42 int packet_size; member 290 opus->opts.packet_size = in libopus_encode_init() 475 } else if (frame->nb_samples < opus->opts.packet_size) { in libopus_encode() 484 memset(audio, 0, opus->opts.packet_size * sample_size); in libopus_encode() 495 opus->opts.packet_size, in libopus_encode() 499 opus->opts.packet_size, in libopus_encode() 510 ff_af_queue_remove(&opus->afq, opus->opts.packet_size, in libopus_encode() 513 discard_padding = opus->opts.packet_size - avpkt->duration; in libopus_encode() 515 if ((discard_padding < opus->opts.packet_size) != (avpkt->duration > 0)) { in libopus_encode()
|
D | qoienc.c | 35 int64_t packet_size; in qoi_encode_frame() local 39 packet_size = avctx->width * avctx->height * (channels + 1LL) + 14LL + 8LL; in qoi_encode_frame() 40 if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0) in qoi_encode_frame()
|
/third_party/libsnd/src/ |
D | alac.c | 39 uint32_t packet_size [] ; member 373 return info->packet_size [info->current++] ; in alac_reader_next_packet_size() 406 uint32_t packet_size ; in alac_decode_block() local 409 packet_size = alac_reader_next_packet_size (plac->pakt_info) ; in alac_decode_block() 410 if (packet_size == 0) in alac_decode_block() 418 if (packet_size > sizeof (plac->byte_buffer)) in alac_decode_block() 419 { psf_log_printf (psf, "%s : bad packet_size (%u)\n", __func__, packet_size) ; in alac_decode_block() 423 if ((packet_size != psf_fread (plac->byte_buffer, 1, packet_size, psf))) in alac_decode_block() 426 BitBufferInit (&bit_buffer, plac->byte_buffer, packet_size) ; in alac_decode_block() 428 plac->input_data_pos += packet_size ; in alac_decode_block() [all …]
|
/third_party/python/Tools/ccbench/ |
D | ccbench.py | 398 def bandwidth_client(addr, packet_size, duration): argument 405 _sendto(sock, ("%r#%s\n" % (local_addr, msg)).rjust(packet_size), addr) 414 s = _recv(sock, packet_size) 415 assert len(s) == packet_size 435 packet_size = BANDWIDTH_PACKET_SIZE 473 packet_size=packet_size, 477 s = _recv(sock, packet_size) 489 s = _recv(sock, packet_size)
|
/third_party/mesa3d/src/gallium/drivers/vc4/kernel/ |
D | vc4_validate.c | 745 uint32_t nr_attributes, nr_relocs, packet_size; in validate_gl_shader_rec() local 751 packet_size = gl_shader_rec_size(state->addr); in validate_gl_shader_rec() 764 if (packet_size > exec->shader_rec_size) { in validate_gl_shader_rec() 767 packet_size, exec->shader_rec_size); in validate_gl_shader_rec() 772 memcpy(pkt_v, pkt_u, packet_size); in validate_gl_shader_rec() 773 exec->shader_rec_u += packet_size; in validate_gl_shader_rec() 779 BUG_ON(roundup(packet_size, 16) - packet_size > nr_relocs * 4); in validate_gl_shader_rec() 780 exec->shader_rec_v += roundup(packet_size, 16); in validate_gl_shader_rec() 781 exec->shader_rec_size -= packet_size; in validate_gl_shader_rec()
|