Lines Matching defs:timestamp
1331 int64_t timestamp;
1345 timestamp = get_stream_info_time(frag_stream_info);
1346 if (timestamp != AV_NOPTS_VALUE)
1347 return timestamp;
1353 AVStream *st, int64_t timestamp)
1377 if (m < b && frag_time <= timestamp)
3507 * Here the timestamp_pts is considered to be a presentation timestamp and
3508 * the timestamp of index entries are considered to be decoding timestamps.
3514 * backwards from the found timestamp, to find the frame with correct PTS.
3549 // Keep going backwards in the index entries until the timestamp is the same.
3551 for (i = *index; i > 0 && e_old[i].timestamp == e_old[i - 1].timestamp;
3580 // No need to add dts_shift to the timestamp here becase timestamp_pts has already been
3582 if ((e_old[*index].timestamp + ctts_data[*ctts_index].duration) <= timestamp_pts &&
3611 * there is an existing entry with the same timestamp.
3613 * unincremented timestamp for successive discarded frames.
3615 static int64_t add_index_entry(AVStream *st, int64_t pos, int64_t timestamp,
3645 ie->timestamp = timestamp;
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;
3729 // can be computed as the maximum no. of swaps any particular timestamp needs to
3916 search_timestamp = FFMAX(search_timestamp - msc->time_scale, e_old[0].timestamp);
3922 "st: %d edit list: %"PRId64" Missing key frame while searching for timestamp: %"PRId64"\n",
3927 "st: %d edit list %"PRId64" Cannot find an index entry before timestamp: %"PRId64".\n",
3943 ((current + 1)->timestamp - current->timestamp) : edit_list_duration;
3948 curr_cts = current->timestamp + msc->dts_shift;
3981 // Shift the index entry timestamp by packet_skip_samples to be correct.
4089 sti->index_entries[i].timestamp -= msc->min_corrected_pts;
4360 e->timestamp = current_dts;
4474 e->timestamp = current_dts;
4496 st->start_time = sti->index_entries[0].timestamp + sc->dts_shift;
5325 prev_dts = sti->index_entries[index_entry_pos-1].timestamp;
5375 sti->index_entries[index_entry_pos].timestamp = dts;
5431 prev_dts = sti->index_entries[index_entry_pos-1].timestamp;
5433 if (prev_dts < sti->index_entries[i].timestamp)
5461 int64_t offset = av_sat_add64(avio_tell(pb), atom.size), pts, timestamp;
5527 timestamp = av_rescale_q(pts, timescale, st->time_base);
5532 frag_stream_info->sidx_pts = timestamp;
8306 int64_t end = i+1 < sti->nb_index_entries ? sti->index_entries[i+1].timestamp : st->duration;
8311 if (end < sample->timestamp) {
8349 avpriv_new_chapter(s, i, st->time_base, sample->timestamp, end, title);
8911 int64_t dts = av_rescale(current_sample->timestamp, AV_TIME_BASE, msc->time_scale);
9135 pkt->dts = sample->timestamp;
9150 ffstream(st)->index_entries[sc->current_sample].timestamp : st->duration;
9196 static int mov_seek_fragment(AVFormatContext *s, AVStream *st, int64_t timestamp)
9204 index = search_frag_timestamp(&mov->frag_index, st, timestamp);
9244 key_sample_dts = sti->index_entries[sample].timestamp;
9258 static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp, int flags)
9265 // Here we consider timestamp to be PTS, hence try to offset it so that we
9267 timestamp -= (sc->min_corrected_pts + sc->dts_shift);
9269 ret = mov_seek_fragment(s, st, timestamp);
9274 sample = av_index_search_timestamp(st, timestamp, flags);
9275 av_log(s, AV_LOG_TRACE, "stream %d, timestamp %"PRId64", sample %d\n", st->index, timestamp, sample);
9276 if (sample < 0 && sti->nb_index_entries && timestamp < sti->index_entries[0].timestamp)
9281 if (!sample || can_seek_to_key_sample(st, sample, timestamp))
9283 timestamp -= FFMAX(sc->min_sample_duration, 1);
9324 int64_t first_ts = sti->index_entries[0].timestamp;
9325 int64_t ts = sti->index_entries[sample].timestamp;
9355 /* adjust seek timestamp to found sample timestamp */
9356 int64_t seek_timestamp = sti->index_entries[sample].timestamp;
9362 int64_t timestamp;
9367 timestamp = av_rescale_q(seek_timestamp, s->streams[stream_index]->time_base, st->time_base);
9368 sample = mov_seek_stream(s, st, timestamp, flags);