Lines Matching refs:current_sample
3444 sc->current_sample++; in mov_current_sample_inc()
3456 sc->current_sample--; in mov_current_sample_dec()
3466 static void mov_current_sample_set(MOVStreamContext *sc, int current_sample) in mov_current_sample_set() argument
3470 sc->current_sample = current_sample; in mov_current_sample_set()
3471 sc->current_index = current_sample; in mov_current_sample_set()
3480 if (range_size > current_sample) { in mov_current_sample_set()
3481 sc->current_index = sc->current_index_range->start + current_sample; in mov_current_sample_set()
3484 current_sample -= range_size; in mov_current_sample_set()
3858 unsigned int current_sample = 0; in mov_build_index() local
3928 if (current_sample >= sc->sample_count) { in mov_build_index()
3933 …if (!sc->keyframe_absent && (!sc->keyframe_count || current_sample+key_off == sc->keyframes[stss_i… in mov_build_index()
3937 } else if (sc->stps_count && current_sample+key_off == sc->stps_data[stps_index]) { in mov_build_index()
3957 … sample_size = sc->stsz_sample_size > 0 ? sc->stsz_sample_size : sc->sample_sizes[current_sample]; in mov_build_index()
3972 "size %u, distance %u, keyframe %d\n", st->index, current_sample, in mov_build_index()
4003 current_sample++; in mov_build_index()
4919 if (index_entry_pos < sc->current_sample) { in mov_read_trun()
4920 sc->current_sample += entries; in mov_read_trun()
5025 if (index_entry_pos < sc->current_sample) { in mov_read_trun()
5026 sc->current_sample -= gap; in mov_read_trun()
7838 if (msc->pb && msc->current_sample < avst->nb_index_entries) { in mov_find_next_sample()
7839 AVIndexEntry *current_sample = &avst->index_entries[msc->current_sample]; in mov_find_next_sample() local
7840 int64_t dts = av_rescale(current_sample->timestamp, AV_TIME_BASE, msc->time_scale); in mov_find_next_sample()
7841 … av_log(s, AV_LOG_TRACE, "stream %d, sample %d, dts %"PRId64"\n", i, msc->current_sample, dts); in mov_find_next_sample()
7842 … if (!sample || (!(s->pb->seekable & AVIO_SEEKABLE_NORMAL) && current_sample->pos < sample->pos) || in mov_find_next_sample()
7845 ((FFABS(best_dts - dts) <= AV_TIME_BASE && current_sample->pos < sample->pos) || in mov_find_next_sample()
7847 sample = current_sample; in mov_find_next_sample()
8042 int64_t next_dts = (sc->current_sample < st->nb_index_entries) ? in mov_read_packet()
8043 st->index_entries[sc->current_sample].timestamp : st->duration; in mov_read_packet()
8051 if (sc->sdtp_data && sc->current_sample <= sc->sdtp_count) { in mov_read_packet()
8052 uint8_t sample_flags = sc->sdtp_data[sc->current_sample - 1]; in mov_read_packet()
8129 av_log(s, AV_LOG_TRACE, "stream %d, found sample %d\n", st->index, sc->current_sample); in mov_seek_stream()
8135 if (next > sc->current_sample) { in mov_seek_stream()
8137 sc->ctts_sample = sc->current_sample - time_sample; in mov_seek_stream()
8149 if (next > sc->current_sample) { in mov_seek_stream()
8151 sc->stsc_sample = sc->current_sample - time_sample; in mov_seek_stream()
8223 if (sc->ffindex == stream_index && sc->current_sample == sample) in mov_read_seek()