Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/third_party/ffmpeg/libavcodec/
Dmpegaudiodecheader.c38 int sample_rate, frame_size, mpeg25, padding; in avpriv_mpegaudio_decode_header() local
80 frame_size = avpriv_mpa_bitrate_tab[s->lsf][s->layer - 1][bitrate_index]; in avpriv_mpegaudio_decode_header()
81 s->bit_rate = frame_size * 1000; in avpriv_mpegaudio_decode_header()
84 frame_size = (frame_size * 12000) / sample_rate; in avpriv_mpegaudio_decode_header()
85 frame_size = (frame_size + padding) * 4; in avpriv_mpegaudio_decode_header()
88 frame_size = (frame_size * 144000) / sample_rate; in avpriv_mpegaudio_decode_header()
89 frame_size += padding; in avpriv_mpegaudio_decode_header()
93 frame_size = (frame_size * 144000) / (sample_rate << s->lsf); in avpriv_mpegaudio_decode_header()
94 frame_size += padding; in avpriv_mpegaudio_decode_header()
97 s->frame_size = frame_size; in avpriv_mpegaudio_decode_header()
[all …]
Dmp3_header_decompress_bsf.c35 int lsf, mpeg25, bitrate_index, frame_size, ret; in mp3_header_decompress() local
73 frame_size = avpriv_mpa_bitrate_tab[lsf][2][bitrate_index>>1]; in mp3_header_decompress()
74 frame_size = (frame_size * 144000) / (sample_rate << lsf) + (bitrate_index&1); in mp3_header_decompress()
75 if(frame_size == buf_size + 4) in mp3_header_decompress()
77 if(frame_size == buf_size + 6) in mp3_header_decompress()
88 header |= (frame_size == buf_size + 4)<<16; //FIXME actually set a correct crc instead of 0 in mp3_header_decompress()
90 ret = av_new_packet(out, frame_size); in mp3_header_decompress()
98 memcpy(out->data + frame_size - buf_size, buf, buf_size + AV_INPUT_BUFFER_PADDING_SIZE); in mp3_header_decompress()
101 uint8_t *p= out->data + frame_size - buf_size; in mp3_header_decompress()
Dmpegaudio_parser.c31 int frame_size; member
56 if(s->frame_size){ in mpegaudio_parse()
57 int inc= FFMIN(buf_size - i, s->frame_size); in mpegaudio_parse()
59 s->frame_size -= inc; in mpegaudio_parse()
62 if(!s->frame_size){ in mpegaudio_parse()
68 int ret, sr, channels, bit_rate, frame_size; in mpegaudio_parse() local
73 … ret = ff_mpa_decode_header(state, &sr, &channels, &frame_size, &bit_rate, &codec_id); in mpegaudio_parse()
83 s->frame_size = ret-4; in mpegaudio_parse()
88 s1->duration = frame_size; in mpegaudio_parse()
97 s->frame_size = 0; in mpegaudio_parse()
Dflicvideo.c162 unsigned int frame_size; in flic_decode_frame_8BPP() local
195 frame_size = bytestream2_get_le32(&g2); in flic_decode_frame_8BPP()
196 if (frame_size > buf_size) in flic_decode_frame_8BPP()
197 frame_size = buf_size; in flic_decode_frame_8BPP()
202 if (frame_size < 16) in flic_decode_frame_8BPP()
205 frame_size -= 16; in flic_decode_frame_8BPP()
208 while ((frame_size >= 6) && (num_chunks > 0) && in flic_decode_frame_8BPP()
212 if (chunk_size > frame_size) { in flic_decode_frame_8BPP()
214 "Invalid chunk_size = %u > frame_size = %u\n", chunk_size, frame_size); in flic_decode_frame_8BPP()
215 chunk_size = frame_size; in flic_decode_frame_8BPP()
[all …]
Ddv_profile.c76 .frame_size = 120000, /* IEC 61834, SMPTE-314M - 525/60 (NTSC) */
93 .frame_size = 144000, /* IEC 61834 - 625/50 (PAL) */
110 .frame_size = 144000, /* SMPTE-314M - 625/50 (PAL) */
127 .frame_size = 240000, /* SMPTE-314M - 525/60 (NTSC) 50 Mbps */
144 .frame_size = 288000, /* SMPTE-314M - 625/50 (PAL) 50 Mbps */
161 .frame_size = 480000, /* SMPTE-370M - 1080i60 100 Mbps */
178 .frame_size = 576000, /* SMPTE-370M - 1080i50 100 Mbps */
195 .frame_size = 240000, /* SMPTE-370M - 720p60 100 Mbps */
212 .frame_size = 288000, /* SMPTE-370M - 720p50 100 Mbps */
229 .frame_size = 144000, /* IEC 61883-5 - 625/50 (PAL) */
[all …]
Dalacenc.c65 int frame_size; /**< current frame size */ member
95 for (i = 0; i < s->frame_size; i++) \ in init_sample_buffers()
140 if (s->frame_size < DEFAULT_FRAME_SIZE) in write_element_header()
150 put_bits32(&s->pbctx, s->frame_size); // No. of samples in the frame in write_element_header()
170 s->frame_size, in calc_predictor_params()
220 int i, mode, n = s->frame_size; in alac_stereo_decorrelation()
266 for (i = 1; i < s->frame_size; i++) { in alac_linear_predictor()
285 for (i = lpc.lpc_order + 1; i < s->frame_size; i++) { in alac_linear_predictor()
327 for (i = 0; i < s->frame_size;) { in alac_entropy_coder()
347 if (history < 128 && i < s->frame_size) { in alac_entropy_coder()
[all …]
Deac3_core_bsf.c47 pkt->size = FFMIN(hdr.frame_size, pkt->size); in eac3_core_filter()
48 } else if (hdr.frame_type == EAC3_FRAME_TYPE_DEPENDENT && pkt->size > hdr.frame_size) { in eac3_core_filter()
51 ret = init_get_bits8(&gbc, pkt->data + hdr.frame_size, pkt->size - hdr.frame_size); in eac3_core_filter()
63 pkt->size -= hdr.frame_size; in eac3_core_filter()
64 pkt->data += hdr.frame_size; in eac3_core_filter()
Dcngdec.c63 avctx->frame_size = 640; in cng_decode_init()
67 p->filter_out = av_mallocz_array(avctx->frame_size + p->order, in cng_decode_init()
69 p->excitation = av_mallocz_array(avctx->frame_size, sizeof(*p->excitation)); in cng_decode_init()
123 if (avctx->internal->skip_samples > 10 * avctx->frame_size) { in cng_decode_frame()
143 for (i = 0; i < avctx->frame_size; i++) { in cng_decode_frame()
148 p->excitation, avctx->frame_size, p->order); in cng_decode_frame()
150 frame->nb_samples = avctx->frame_size; in cng_decode_frame()
154 for (i = 0; i < avctx->frame_size; i++) in cng_decode_frame()
156 memcpy(p->filter_out, p->filter_out + avctx->frame_size, in cng_decode_frame()
Dac3_parser.c108 hdr->frame_size = ff_ac3_frame_size_tab[frame_size_code][hdr->sr_code] * 2; in ff_ac3_parse_header()
120 hdr->frame_size = (get_bits(gbc, 11) + 1) << 1; in ff_ac3_parse_header()
121 if(hdr->frame_size < AC3_HEADER_SIZE) in ff_ac3_parse_header()
140 hdr->bit_rate = 8LL * hdr->frame_size * hdr->sample_rate / in ff_ac3_parse_header()
176 uint8_t *bitstream_id, uint16_t *frame_size) in av_ac3_parse_header() argument
188 *frame_size = hdr.frame_size; in av_ac3_parse_header()
231 return hdr.frame_size; in ac3_sync()
260 uint8_t *bitstream_id, uint16_t *frame_size) in av_ac3_parse_header() argument
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpceltdepay.c123 gint clock_rate, nb_channels = 0, frame_size = 0; in gst_rtp_celt_depay_setcaps() local
145 frame_size = atoi (params); in gst_rtp_celt_depay_setcaps()
146 if (!frame_size) in gst_rtp_celt_depay_setcaps()
147 frame_size = DEFAULT_FRAMESIZE; in gst_rtp_celt_depay_setcaps()
148 rtpceltdepay->frame_size = frame_size; in gst_rtp_celt_depay_setcaps()
151 clock_rate, nb_channels, frame_size); in gst_rtp_celt_depay_setcaps()
169 GST_WRITE_UINT32_LE (ptr, frame_size); /* frame-size */ in gst_rtp_celt_depay_setcaps()
206 gint clock_rate = 0, frame_size = 0; in gst_rtp_celt_depay_process() local
213 frame_size = rtpceltdepay->frame_size; in gst_rtp_celt_depay_process()
214 framesize_ns = gst_util_uint64_scale_int (frame_size, GST_SECOND, clock_rate); in gst_rtp_celt_depay_process()
[all …]
Dgstrtpdvdepay.c132 rtpdvdepay->frame_size = 240000; in parse_encode()
137 rtpdvdepay->frame_size = 120000; in parse_encode()
142 rtpdvdepay->frame_size = 288000; in parse_encode()
147 rtpdvdepay->frame_size = 144000; in parse_encode()
152 rtpdvdepay->frame_size = 144000; in parse_encode()
157 rtpdvdepay->frame_size = -1; in parse_encode()
159 return rtpdvdepay->frame_size != -1; in parse_encode()
210 rtpdvdepay->acc = gst_buffer_new_and_alloc (rtpdvdepay->frame_size); in gst_rtp_dv_depay_setcaps()
215 gst_buffer_memset (rtpdvdepay->acc, 0, 0, rtpdvdepay->frame_size); in gst_rtp_dv_depay_setcaps()
352 if (offset <= dvdepay->frame_size - 80) { in gst_rtp_dv_depay_process()
/third_party/ffmpeg/libavformat/
Drtpdec_qcelp.c59 int frame_size, ret; in store_packet() local
121 frame_size = frame_sizes[buf[1]]; in store_packet()
122 if (1 + frame_size > len) in store_packet()
125 if (len - 1 - frame_size > sizeof(data->group[0].data)) in store_packet()
128 if ((ret = av_new_packet(pkt, frame_size)) < 0) in store_packet()
130 memcpy(pkt->data, &buf[1], frame_size); in store_packet()
134 ip->size = len - 1 - frame_size; in store_packet()
136 memcpy(ip->data, &buf[1 + frame_size], ip->size); in store_packet()
156 int frame_size, ret; in return_stored_frame() local
176 frame_size = frame_sizes[ip->data[ip->pos]]; in return_stored_frame()
[all …]
Dac3dec.c47 uint16_t frame_size; in ac3_eac3_probe() local
61 &frame_size); in ac3_eac3_probe()
64 &frame_size); in ac3_eac3_probe()
67 if(buf2 + frame_size > end) in ac3_eac3_probe()
70 av_assert0(frame_size <= sizeof(buf3)); in ac3_eac3_probe()
71 for(i = 8; i < frame_size; i += 2) { in ac3_eac3_probe()
75 if (av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, buf3 + 2, frame_size - 2)) in ac3_eac3_probe()
78 if (av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, buf2 + 2, frame_size - 2)) in ac3_eac3_probe()
83 buf2 += frame_size; in ac3_eac3_probe()
Drtpenc_h261.c39 void ff_rtp_send_h261(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_size) in ff_rtp_send_h261() argument
49 while (frame_size > 0) { in ff_rtp_send_h261()
74 if (frame_size < 2 || frame_buf[0] != 0 || frame_buf[1] != 1) { in ff_rtp_send_h261()
83 cur_frame_size = FFMIN(rtp_ctx->max_payload_size - RTP_H261_HEADER_SIZE, frame_size); in ff_rtp_send_h261()
86 if (cur_frame_size < frame_size) { in ff_rtp_send_h261()
93 last_packet_of_frame = cur_frame_size == frame_size; in ff_rtp_send_h261()
100 frame_size -= cur_frame_size; in ff_rtp_send_h261()
Ddfa.c84 uint32_t frame_size; in dfa_read_packet() local
100 frame_size = AV_RL32(pkt->data + pkt->size - 8); in dfa_read_packet()
101 if (frame_size > INT_MAX - 4) { in dfa_read_packet()
102 av_log(s, AV_LOG_ERROR, "Too large chunk size: %"PRIu32"\n", frame_size); in dfa_read_packet()
106 if (frame_size) { in dfa_read_packet()
109 frame_size); in dfa_read_packet()
110 avio_skip(pb, frame_size); in dfa_read_packet()
114 ret = av_append_packet(pb, pkt, frame_size); in dfa_read_packet()
Dact.c89 st->codecpar->frame_size=80; in read_header()
100 …n = av_rescale(1000*(min*60+sec)+msec, st->codecpar->sample_rate, 1000 * st->codecpar->frame_size); in read_header()
116 int frame_size=s->streams[0]->codecpar->sample_rate==8000?10:22; in read_packet() local
129 ret = avio_read(pb, ctx->audio_buffer, frame_size); in read_packet()
133 if(ret!=frame_size) in read_packet()
168 ret = avio_read(pb, ctx->audio_buffer, frame_size); in read_packet()
172 if(ret!=frame_size) in read_packet()
187 ctx->bytes_left_in_chunk -= frame_size; in read_packet()
189 if(ctx->bytes_left_in_chunk < frame_size) in read_packet()
Dyop.c34 int frame_size; member
87 yop->frame_size = avio_r8(pb) * 2048; in yop_read_header()
100 video_par->bit_rate = 8 * (yop->frame_size - yop->audio_block_length) * frame_rate; in yop_read_header()
104 yop->audio_block_length + yop->palette_size >= yop->frame_size) { in yop_read_header()
122 int actual_video_data_size = yop->frame_size - in yop_read_packet()
135 yop->frame_size - yop->audio_block_length); in yop_read_packet()
191 pos_max = avio_size(s->pb) - yop->frame_size; in yop_read_seek()
192 frame_count = (pos_max - pos_min) / yop->frame_size; in yop_read_seek()
196 frame_pos = timestamp * yop->frame_size + pos_min; in yop_read_seek()
Dcodec2.c114 int frame_size = codec2_mode_frame_size(s, mode); in codec2_mode_bit_rate() local
117 if (frame_size <= 0 || block_align <= 0) { in codec2_mode_bit_rate()
121 return 8 * 8000 * block_align / frame_size; in codec2_mode_bit_rate()
135 st->codecpar->frame_size = codec2_mode_frame_size(s, mode); in codec2_read_header_common()
139 st->codecpar->frame_size <= 0 || in codec2_read_header_common()
188 int ret, size, n, block_align, frame_size; in codec2_read_packet() local
191 frame_size = st->codecpar->frame_size; in codec2_read_packet()
193 if (block_align <= 0 || frame_size <= 0 || c2->frames_per_packet <= 0) { in codec2_read_packet()
207 pkt->duration = n * frame_size; in codec2_read_packet()
Dxmv.c92 uint32_t frame_size; ///< Number of bytes to put into an audio frame. member
204 packet->frame_size = 0; in xmv_read_header()
368 packet->frame_size = packet->data_size / xmv->video.frame_count; in xmv_process_packet_header()
369 packet->frame_size -= packet->frame_size % packet->block_align; in xmv_process_packet_header()
459 data_size = FFMIN(audio->frame_size, audio->data_size); in xmv_fetch_audio_packet()
497 uint32_t frame_size, frame_timestamp; in xmv_fetch_video_packet() local
507 frame_size = (frame_header & 0x1FFFF) * 4 + 4; in xmv_fetch_video_packet()
510 if ((frame_size + 4) > video->data_size) in xmv_fetch_video_packet()
514 result = av_get_packet(pb, pkt, frame_size); in xmv_fetch_video_packet()
515 if (result != frame_size) in xmv_fetch_video_packet()
[all …]
Dtta.c34 int frame_size; member
87 c->frame_size = samplerate * 256 / 245; in tta_read_header()
88 c->last_frame_size = nb_samples % c->frame_size; in tta_read_header()
90 c->last_frame_size = c->frame_size; in tta_read_header()
91 c->totalframes = nb_samples / c->frame_size + (c->last_frame_size < c->frame_size); in tta_read_header()
124 if ((r = av_add_index_entry(st, framepos, i * (int64_t)c->frame_size, size, 0, in tta_read_header()
170 c->frame_size; in tta_read_packet()
Drtpdec_vc2hq.c36 uint32_t frame_size; member
137 pl_ctx->frame_size = DIRAC_DATA_UNIT_HEADER_SIZE + DIRAC_PIC_NR_SIZE; in vc2hq_handle_frame_fragment()
141 pl_ctx->frame_size += frag_len; in vc2hq_handle_frame_fragment()
155 pl_ctx->frame_size += frag_len; in vc2hq_handle_frame_fragment()
168 fill_parse_info_header(pl_ctx, pkt->data, DIRAC_PCODE_PICTURE_HQ, pl_ctx->frame_size); in vc2hq_handle_frame_fragment()
171 pl_ctx->frame_size = 0; in vc2hq_handle_frame_fragment()
187 pl_ctx->frame_size = 0; in vc2hq_handle_packet()
/third_party/ffmpeg/doc/examples/
Dtranscode_aac.c444 int frame_size) in init_converted_samples() argument
462 frame_size, in init_converted_samples()
487 uint8_t **converted_data, const int frame_size, in convert_samples() argument
494 converted_data, frame_size, in convert_samples()
495 input_data , frame_size)) < 0) { in convert_samples()
514 const int frame_size) in add_samples_to_fifo() argument
520 if ((error = av_audio_fifo_realloc(fifo, av_audio_fifo_size(fifo) + frame_size)) < 0) { in add_samples_to_fifo()
527 frame_size) < frame_size) { in add_samples_to_fifo()
619 int frame_size) in init_output_frame() argument
634 (*frame)->nb_samples = frame_size; in init_output_frame()
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/tag/
Did3v2.c402 guint8 * frame_data, guint frame_size) in id3v2_add_id3v2_frame_blob_to_taglist() argument
412 blob = gst_buffer_new_and_alloc (frame_size); in id3v2_add_id3v2_frame_blob_to_taglist()
413 gst_buffer_fill (blob, 0, frame_data, frame_size); in id3v2_add_id3v2_frame_blob_to_taglist()
497 guint frame_size = 0; in id3v2_frames_to_tag_list() local
517 frame_size = work->hdr.frame_data[3] << 16 | in id3v2_frames_to_tag_list()
531 frame_size = id3v2_read_synch_uint (work->hdr.frame_data + 4, 4); in id3v2_frames_to_tag_list()
533 frame_size = GST_READ_UINT32_BE (work->hdr.frame_data + 4); in id3v2_frames_to_tag_list()
549 if (frame_size > work->hdr.frame_data_size || strcmp (frame_id, "") == 0) in id3v2_frames_to_tag_list()
573 (glong) (work->hdr.frame_data - start), frame_id, frame_size, in id3v2_frames_to_tag_list()
574 (glong) (work->hdr.frame_data + frame_hdr_size + frame_size - start), in id3v2_frames_to_tag_list()
[all …]
/third_party/pulseaudio/src/modules/alsa/
Dalsa-source.c114 frame_size, member
295 u->min_sleep = PA_CLAMP(u->min_sleep, u->frame_size, max_use_2); in fix_min_sleep_wakeup()
298 u->min_wakeup = PA_CLAMP(u->min_wakeup, u->frame_size, max_use_2); in fix_min_sleep_wakeup()
588 n_bytes = (size_t) n * u->frame_size; in mmap_read()
646 frames = (snd_pcm_uframes_t) (n_bytes / u->frame_size); in mmap_read()
679 pa_assert((areas[0].step >> 3) == u->frame_size); in mmap_read()
681 p = (uint8_t*) areas[0].addr + (offset * u->frame_size); in mmap_read()
683 … chunk.memblock = pa_memblock_new_fixed(u->core->mempool, p, frames * u->frame_size, true); in mmap_read()
704 u->read_count += frames * u->frame_size; in mmap_read()
707 …"Read %lu bytes (of possible %lu bytes)", (unsigned long) (frames * u->frame_size), (unsigned long… in mmap_read()
[all …]
/third_party/gstreamer/gstplugins_base/gst/rawparse/
Dgstrawbaseparse.c260 gsize frame_size = klass->get_config_frame_size (raw_base_parse, in gst_raw_base_parse_set_property() local
262 gst_base_parse_set_min_frame_size (base_parse, frame_size); in gst_raw_base_parse_set_property()
316 gsize frame_size = klass->get_config_frame_size (raw_base_parse, in gst_raw_base_parse_start() local
318 gst_base_parse_set_min_frame_size (base_parse, frame_size); in gst_raw_base_parse_start()
370 gsize frame_size; in gst_raw_base_parse_set_sink_caps() local
390 frame_size = in gst_raw_base_parse_set_sink_caps()
393 gst_base_parse_set_min_frame_size (parse, frame_size); in gst_raw_base_parse_set_sink_caps()
458 guint frame_size; in gst_raw_base_parse_handle_frame() local
522 frame_size = in gst_raw_base_parse_handle_frame()
525 if (frame_size <= 0) { in gst_raw_base_parse_handle_frame()
[all …]

12345678910>>...14