FFmpeg
Loading...
Searching...
No Matches
realtextdec.c File Reference

RealText subtitle decoder. More...

#include "avcodec.h"
#include "ass.h"
#include "codec_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, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
 

Variables

const FFCodec ff_realtext_decoder
 

Detailed Description

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,
AVSubtitle * sub,
int * got_sub_ptr,
const AVPacket * avpkt )
static

Definition at line 59 of file realtextdec.c.

Variable Documentation

◆ ff_realtext_decoder

const FFCodec ff_realtext_decoder
Initial value:
= {
.p.name = "realtext",
CODEC_LONG_NAME("RealText subtitle"),
.priv_data_size = sizeof(FFASSDecoderContext),
}
av_cold void ff_ass_decoder_flush(AVCodecContext *avctx)
Helper to flush a text subtitles decoder making use of the FFASSDecoderContext.
Definition ass.c:166
int ff_ass_subtitle_header_default(AVCodecContext *avctx)
Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS with default style.
Definition ass.c:98
#define CODEC_LONG_NAME(str)
#define FF_CODEC_DECODE_SUB_CB(func)
@ AV_CODEC_ID_REALTEXT
Definition codec_id.h:579
@ AVMEDIA_TYPE_SUBTITLE
Definition avutil.h:203
static int realtext_decode_frame(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
Definition realtextdec.c:59

Definition at line 77 of file realtextdec.c.