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"

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 int64_t extract_cue (AVBPrint *buf, AVIOContext *pb)
static int webvtt_read_header (AVFormatContext *s)
static int webvtt_read_packet (AVFormatContext *s, AVPacket *pkt)
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 webvttdec.c.


Function Documentation

static int64_t extract_cue ( AVBPrint buf,
AVIOContext pb 
) [static]

Definition at line 57 of file webvttdec.c.

Referenced by webvtt_read_header().

static int64_t read_ts ( const char *  s  )  [static]

Definition at line 49 of file webvttdec.c.

static int webvtt_probe ( AVProbeData p  )  [static]

Definition at line 37 of file webvttdec.c.

static int webvtt_read_close ( AVFormatContext s  )  [static]

Definition at line 171 of file webvttdec.c.

static int webvtt_read_header ( AVFormatContext s  )  [static]

Definition at line 80 of file webvttdec.c.

static int webvtt_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 165 of file webvttdec.c.


Variable Documentation

Initial value:

 {
    .name           = "webvtt",
    .long_name      = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
    .priv_data_size = sizeof(WebVTTContext),
    .read_probe     = webvtt_probe,
    .read_header    = webvtt_read_header,
    .read_packet    = webvtt_read_packet,
    .read_close     = webvtt_read_close,
    .flags          = AVFMT_GENERIC_INDEX,
    .extensions     = "vtt",
}

Definition at line 178 of file webvttdec.c.


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8