FFmpeg
Functions | Variables
realtextdec.c File Reference
#include "avcodec.h"
#include "ass.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"

Go to the source code of this file.

Functions

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)
 

Variables

const AVCodec ff_realtext_decoder
 

Detailed Description

RealText subtitle decoder

See also
http://service.real.com/help/library/guides/ProductionGuide/prodguide/htmfiles/realtext.htm

Definition in file realtextdec.c.

Function Documentation

◆ rt_event_to_ass()

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

Definition at line 33 of file realtextdec.c.

Referenced by realtext_decode_frame().

◆ realtext_decode_frame()

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

Definition at line 59 of file realtextdec.c.

Variable Documentation

◆ ff_realtext_decoder

const AVCodec ff_realtext_decoder
Initial value:
= {
.name = "realtext",
.long_name = NULL_IF_CONFIG_SMALL("RealText subtitle"),
.priv_data_size = sizeof(FFASSDecoderContext),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 78 of file realtextdec.c.

AVMEDIA_TYPE_SUBTITLE
@ AVMEDIA_TYPE_SUBTITLE
Definition: avutil.h:204
FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:42
ff_ass_subtitle_header_default
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
Definition: ass.c:96
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
ff_ass_decoder_flush
void ff_ass_decoder_flush(AVCodecContext *avctx)
Helper to flush a text subtitles decoder making use of the FFASSDecoderContext.
Definition: ass.c:140
FFASSDecoderContext
Definition: ass.h:46
AV_CODEC_ID_REALTEXT
@ AV_CODEC_ID_REALTEXT
Definition: codec_id.h:535
realtext_decode_frame
static int realtext_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, AVPacket *avpkt)
Definition: realtextdec.c:59