#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "libavutil/timestamp.h"
#include "libavcodec/avcodec.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "internal.h"
void avpriv_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t timestamp)
{ … }
void ff_reduce_index(AVFormatContext *s, int stream_index)
{ … }
int ff_add_index_entry(AVIndexEntry **index_entries,
int *nb_index_entries,
unsigned int *index_entries_allocated_size,
int64_t pos, int64_t timestamp,
int size, int distance, int flags)
{ … }
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp,
int size, int distance, int flags)
{ … }
int ff_index_search_timestamp(const AVIndexEntry *entries, int nb_entries,
int64_t wanted_timestamp, int flags)
{ … }
void ff_configure_buffers_for_index(AVFormatContext *s, int64_t time_tolerance)
{ … }
int av_index_search_timestamp(AVStream *st, int64_t wanted_timestamp, int flags)
{ … }
int avformat_index_get_entries_count(const AVStream *st)
{ … }
const AVIndexEntry *avformat_index_get_entry(AVStream *st, int idx)
{ … }
const AVIndexEntry *avformat_index_get_entry_from_timestamp(AVStream *st,
int64_t wanted_timestamp,
int flags)
{ … }
static int64_t read_timestamp(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit,
int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ))
{ … }
int ff_seek_frame_binary(AVFormatContext *s, int stream_index,
int64_t target_ts, int flags)
{ … }
int ff_find_last_ts(AVFormatContext *s, int stream_index, int64_t *ts, int64_t *pos,
int64_t (*read_timestamp_func)(struct AVFormatContext *, int , int64_t *, int64_t ))
{ … }
int64_t ff_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts,
int64_t pos_min, int64_t pos_max, int64_t pos_limit,
int64_t ts_min, int64_t ts_max,
int flags, int64_t *ts_ret,
int64_t (*read_timestamp_func)(struct AVFormatContext *,
int, int64_t *, int64_t))
{ … }
static int seek_frame_byte(AVFormatContext *s, int stream_index,
int64_t pos, int flags)
{ … }
static int seek_frame_generic(AVFormatContext *s, int stream_index,
int64_t timestamp, int flags)
{ … }
static int seek_frame_internal(AVFormatContext *s, int stream_index,
int64_t timestamp, int flags)
{ … }
int av_seek_frame(AVFormatContext *s, int stream_index,
int64_t timestamp, int flags)
{ … }
int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts,
int64_t ts, int64_t max_ts, int flags)
{ … }
void ff_read_frame_flush(AVFormatContext *s)
{ … }
int avformat_flush(AVFormatContext *s)
{ … }
void ff_rescale_interval(AVRational tb_in, AVRational tb_out,
int64_t *min_ts, int64_t *ts, int64_t *max_ts)
{ … }