Mercurial > libavformat.hg
comparison avformat.h @ 979:d2e5dfdf4def libavformat
add size to AVIndex
author | michael |
---|---|
date | Wed, 01 Mar 2006 11:29:55 +0000 |
parents | d1d7a0e87dea |
children | a9d8381ff40d |
comparison
equal
deleted
inserted
replaced
978:c168be36dbba | 979:d2e5dfdf4def |
---|---|
206 | 206 |
207 typedef struct AVIndexEntry { | 207 typedef struct AVIndexEntry { |
208 int64_t pos; | 208 int64_t pos; |
209 int64_t timestamp; | 209 int64_t timestamp; |
210 #define AVINDEX_KEYFRAME 0x0001 | 210 #define AVINDEX_KEYFRAME 0x0001 |
211 /* the following 2 flags indicate that the next/prev keyframe is known, and scaning for it isnt needed */ | 211 int flags:2; |
212 int flags; | 212 int size:30; //yeah trying to keep the size of this small to reduce memory requirements (its 24 vs 32 byte due to possible 8byte align) |
213 int min_distance; /* min distance between this and the previous keyframe, used to avoid unneeded searching */ | 213 int min_distance; /* min distance between this and the previous keyframe, used to avoid unneeded searching */ |
214 } AVIndexEntry; | 214 } AVIndexEntry; |
215 | 215 |
216 typedef struct AVStream { | 216 typedef struct AVStream { |
217 int index; /* stream index in AVFormatContext */ | 217 int index; /* stream index in AVFormatContext */ |
639 #define AVSEEK_FLAG_ANY 4 ///< seek to any frame, even non keyframes | 639 #define AVSEEK_FLAG_ANY 4 ///< seek to any frame, even non keyframes |
640 | 640 |
641 int av_find_default_stream_index(AVFormatContext *s); | 641 int av_find_default_stream_index(AVFormatContext *s); |
642 int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags); | 642 int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags); |
643 int av_add_index_entry(AVStream *st, | 643 int av_add_index_entry(AVStream *st, |
644 int64_t pos, int64_t timestamp, int distance, int flags); | 644 int64_t pos, int64_t timestamp, int size, int distance, int flags); |
645 int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts, int flags); | 645 int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts, int flags); |
646 | 646 |
647 /* media file output */ | 647 /* media file output */ |
648 int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap); | 648 int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap); |
649 int av_write_header(AVFormatContext *s); | 649 int av_write_header(AVFormatContext *s); |