00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVFORMAT_SUBTITLES_H
00022 #define AVFORMAT_SUBTITLES_H
00023
00024 #include <stdint.h>
00025 #include "avformat.h"
00026 #include "libavutil/bprint.h"
00027
00028 typedef struct {
00029 AVPacket *subs;
00030 int nb_subs;
00031 int allocated_size;
00032 int current_sub_idx;
00033 } FFDemuxSubtitlesQueue;
00034
00043 AVPacket *ff_subtitles_queue_insert(FFDemuxSubtitlesQueue *q,
00044 const uint8_t *event, int len, int merge);
00045
00049 void ff_subtitles_queue_finalize(FFDemuxSubtitlesQueue *q);
00050
00055 int ff_subtitles_queue_read_packet(FFDemuxSubtitlesQueue *q, AVPacket *pkt);
00056
00061 int ff_subtitles_queue_seek(FFDemuxSubtitlesQueue *q, AVFormatContext *s, int stream_index,
00062 int64_t min_ts, int64_t ts, int64_t max_ts, int flags);
00063
00067 void ff_subtitles_queue_clean(FFDemuxSubtitlesQueue *q);
00068
00074 int ff_smil_extract_next_chunk(AVIOContext *pb, AVBPrint *buf, char *c);
00075
00082 const char *ff_smil_get_attr_ptr(const char *s, const char *attr);
00083
00084 #endif