Home
last modified time | relevance | path

Searched refs:pkt_size (Results 1 - 25 of 43) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
H A Dmsp2dec.c57 unsigned int pkt_size = bytestream2_get_le16(&idx); in msp2_decode_frame() local
58 if (!pkt_size) { in msp2_decode_frame()
63 if (pkt_size > buf_size) { in msp2_decode_frame()
65 pkt_size = buf_size; in msp2_decode_frame()
68 bytestream2_init(&gb, buf, pkt_size); in msp2_decode_frame()
87 buf += pkt_size; in msp2_decode_frame()
88 buf_size -= pkt_size; in msp2_decode_frame()
H A Dvbnenc.c51 int64_t pkt_size; in vbn_encode() local
91 pkt_size = VBN_HEADER_SIZE + linesize * frame->height; in vbn_encode()
92 if (pkt_size > INT_MAX) in vbn_encode()
95 if ((ret = ff_get_encode_buffer(avctx, pkt, pkt_size, 0)) < 0) in vbn_encode()
99 bytestream2_init_writer(pb, pkt->data, pkt_size); in vbn_encode()
109 bytestream2_put_le32u(pb, pkt_size - VBN_HEADER_SIZE); in vbn_encode()
111 bytestream2_put_le32u(pb, pkt_size - VBN_HEADER_SIZE); in vbn_encode()
H A Dpcm-blurayenc.c115 unsigned pkt_size; in pcm_bluray_encode_frame() local
124 pkt_size = sample_size * samples + 4; in pcm_bluray_encode_frame()
126 if ((ret = ff_get_encode_buffer(avctx, avpkt, pkt_size, 0)) < 0) in pcm_bluray_encode_frame()
129 AV_WB16(avpkt->data, pkt_size - 4); in pcm_bluray_encode_frame()
H A Dttaenc.c93 int64_t pkt_size = frame->nb_samples * 2LL * avctx->ch_layout.nb_channels * s->bps; in tta_encode_frame() local
97 if ((ret = ff_alloc_packet(avctx, avpkt, pkt_size)) < 0) in tta_encode_frame()
157 if (pkt_size < INT_MAX/2) { in tta_encode_frame()
158 pkt_size *= 2; in tta_encode_frame()
H A Dpcm-dvdenc.c120 int64_t pkt_size = (int64_t)(frame->nb_samples / s->samples_per_block) * s->block_size + 3; in pcm_dvd_encode_frame() local
121 int blocks = (pkt_size - 3) / s->block_size; in pcm_dvd_encode_frame()
127 if ((ret = ff_get_encode_buffer(avctx, avpkt, pkt_size, 0)) < 0) in pcm_dvd_encode_frame()
H A Daudiotoolboxenc.c50 unsigned pkt_size; member
100 &size, &at->pkt_size); in ffat_update_ctx()
102 if (at->pkt_size <= 0) in ffat_update_ctx()
103 at->pkt_size = 1024 * 50; in ffat_update_ctx()
126 at->pkt_size *= 1024; in ffat_update_ctx()
505 .mDataByteSize = at->pkt_size, in ffat_encode()
536 if ((ret = ff_alloc_packet(avctx, avpkt, at->pkt_size)) < 0) in ffat_encode()
H A Dadpcmenc.c602 int st, pkt_size, ret; in adpcm_encode_frame() local
617 pkt_size = (frame->nb_samples * channels) / 2; in adpcm_encode_frame()
619 pkt_size = avctx->block_align; in adpcm_encode_frame()
620 if ((ret = ff_get_encode_buffer(avctx, avpkt, pkt_size, 0)) < 0) in adpcm_encode_frame()
672 init_put_bits(&pb, dst, pkt_size); in adpcm_encode_frame()
700 init_put_bits(&pb, dst, pkt_size); in adpcm_encode_frame()
714 init_put_bits(&pb, dst, pkt_size); in adpcm_encode_frame()
731 init_put_bits(&pb, dst, pkt_size); in adpcm_encode_frame()
852 init_put_bits(&pb, dst, pkt_size); in adpcm_encode_frame()
902 init_put_bits(&pb, dst, pkt_size); in adpcm_encode_frame()
[all...]
H A Dlibuavs3d.c83 frm->pkt_size = dec_frame->pkt_size; in uavs3d_output_callback()
175 frm_dec->pkt_size = avpkt->size; in libuavs3d_decode_frame()
H A Dzmbvenc.c178 int work_size = 0, pkt_size; in encode_frame() local
280 pkt_size = zstream->total_out + 1 + 6 * keyframe; in encode_frame()
281 if ((ret = ff_get_encode_buffer(avctx, pkt, pkt_size, 0)) < 0) in encode_frame()
H A Dproresenc_kostya.c995 int pkt_size, ret; in encode_frame() local
1000 pkt_size = ctx->frame_size_upper_bound; in encode_frame()
1002 if ((ret = ff_alloc_packet(avctx, pkt, pkt_size + AV_INPUT_BUFFER_MIN_SIZE)) < 0) in encode_frame()
1078 if (pkt_size <= buf - orig_buf + 2 * max_slice_size) { in encode_frame()
1084 max_slice_size - pkt_size; in encode_frame()
1094 pkt_size, delta, max_slice_size); in encode_frame()
1102 pkt_size += delta; in encode_frame()
1111 init_put_bits(&pb, buf, (pkt_size - (buf - orig_buf))); in encode_frame()
/third_party/ffmpeg/libavformat/
H A Dbinka.c67 int pkt_size; in binka_read_packet() local
75 pkt_size = avio_rl16(pb) + 4; in binka_read_packet()
76 if (pkt_size <= 4) in binka_read_packet()
78 ret = av_new_packet(pkt, pkt_size); in binka_read_packet()
82 avio_read(pb, pkt->data + 4, pkt_size - 4); in binka_read_packet()
83 AV_WL32(pkt->data, pkt_size); in binka_read_packet()
H A Dqcp.c153 int pkt_size, ret, mode = avio_r8(pb); in qcp_read_packet() local
156 pkt_size = s->packet_size - 1; in qcp_read_packet()
157 } else if (mode > QCP_MAX_MODE || (pkt_size = c->rates_per_mode[mode]) < 0) { in qcp_read_packet()
162 if (c->data_size <= pkt_size) { in qcp_read_packet()
164 pkt_size = c->data_size - 1; in qcp_read_packet()
167 if ((ret = av_get_packet(pb, pkt, pkt_size)) >= 0) { in qcp_read_packet()
168 if (pkt_size != ret) in qcp_read_packet()
171 c->data_size -= pkt_size + 1; in qcp_read_packet()
H A Dcafdec.c424 int res, pkt_size = 0, pkt_frames = 0; in read_packet() local
440 pkt_size = caf->bytes_per_packet; in read_packet()
442 if (pkt_size > 0 && pkt_frames == 1) { in read_packet()
443 pkt_size = (CAF_MAX_PKT_SIZE / pkt_size) * pkt_size; in read_packet()
444 pkt_size = FFMIN(pkt_size, left); in read_packet()
445 pkt_frames = pkt_size / caf->bytes_per_packet; in read_packet()
448 pkt_size in read_packet()
[all...]
H A Ddsicin.c171 int64_t pkt_size; in cin_read_packet() local
187 pkt_size = (palette_type + 3LL) * hdr->pal_colors_count + hdr->video_frame_size; in cin_read_packet()
188 if (pkt_size + 4 > INT_MAX) in cin_read_packet()
191 pkt_size = ffio_limit(pb, pkt_size); in cin_read_packet()
193 ret = av_new_packet(pkt, 4 + pkt_size); in cin_read_packet()
205 ret = avio_read(pb, &pkt->data[4], pkt_size); in cin_read_packet()
209 if (ret < pkt_size) in cin_read_packet()
H A Dluodatdec.c60 int index, ret, key, stream_id, stream_index, width, height, fps, pkt_size; in dat_read_packet() local
78 pkt_size = avio_rl32(pb); in dat_read_packet()
81 if (pkt_size == 0) in dat_read_packet()
106 ret = av_get_packet(pb, pkt, pkt_size); in dat_read_packet()
H A Dlibzmq.c35 int pkt_size; member
43 { "pkt_size", "Maximum send/read packet size", OFFSET(pkt_size), AV_OPT_TYPE_INT, { .i64 = 131072 }, -1, INT_MAX, .flags = D | E },
87 if (s->pkt_size > 0) in zmq_proto_open()
88 h->max_packet_size = s->pkt_size; in zmq_proto_open()
174 av_log(h, AV_LOG_WARNING, "Message exceeds available space in the buffer. Message will be truncated. Setting -pkt_size %d may resolve the issue.\n", s->pkt_size_overflow); in zmq_proto_read()
H A Dmoflex.c284 int stream_index, bits, pkt_size, endframe; in moflex_read_packet() local
316 pkt_size = pop_int(br, pb, 13) + 1; in moflex_read_packet()
317 if (pkt_size > m->size) in moflex_read_packet()
321 avio_skip(pb, pkt_size); in moflex_read_packet()
325 ret = av_append_packet(pb, packet, pkt_size); in moflex_read_packet()
H A Dlibamqp.c39 int pkt_size; member
52 { "pkt_size", "Maximum send/read packet size", OFFSET(pkt_size), AV_OPT_TYPE_INT, { .i64 = 131072 }, 4096, INT_MAX, .flags = D | E },
76 h->max_packet_size = s->pkt_size; in amqp_proto_open()
158 broker_reply = amqp_login(s->conn, vhost_decoded, 0, s->pkt_size, 0, in amqp_proto_open()
286 "Message will be truncated. Setting -pkt_size %d " in amqp_proto_read()
H A Dspdifenc.c179 int pkt_size = pkt->size; in spdif_header_dts4() local
214 if (sizeof(dtshd_start_code) + 2 + pkt_size in spdif_header_dts4()
227 pkt_size = core_size; in spdif_header_dts4()
232 ctx->out_bytes = sizeof(dtshd_start_code) + 2 + pkt_size; in spdif_header_dts4()
245 AV_WB16(ctx->hd_buf[0] + sizeof(dtshd_start_code), pkt_size); in spdif_header_dts4()
246 memcpy(ctx->hd_buf[0] + sizeof(dtshd_start_code) + 2, pkt->data, pkt_size); in spdif_header_dts4()
H A Dtmv.c152 int ret, pkt_size = tmv->stream_index ? in tmv_read_packet() local
158 ret = av_get_packet(pb, pkt, pkt_size); in tmv_read_packet()
H A Drtpproto.c58 int pkt_size; member
78 { "pkt_size", "Maximum packet size", OFFSET(pkt_size), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, .flags = D|E },
190 if (s->pkt_size >= 0) in build_udp_url()
191 url_add_option(buf, buf_size, "pkt_size=%d", s->pkt_size); in build_udp_url()
211 * 'pkt_size=n' : set max packet size
263 if (av_find_info_tag(buf, sizeof(buf), "pkt_size", p)) { in rtp_open()
264 s->pkt_size = strtol(buf, NULL, 10); in rtp_open()
H A Dmatroskadec.c1658 int pkt_size = isize; in matroska_decode_buffer() local
1664 if (pkt_size >= 10000000U) in matroska_decode_buffer()
1681 pkt_size = isize + header_size; in matroska_decode_buffer()
1682 pkt_data = av_malloc(pkt_size + AV_INPUT_BUFFER_PADDING_SIZE); in matroska_decode_buffer()
1694 olen = pkt_size *= 3; in matroska_decode_buffer()
1695 newpktdata = av_realloc(pkt_data, pkt_size + AV_LZO_OUTPUT_PADDING in matroska_decode_buffer()
1703 } while (result == AV_LZO_OUTPUT_FULL && pkt_size < 10000000); in matroska_decode_buffer()
1708 pkt_size -= olen; in matroska_decode_buffer()
1715 if (!pkt_size || inflateInit(&zstream) != Z_OK) in matroska_decode_buffer()
1720 pkt_size * in matroska_decode_buffer()
3587 matroska_parse_frame(MatroskaDemuxContext *matroska, MatroskaTrack *track, AVStream *st, AVBufferRef *buf, uint8_t *data, int pkt_size, uint64_t timecode, uint64_t lace_duration, int64_t pos, int is_keyframe, uint8_t *additional, uint64_t additional_id, int additional_size, int64_t discard_padding) matroska_parse_frame() argument
[all...]
/third_party/ltp/testcases/network/stress/ns-tools/
H A Dns-icmpv4_sender.c65 unsigned short int pkt_size; member
356 unsigned short int pkt_size; in create_clean_packet() local
359 pkt_size = sizeof(struct iphdr) /* IP header */ in create_clean_packet()
369 pkt.hdr.tot_len = htons(pkt_size); in create_clean_packet()
397 fake_p->pkt_size = pkt_size; in create_clean_packet()
582 retval = sendto(sock_fd, &pkt, fake_p->pkt_size, 0, in send_packets()
H A Dns-icmpv6_sender.c65 unsigned short int pkt_size; member
344 info_p->pkt_size = sizeof(struct ip6_hdr) + ip6_psize; in create_mld_query()
408 info_p->pkt_size = sizeof(struct ip6_hdr) + ip6_psize; in create_echo_request()
752 retval = sendto(sock_fd, &pkt, info_p->pkt_size, 0, in send_packets()
/third_party/ffmpeg/libavdevice/
H A Djack.c133 int test, pkt_size = self->buffer_size * self->nports * sizeof(float); in supply_new_packets() local
139 if ((test = av_new_packet(&pkt, pkt_size)) < 0) { in supply_new_packets()
140 av_log(context, AV_LOG_ERROR, "Could not create packet of size %d\n", pkt_size); in supply_new_packets()

Completed in 22 milliseconds

12