Lines Matching refs:index_entries
3531 AVIndexEntry *e_keep = sti->index_entries;
3545 sti->index_entries = e_old;
3599 sti->index_entries = e_keep;
3605 * Add index entry with the given values, to the end of ffstream(st)->index_entries.
3606 * Returns the new size ffstream(st)->index_entries if successful, else returns -1.
3633 entries = av_fast_realloc(sti->index_entries,
3639 sti->index_entries = entries;
3664 sti->index_entries[end_index - 1 - i].timestamp = end_ts;
3723 pts_buf[j] = sti->index_entries[ind].timestamp + msc->ctts_data[ctts_ind].duration;
3803 * Fix ffstream(st)->index_entries, so that it contains only the entries (and the entries
3812 AVIndexEntry *e_old = sti->index_entries;
3857 sti->index_entries = NULL;
4089 sti->index_entries[i].timestamp -= msc->min_corrected_pts;
4260 if (sc->sample_count >= UINT_MAX / sizeof(*sti->index_entries) - sti->nb_index_entries)
4262 if (av_reallocp_array(&sti->index_entries,
4264 sizeof(*sti->index_entries)) < 0) {
4268 sti->index_entries_allocated_size = (sti->nb_index_entries + sc->sample_count) * sizeof(*sti->index_entries);
4358 e = &sti->index_entries[sti->nb_index_entries++];
4421 if (total >= UINT_MAX / sizeof(*sti->index_entries) - sti->nb_index_entries)
4423 if (av_reallocp_array(&sti->index_entries,
4425 sizeof(*sti->index_entries)) < 0) {
4429 sti->index_entries_allocated_size = (sti->nb_index_entries + total) * sizeof(*sti->index_entries);
4472 e = &sti->index_entries[sti->nb_index_entries++];
4496 st->start_time = sti->index_entries[0].timestamp + sc->dts_shift;
5198 // and it's samples are in index_entries at the given position.
5282 new_entries = av_fast_realloc(sti->index_entries,
5287 sti->index_entries= new_entries;
5304 // Make hole in index_entries and ctts_data for new samples
5305 memmove(sti->index_entries + index_entry_pos + entries,
5306 sti->index_entries + index_entry_pos,
5307 sizeof(*sti->index_entries) *
5325 prev_dts = sti->index_entries[index_entry_pos-1].timestamp;
5374 sti->index_entries[index_entry_pos].pos = offset;
5375 sti->index_entries[index_entry_pos].timestamp = dts;
5376 sti->index_entries[index_entry_pos].size = sample_size;
5377 sti->index_entries[index_entry_pos].min_distance = distance;
5378 sti->index_entries[index_entry_pos].flags = index_entry_flags;
5407 // leave in index_entries and ctts_data
5409 memmove(sti->index_entries + index_entry_pos,
5410 sti->index_entries + index_entry_pos + gap,
5411 sizeof(*sti->index_entries) *
5427 // of the next fragment in index_entries. Mark the samples in the next
5431 prev_dts = sti->index_entries[index_entry_pos-1].timestamp;
5433 if (prev_dts < sti->index_entries[i].timestamp)
5435 sti->index_entries[i].flags |= AVINDEX_DISCARD_FRAME;
5438 // If a hole was created to insert the new index_entries into,
8291 AVIndexEntry *sample = &sti->index_entries[0];
8305 AVIndexEntry *sample = &sti->index_entries[i];
8306 int64_t end = i+1 < sti->nb_index_entries ? sti->index_entries[i+1].timestamp : st->duration;
8383 avio_seek(sc->pb, sti->index_entries->pos, SEEK_SET);
8415 avio_seek(sc->pb, sti->index_entries->pos, SEEK_SET);
8910 AVIndexEntry *current_sample = &avsti->index_entries[msc->current_sample];
9150 ffstream(st)->index_entries[sc->current_sample].timestamp : st->duration;
9244 key_sample_dts = sti->index_entries[sample].timestamp;
9276 if (sample < 0 && sti->nb_index_entries && timestamp < sti->index_entries[0].timestamp)
9324 int64_t first_ts = sti->index_entries[0].timestamp;
9325 int64_t ts = sti->index_entries[sample].timestamp;
9356 int64_t seek_timestamp = sti->index_entries[sample].timestamp;