libavcodec/webvttdec.c File Reference

WebVTT subtitle decoder. More...

#include "avcodec.h"
#include "ass.h"
#include "libavutil/bprint.h"

Go to the source code of this file.


static int webvtt_event_to_ass (AVBPrint *buf, const char *p)
static int webvtt_decode_frame (AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)


struct {
   const char *   from
   const char *   to
webvtt_tag_replace []
AVCodec ff_webvtt_decoder

Detailed Description

WebVTT subtitle decoder.

See also:
need to support extended markups and cue settings

Definition in file webvttdec.c.

Function Documentation

static int webvtt_decode_frame ( AVCodecContext avctx,
void *  data,
int got_sub_ptr,
AVPacket avpkt 
) [static]

Definition at line 74 of file webvttdec.c.

static int webvtt_event_to_ass ( AVBPrint buf,
const char *  p 
) [static]

Definition at line 42 of file webvttdec.c.

Referenced by webvtt_decode_frame().

Variable Documentation

Initial value:

    .name           = "webvtt",
    .long_name      = NULL_IF_CONFIG_SMALL("WebVTT subtitle"),
    .type           = AVMEDIA_TYPE_SUBTITLE,
    .id             = AV_CODEC_ID_WEBVTT,
    .decode         = webvtt_decode_frame,
    .init           = ff_ass_subtitle_header_default,

Definition at line 93 of file webvttdec.c.

const char* from

Definition at line 33 of file webvttdec.c.

const char* to

Definition at line 34 of file webvttdec.c.

Referenced by toright(), and webvtt_event_to_ass().

struct { ... } webvtt_tag_replace[] [static]

Referenced by webvtt_event_to_ass().

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