/third_party/ffmpeg/libavformat/ |
D | jvdec.c | 110 ast->index_entries = av_malloc(ast->nb_index_entries * in read_header() 111 sizeof(*ast->index_entries)); in read_header() 112 if (!ast->index_entries) in read_header() 117 av_freep(&ast->index_entries); in read_header() 122 AVIndexEntry *e = ast->index_entries + i; in read_header() 142 av_freep(&ast->index_entries); in read_header() 174 const AVIndexEntry *e = ast->index_entries + jv->pts; in read_packet() 249 if (avio_seek(s->pb, ast->index_entries[i].pos, SEEK_SET) < 0) in read_seek()
|
D | avidec.c | 294 pos = st->index_entries[0].pos; in clean_index() 295 size = st->index_entries[0].size; in clean_index() 296 ts = st->index_entries[0].timestamp; in clean_index() 448 len += st->index_entries[j].size; in calculate_bitrate() 449 maxpos = FFMAX(maxpos, st->index_entries[j-1].pos); in calculate_bitrate() 464 len += st->index_entries[j].size; in calculate_bitrate() 468 duration = st->index_entries[j-1].timestamp - st->index_entries[0].timestamp; in calculate_bitrate() 1350 if (!st->index_entries || !st->nb_index_entries || in avi_sync() 1351 st->index_entries[st->nb_index_entries - 1].pos < pos) { in avi_sync() 1384 last_ts = st->index_entries[st->nb_index_entries - 1].timestamp; in ni_prepare_read() [all …]
|
D | cafdec.c | 400 …pkt_size = st->index_entries[caf->packet_cnt + 1].pos - st->index_entries[caf->packet_cnt]… in read_packet() 401 …pkt_frames = st->index_entries[caf->packet_cnt + 1].timestamp - st->index_entries[caf->packet_cnt]… in read_packet() 403 pkt_size = caf->num_bytes - st->index_entries[caf->packet_cnt].pos; in read_packet() 404 pkt_frames = st->duration - st->index_entries[caf->packet_cnt].timestamp; in read_packet() 445 frame_cnt = st->index_entries[packet_cnt].timestamp; in read_seek() 446 pos = st->index_entries[packet_cnt].pos; in read_seek()
|
D | vocdec.c | 87 AVIndexEntry *e = &st->index_entries[index]; in voc_read_seek() 92 } else if (st->nb_index_entries && st->index_entries[0].timestamp <= timestamp) { in voc_read_seek() 93 AVIndexEntry *e = &st->index_entries[st->nb_index_entries - 1]; in voc_read_seek()
|
D | mlvdec.c | 194 …ff_add_index_entry(&vst->index_entries, &vst->nb_index_entries, &vst->index_entries_allocated_size, in scan_file() 199 …ff_add_index_entry(&ast->index_entries, &ast->nb_index_entries, &ast->index_entries_allocated_size, in scan_file() 388 avio_seek(pb, FFMIN(vst->index_entries[0].pos, ast->index_entries[0].pos), SEEK_SET); in read_header() 390 avio_seek(pb, vst->index_entries[0].pos, SEEK_SET); in read_header() 392 avio_seek(pb, ast->index_entries[0].pos, SEEK_SET); in read_header() 418 pb = mlv->pb[st->index_entries[index].size]; in read_packet() 423 avio_seek(pb, st->index_entries[index].pos, SEEK_SET); in read_packet()
|
D | bink.c | 228 if (vst->index_entries) in read_header() 229 avio_seek(pb, vst->index_entries[0].pos + bink->smush_size, SEEK_SET); in read_header() 259 bink->remain_packet_size = st->index_entries[index_entry].size; in read_packet() 260 bink->flags = st->index_entries[index_entry].flags; in read_packet() 316 ret = avio_seek(s->pb, vst->index_entries[0].pos + bink->smush_size, SEEK_SET); in read_seek()
|
D | wtvdec.c | 331 AVIndexEntry *index_entries; member 771 if (wtv->index_entries[i].pos > broken_pos) { in recover() 772 int64_t ret = avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET); in recover() 775 wtv->pts = wtv->index_entries[i].timestamp; in recover() 1036 …ff_add_index_entry(&wtv->index_entries, &wtv->nb_index_entries, &wtv->index_entries_allocated_size, in read_header() 1044 AVIndexEntry *e = wtv->index_entries; in read_header() 1045 AVIndexEntry *e_end = wtv->index_entries + wtv->nb_index_entries - 1; in read_header() 1107 i = ff_index_search_timestamp(wtv->index_entries, wtv->nb_index_entries, ts_relative, flags); in read_seek() 1113 if (avio_seek(pb, wtv->index_entries[wtv->nb_index_entries - 1].pos, SEEK_SET) < 0) in read_seek() 1120 if (avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET) < 0) in read_seek() [all …]
|
D | tta.c | 165 size = st->index_entries[c->currentframe].size; in tta_read_packet() 168 pkt->dts = st->index_entries[c->currentframe++].timestamp; in tta_read_packet() 181 if (avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET) < 0) in tta_read_seek()
|
D | flic.c | 271 if (!st->index_entries || stream_index != flic->video_stream_index) in flic_read_seek() 281 pos = st->index_entries[index].pos; in flic_read_seek() 282 ts = st->index_entries[index].timestamp; in flic_read_seek()
|
D | nsvdec.c | 169 int index_entries; member 339 nsv->index_entries = table_entries_used; in nsv_parse_NSVf_header() 441 for(i=0;i<nsv->index_entries;i++) { in nsv_parse_NSVs_header() 446 … int64_t ts = av_rescale(i*nsv->duration/nsv->index_entries, framerate.num, 1000*framerate.den); in nsv_parse_NSVs_header() 685 if (avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET) < 0) in nsv_read_seek() 688 nst->frame_offset = st->index_entries[index].timestamp; in nsv_read_seek()
|
D | rl2.c | 241 && s->streams[i]->index_entries[ rl2->index_pos[i] ].pos < pos){ in rl2_read_packet() 242 sample = &s->streams[i]->index_entries[ rl2->index_pos[i] ]; in rl2_read_packet() 286 timestamp = st->index_entries[index].timestamp; in rl2_read_seek()
|
D | mxfenc.c | 399 MXFIndexEntry *index_entries; member 1835 if (!(mxf->index_entries[i].flags & 0x33)) { // I-frame in mxf_write_index_table_segment() 1843 if (pic_num_in_gop != mxf->index_entries[i].temporal_ref) { in mxf_write_index_table_segment() 1845 if (pic_num_in_gop == mxf->index_entries[j].temporal_ref) in mxf_write_index_table_segment() 1855 if ((mxf->index_entries[i].flags & 0x30) == 0x30) { // back and forward prediction in mxf_write_index_table_segment() 1860 if ((mxf->index_entries[i].flags & 0x20) == 0x20) // only forward in mxf_write_index_table_segment() 1865 if (!(mxf->index_entries[i].flags & 0x33) && // I-frame in mxf_write_index_table_segment() 1866 mxf->index_entries[i].flags & 0x40 && !temporal_offset) in mxf_write_index_table_segment() 1867 mxf->index_entries[i].flags |= 0x80; // random access in mxf_write_index_table_segment() 1868 avio_w8(pb, mxf->index_entries[i].flags); in mxf_write_index_table_segment() [all …]
|
D | mov.c | 3219 AVIndexEntry *e_keep = st->index_entries; in find_prev_closest_index() 3233 st->index_entries = e_old; in find_prev_closest_index() 3287 st->index_entries = e_keep; in find_prev_closest_index() 3320 entries = av_fast_realloc(st->index_entries, in add_index_entry() 3326 st->index_entries= entries; in add_index_entry() 3350 st->index_entries[end_index - 1 - i].timestamp = end_ts; in fix_index_entry_timestamps() 3409 pts_buf[j] = st->index_entries[ind].timestamp + msc->ctts_data[ctts_ind].duration; in mov_estimate_video_delay() 3497 AVIndexEntry *e_old = st->index_entries; in mov_fix_index() 3543 st->index_entries = NULL; in mov_fix_index() 3775 st->index_entries[i].timestamp -= msc->min_corrected_pts; in mov_fix_index() [all …]
|
D | mpc.c | 197 …if (index >= 0 && st->index_entries[st->nb_index_entries-1].timestamp >= timestamp - DELAY_FRAMES){ in mpc_read_seek() 198 c->curframe = st->index_entries[index].pos; in mpc_read_seek()
|
D | flacdec.c | 44 st->index_entries[i].pos += metadata_head_size; in reset_index_position() 324 e = s->streams[0]->index_entries[index]; in flac_seek()
|
D | ifv.c | 199 e_next = ev = &st->index_entries[ifv->next_video_index]; in ifv_read_packet() 206 ea = &st->index_entries[ifv->next_audio_index]; in ifv_read_packet()
|
D | mpc8.c | 330 if (avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET) < 0) in mpc8_read_seek() 332 ff_update_cur_dts(s, st, st->index_entries[index].timestamp); in mpc8_read_seek()
|
D | utils.c | 1949 st->index_entries[i] = st->index_entries[2 * i]; in ff_reduce_index() 1954 int ff_add_index_entry(AVIndexEntry **index_entries, in ff_add_index_entry() argument 1975 entries = av_fast_realloc(*index_entries, in ff_add_index_entry() 1982 *index_entries = entries; in ff_add_index_entry() 1984 index = ff_index_search_timestamp(*index_entries, *nb_index_entries, in ff_add_index_entry() 2017 return ff_add_index_entry(&st->index_entries, &st->nb_index_entries, in av_add_index_entry() 2095 AVIndexEntry *e1 = &st1->index_entries[i1]; in ff_configure_buffers_for_index() 2100 AVIndexEntry *e2 = &st2->index_entries[i2]; in ff_configure_buffers_for_index() 2132 return ff_index_search_timestamp(st->index_entries, st->nb_index_entries, in av_index_search_timestamp() 2165 if (st->index_entries) { in ff_seek_frame_binary() [all …]
|
D | matroskadec.c | 3858 timestamp = FFMAX(timestamp, st->index_entries[0].timestamp); in matroska_read_seek() 3861 matroska_reset_status(matroska, 0, st->index_entries[st->nb_index_entries - 1].pos); in matroska_read_seek() 3882 matroska_reset_status(matroska, 0, st->index_entries[index].pos); in matroska_read_seek() 3888 matroska->skip_to_timecode = st->index_entries[index].timestamp; in matroska_read_seek() 3892 ff_update_cur_dts(s, st, st->index_entries[index].timestamp); in matroska_read_seek() 3939 AVIndexEntry *index_entries = s->streams[0]->index_entries; in get_cue_desc() local 3942 if (index_entries[i - 1].timestamp * matroska->time_scale <= ts && in get_cue_desc() 3943 index_entries[i].timestamp * matroska->time_scale > ts) { in get_cue_desc() 3948 cue_desc.start_time_ns = index_entries[i].timestamp * matroska->time_scale; in get_cue_desc() 3949 cue_desc.start_offset = index_entries[i].pos - matroska->segment_start; in get_cue_desc() [all …]
|
D | dhav.c | 437 if (avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET) < 0) in dhav_read_seek() 440 pts = st->index_entries[index].timestamp; in dhav_read_seek()
|
D | gxf.c | 578 pos = st->index_entries[idx].pos; in gxf_seek() 580 maxlen = st->index_entries[idx + 2].pos - pos; in gxf_seek()
|
D | nutenc.c | 1016 sp_pos = FFMIN(sp_pos, st->index_entries[index].pos); in nut_write_packet() 1018 memmove(st->index_entries, in nut_write_packet() 1019 st->index_entries + index, in nut_write_packet() 1020 sizeof(*st->index_entries) * (st->nb_index_entries - index)); in nut_write_packet()
|
D | mp3dec.c | 435 st->index_entries[i].pos += avio_tell(s->pb); in mp3_read_header() 570 ie = &st->index_entries[ret]; in mp3_seek()
|
/third_party/gstreamer/gstplugins_bad/gst/mxf/ |
D | mxftypes.c | 1229 segment->index_entries = g_new0 (MXFIndexEntry, len); in mxf_index_table_segment_parse() 1232 MXFIndexEntry *entry = &segment->index_entries[i]; in mxf_index_table_segment_parse() 1301 segment->segment_start_offset = segment->index_entries[0].stream_offset; in mxf_index_table_segment_parse() 1318 if (segment->index_entries) { in mxf_index_table_segment_reset() 1320 g_free (segment->index_entries[i].slice_offset); in mxf_index_table_segment_reset() 1321 g_free (segment->index_entries[i].pos_table); in mxf_index_table_segment_reset() 1325 g_free (segment->index_entries); in mxf_index_table_segment_reset() 1424 segment->index_entries[i].temporal_offset); in mxf_index_table_segment_to_buffer() 1426 segment->index_entries[i].key_frame_offset); in mxf_index_table_segment_to_buffer() 1427 gst_byte_writer_put_uint8_unchecked (&bw, segment->index_entries[i].flags); in mxf_index_table_segment_to_buffer() [all …]
|
D | mxfmux.c | 221 n).index_entries); in gst_mxf_mux_finalize() 273 n).index_entries); in gst_mxf_mux_reset() 1311 s.index_entries = g_new0 (MXFIndexEntry, max_segment_size); in gst_mxf_mux_handle_buffer() 1368 s.index_entries = g_new0 (MXFIndexEntry, max_segment_size); in gst_mxf_mux_handle_buffer() 1388 pts_segment->index_entries[pts_segment_pos + in gst_mxf_mux_handle_buffer() 1397 segment->index_entries[segment->n_index_entries].key_frame_offset = in gst_mxf_mux_handle_buffer() 1399 …segment->index_entries[segment->n_index_entries].flags = is_keyframe ? 0x80 : 0x20; /* FIXME: Need… in gst_mxf_mux_handle_buffer() 1400 segment->index_entries[segment->n_index_entries].stream_offset = in gst_mxf_mux_handle_buffer() 1580 GList *index_entries = NULL, *l; in gst_mxf_mux_handle_eos() local 1591 index_entries = g_list_prepend (index_entries, segment_buffer); in gst_mxf_mux_handle_eos() [all …]
|