FFmpeg
|
WebVTT subtitle decoder. More...
Include dependency graph for libavcodec/webvttdec.c:
Go to the source code of this file.
Functions | |
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) |
Variables | |
struct { | |
const char * from | |
const char * to | |
} | webvtt_tag_replace [] |
AVCodec | ff_webvtt_decoder |
Detailed Description
WebVTT subtitle decoder.
- See also
- http://dev.w3.org/html5/webvtt/
- Todo:
- need to support extended markups and cue settings
Definition in file libavcodec/webvttdec.c.
Function Documentation
|
static |
Definition at line 74 of file libavcodec/webvttdec.c.
|
static |
Definition at line 42 of file libavcodec/webvttdec.c.
Referenced by webvtt_decode_frame().
Variable Documentation
AVCodec ff_webvtt_decoder |
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: libavcodec/avcodec.h:473
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
Definition: ass.c:54
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
static int webvtt_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
Definition: libavcodec/webvttdec.c:74
Definition: avutil.h:146
Definition at line 93 of file libavcodec/webvttdec.c.
const char* from |
Definition at line 33 of file libavcodec/webvttdec.c.
Referenced by webvtt_event_to_ass().
const char* to |
Definition at line 34 of file libavcodec/webvttdec.c.
Referenced by webvtt_event_to_ass().
const { ... } webvtt_tag_replace[] |
Initial value:
= {
{"<i>", "{\\i1}"}, {"</i>", "{\\i0}"},
{"<b>", "{\\b1}"}, {"</b>", "{\\b0}"},
{"<u>", "{\\u1}"}, {"</u>", "{\\u0}"},
{"{", "\\{"}, {"}", "\\}"},
}
Referenced by webvtt_event_to_ass().
Generated on Fri Dec 20 2024 06:56:17 for FFmpeg by 1.8.11