diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-06 15:38:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-09 03:31:17 +0100 |
commit | f81946729e21005fe8d6a63a938e48c09b9b14b4 (patch) | |
tree | 7557d855fe0a71b4891c9d1aa7d7e2e942367c47 /libavformat/internal.h | |
parent | 2f35beae4d0994dda925d6b4de68411fbeb55100 (diff) |
lavf: move internal functions from avformat.h to internal.h
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 19711af5cdc364f9e02ea8103dd6e1e09dc288a4)
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index e53da7d46d..9e3302fa5f 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -240,4 +240,25 @@ int ff_add_index_entry(AVIndexEntry **index_entries, unsigned int *index_entries_allocated_size, int64_t pos, int64_t timestamp, int size, int distance, int flags); +/** + * Add a new chapter. + * + * @param s media file handle + * @param id unique ID for this chapter + * @param start chapter start time in time_base units + * @param end chapter end time in time_base units + * @param title chapter title + * + * @return AVChapter or NULL on error + */ +AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, + int64_t start, int64_t end, const char *title); + +/** + * Ensure the index uses less memory than the maximum specified in + * AVFormatContext.max_index_size by discarding entries if it grows + * too large. + */ +void ff_reduce_index(AVFormatContext *s, int stream_index); + #endif /* AVFORMAT_INTERNAL_H */ |