All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
realtextdec.c File Reference

RealText subtitle decoder. More...

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

Go to the source code of this file.


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


AVCodec ff_realtext_decoder

Detailed Description

RealText subtitle decoder.

See Also

Definition in file realtextdec.c.

Function Documentation

static int rt_event_to_ass ( AVBPrint *  buf,
const char *  p 

Definition at line 32 of file realtextdec.c.

Referenced by realtext_decode_frame().

static int realtext_decode_frame ( AVCodecContext avctx,
void data,
int got_sub_ptr,
AVPacket avpkt 

Definition at line 58 of file realtextdec.c.

Variable Documentation

AVCodec ff_realtext_decoder
Initial value:
= {
.name = "realtext",
.long_name = NULL_IF_CONFIG_SMALL("RealText subtitle"),
.priv_data_size = sizeof(FFASSDecoderContext),
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
Definition: ass.c:80
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int realtext_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
Definition: realtextdec.c:58
void ff_ass_decoder_flush(AVCodecContext *avctx)
Helper to flush a text subtitles decoder making use of the FFASSDecoderContext.
Definition: ass.c:124

Definition at line 77 of file realtextdec.c.