libavformat/webvttdec.c File Reference

WebVTT subtitle demuxer. More...

#include "avformat.h"
#include "internal.h"
#include "subtitles.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"
Include dependency graph for libavformat/webvttdec.c:

Go to the source code of this file.

Data Structures

struct  WebVTTContext
 

Functions

static int webvtt_probe (AVProbeData *p)
 
static int64_t read_ts (const char *s)
 
static int webvtt_read_header (AVFormatContext *s)
 
static int webvtt_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int webvtt_read_seek (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
 
static int webvtt_read_close (AVFormatContext *s)
 

Variables

AVInputFormat ff_webvtt_demuxer
 

Detailed Description

WebVTT subtitle demuxer.

See also
http://dev.w3.org/html5/webvtt/

Definition in file libavformat/webvttdec.c.

Function Documentation

static int64_t read_ts ( const char *  s)
static

Definition at line 49 of file libavformat/webvttdec.c.

Referenced by webvtt_read_header().

static int webvtt_probe ( AVProbeData p)
static

Definition at line 37 of file libavformat/webvttdec.c.

static int webvtt_read_close ( AVFormatContext s)
static

Definition at line 159 of file libavformat/webvttdec.c.

static int webvtt_read_header ( AVFormatContext s)
static

Definition at line 57 of file libavformat/webvttdec.c.

static int webvtt_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 145 of file libavformat/webvttdec.c.

static int webvtt_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  min_ts,
int64_t  ts,
int64_t  max_ts,
int  flags 
)
static

Definition at line 151 of file libavformat/webvttdec.c.

Variable Documentation

AVInputFormat ff_webvtt_demuxer
Initial value:
= {
.name = "webvtt",
.long_name = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
.priv_data_size = sizeof(WebVTTContext),
.read_seek2 = webvtt_read_seek,
.extensions = "vtt",
}
static int webvtt_read_close(AVFormatContext *s)
static int webvtt_read_header(AVFormatContext *s)
static int webvtt_read_seek(AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_probe(AVProbeData *pd)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
static int webvtt_read_packet(AVFormatContext *s, AVPacket *pkt)
static int webvtt_probe(AVProbeData *p)

Definition at line 166 of file libavformat/webvttdec.c.