Lines Matching refs:index_entries
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()
1413 best_ast->frame_offset = best_st->index_entries[i].timestamp; in ni_prepare_read()
1417 int64_t pos = best_st->index_entries[i].pos; in ni_prepare_read()
1427 best_ast->remaining = best_st->index_entries[i].size; in ni_prepare_read()
1518 if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && st->index_entries) { in avi_read_packet()
1523 e = &st->index_entries[index]; in avi_read_packet()
1663 st->index_entries[0].flags |= AVINDEX_KEYFRAME; in avi_read_idx1()
1689 while (idx[i] < n && st->index_entries[idx[i]].pos < pos) in check_stream_max_drift()
1693 dts = av_rescale_q(st->index_entries[idx[i]].timestamp / in check_stream_max_drift()
1697 min_pos = FFMIN(min_pos, st->index_entries[idx[i]].pos); in check_stream_max_drift()
1706 dts = av_rescale_q(st->index_entries[idx[i] - 1].timestamp / in check_stream_max_drift()
1743 int64_t pos = st->index_entries[0].pos; in guess_ni_flag()
1750 if (get_stream_idx(tag) == i && pos + size > st->index_entries[1].pos) in guess_ni_flag()
1752 if (get_stream_idx(tag) == i && size == st->index_entries[0].size + 8) in guess_ni_flag()
1756 if (st->index_entries[0].pos > last_start) in guess_ni_flag()
1757 last_start = st->index_entries[0].pos; in guess_ni_flag()
1758 if (st->index_entries[n - 1].pos < first_end) in guess_ni_flag()
1759 first_end = st->index_entries[n - 1].pos; in guess_ni_flag()
1853 st->index_entries[0].timestamp, in avi_read_seek()
1854 st->index_entries[st->nb_index_entries - 1].timestamp); in avi_read_seek()
1859 pos = st->index_entries[index].pos; in avi_read_seek()
1860 timestamp = st->index_entries[index].timestamp / FFMAX(ast->sample_size, 1); in avi_read_seek()
1863 timestamp, index, st->index_entries[index].timestamp); in avi_read_seek()
1908 ast2->seek_pos = st2->index_entries[index].pos; in avi_read_seek()
1924 while (!avi->non_interleaved && index>0 && st2->index_entries[index-1].pos >= pos_min) in avi_read_seek()
1926 ast2->frame_offset = st2->index_entries[index].timestamp; in avi_read_seek()