Home
last modified time | relevance | path

Searched refs:frames_per_packet (Results 1 – 14 of 14) sorted by relevance

/third_party/ffmpeg/libavformat/
Doggparsespeex.c62 int frames_per_packet; in speex_header() local
85 frames_per_packet = AV_RL32(p + 64); in speex_header()
87 frames_per_packet < 0 || in speex_header()
88 spxp->packet_size * (int64_t)frames_per_packet > INT32_MAX / 256) { in speex_header()
89 …LOG_ERROR, "invalid packet_size, frames_per_packet %d %d\n", spxp->packet_size, frames_per_packet); in speex_header()
93 if (frames_per_packet) in speex_header()
94 spxp->packet_size *= frames_per_packet; in speex_header()
Dcafdec.c41 int frames_per_packet; ///< frames in a packet, or 0 if variable member
78 caf->frames_per_packet = avio_rb32(pb); in read_desc_chunk()
82 if (caf->bytes_per_packet < 0 || caf->frames_per_packet < 0 || st->codecpar->channels < 0) in read_desc_chunk()
86 if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) { in read_desc_chunk()
88 / (uint64_t)caf->frames_per_packet; in read_desc_chunk()
207 if (caf->bytes_per_packet > 0 && caf->frames_per_packet > 0) { in read_pakt_chunk()
208 st->duration = caf->frames_per_packet * num_packets; in read_pakt_chunk()
219 … st->duration += caf->frames_per_packet ? caf->frames_per_packet : ff_mp4_read_descr_len(pb); in read_pakt_chunk()
342 if (caf->bytes_per_packet > 0 && caf->frames_per_packet > 0) { in read_header()
344 st->nb_frames = (caf->data_size / caf->bytes_per_packet) * caf->frames_per_packet; in read_header()
[all …]
Dcodec2.c43 int frames_per_packet; member
193 if (block_align <= 0 || frame_size <= 0 || c2->frames_per_packet <= 0) { in codec2_read_packet()
198 size = c2->frames_per_packet * block_align; in codec2_read_packet()
266 …offsetof(Codec2Context, frames_per_packet), AV_OPT_TYPE_INT, {.i64 = 1}, 1, INT_MAX, AV_OPT_FLAG_D…
/third_party/ffmpeg/libavcodec/
Dlibspeexenc.c101 int frames_per_packet; ///< number of frames to encode in each packet member
138 s->frames_per_packet); in print_enc_params()
140 avctx->frame_size * s->frames_per_packet); in print_enc_params()
236 s->header.frames_per_packet = s->frames_per_packet; in encode_init()
288 while (s->pkt_frame_count < s->frames_per_packet) { in encode_frame()
295 if (s->pkt_frame_count == s->frames_per_packet) { in encode_frame()
303 ff_af_queue_remove(&s->afq, s->frames_per_packet * avctx->frame_size, in encode_frame()
331 …{ "frames_per_packet", "Number of frames to encode in each packet", OFFSET(frames_per_packet), AV_…
Dsipr.c51 uint8_t frames_per_packet; member
74 .frames_per_packet = 1,
90 .frames_per_packet = 1,
106 .frames_per_packet = 2,
122 .frames_per_packet = 2,
544 frame->nb_samples = mode_par->frames_per_packet * subframe_size * in sipr_decode_frame()
552 for (i = 0; i < mode_par->frames_per_packet; i++) { in sipr_decode_frame()
Dtwinvq.c489 frame->nb_samples = mtab->size * tctx->frames_per_packet; in ff_twinvq_decode_frame()
504 for (tctx->cur_frame = 0; tctx->cur_frame < tctx->frames_per_packet; in ff_twinvq_decode_frame()
764 int64_t frames_per_packet; in ff_twinvq_decode_init() local
772 frames_per_packet = avctx->block_align * 8LL / tctx->frame_size; in ff_twinvq_decode_init()
773 if (frames_per_packet <= 0) { in ff_twinvq_decode_init()
778 if (frames_per_packet > TWINVQ_MAX_FRAMES_PER_PACKET) { in ff_twinvq_decode_init()
780 frames_per_packet); in ff_twinvq_decode_init()
783 tctx->frames_per_packet = frames_per_packet; in ff_twinvq_decode_init()
Dtwinvq.h169 int frame_size, frames_per_packet, cur_frame; member
Dmetasound.c178 for (tctx->cur_frame = 0; tctx->cur_frame < tctx->frames_per_packet; in metasound_read_bitstream()
/third_party/libsnd/src/
Dcaf.c82 uint32_t frames_per_packet ; member
285 pcaf->alac.frames_per_packet = desc->frames_per_packet ; in decode_desc_chunk()
375 …der_readf (psf, "mE44444", &desc.fmt_id, &desc.fmt_flags, &desc.pkt_bytes, &desc.frames_per_packet, in caf_read_header()
379 …desc.fmt_id, desc.fmt_flags, desc.pkt_bytes, desc.frames_per_packet, desc.channels_per_frame, desc… in caf_read_header()
639 desc.frames_per_packet = 1 ; in caf_write_header()
648 desc.frames_per_packet = 1 ; in caf_write_header()
656 desc.frames_per_packet = 1 ; in caf_write_header()
666 desc.frames_per_packet = 1 ; in caf_write_header()
676 desc.frames_per_packet = 1 ; in caf_write_header()
686 desc.frames_per_packet = 1 ; in caf_write_header()
[all …]
Dalac.c144 alac_get_desc_chunk_items (int subformat, uint32_t *fmt_flags, uint32_t *frames_per_packet) in alac_get_desc_chunk_items() argument
161 *frames_per_packet = ALAC_FRAME_LENGTH ; in alac_get_desc_chunk_items()
248 if (info->frames_per_packet > ALAC_FRAME_LENGTH) in alac_reader_init()
249 …log_printf (psf, "*** Error : frames_per_packet (%u) is too big. ***\n", info->frames_per_packet) ; in alac_reader_init()
256 plac->frames_per_block = info->frames_per_packet ; in alac_reader_init()
Dogg_speex.c329 spx->nframes = spx->header.frames_per_packet ; in spx_header_read()
345 spx->header.speex_version, spx->header.frames_per_packet) ; in spx_header_read()
Dcommon.h222 unsigned frames_per_packet ; member
1065 void alac_get_desc_chunk_items (int subformat, uint32_t *fmt_flags, uint32_t *frames_per_packet) ;
/third_party/gstreamer/gstplugins_good/ext/speex/
Dgstspeexdec.c385 fpp = dec->header->frames_per_packet; in gst_speex_dec_parse_data()
394 fpp = dec->header->frames_per_packet; in gst_speex_dec_parse_data()
Dgstspeexenc.c436 enc->header.frames_per_packet = enc->nframes; in gst_speex_enc_setup()